The following shows how to match a word in a string and return previous word. The following will return “word1” base on “=” as a search term sed: echo "bla bla word word1 = string1 string2" | sed -e 's/.* \([^ ]*\) =.*/\1/g' perl: echo…
find . -type f ! -name "*.jpg" ! -name "*.JPG" -delete
wget –mirror –page-requisites –adjust-extension –no-parent –convert-links –directory-prefix=sousers http://stackoverflow.com/users
find . -mtime +30 -exec mv {} old/ \;
I believe 50 char are good enough. head -c90 /dev/urandom | base64 | sed s/[^a-zA-Z0-9]//g | head -n 1 | cut -c 1-50
wget -qO- http://your-secret-link.asc | gpg -d