Better HN
topnewbestaskshowjobs
Log inSign up

uselessuseof

1 karma · joined Jun 6, 2012 (14y ago) · 12 submissions

Submissions

comment 14y ago · link · parent

typo.

comment 14y ago · link · parent

does your grep have an -f option?

   printf linkedintrouble |sha1sum |sed 's/ .*//' |grep -f - combo_not.txt

comment 14y ago · link · parent

cut takes a file as an argument. there's no need to start the line with <

   cut -c4-70 combo_not.txt|...

comment 14y ago · link · parent

echo abc > file

1. cat file

2. cat < file

3. echo abc|cat

4. echo abc|cat - file

cat can take input from the left, the right, or both

same goes for cut

comment 14y ago · link · parent

printf linkedintrouble |openssl sha1|grep -f - combo_not.txt

comment 14y ago · link · parent

symmetric?

comment 14y ago · link · parent

head -5 /usr/share/dict/words

same result as with xargs

grep petard /usr/share/dict/words

same result as with xargs

not sure what you are trying to demonstrate here

useless use of xargs?

comment 14y ago · link · parent

another useless use of cat

cut -c7-40 combo_not.txt|sort|dups|wc -l

what the heck is dups?

cut -c7-40 combo_not.txt|sort|uniq -d|wc -l

comment 14y ago · link · parent

export HISTSIZE=0

comment 14y ago · link · parent

obligatory comments

- not portable

- useless use of backticks

printf password|openssl sha1|cut -c6-40|grep -f - hacked.txt