# This list is very small for now, but will grow over time # Using Linux sort to sort on multiple fields (in decreasing order of # importance). This command sorts (using a numerical sort) on the # first field, then on the second field to break ties: sort -n +0 -1 +1 -2 # ... or perhaps ... sort +0n -1 +1n -2 # Forgot to run nohup to detach a process from the terminal? In bash, # use `disown ', e.g. disown %2 # Want to sync a directory with a remote one, but want to # include/exclude certain filetypes? Try this: rsync -rvtW --include='*.mp3' --include='*.ogg' --exclude='*.*' # Want to run rsync with a list of files instead of specifying them # all on the command line? Try this: rsync -a --files-from= jimmy@host:/ out_dir # This preserves the relative paths on the transferred files -- not # sure how to change that. # Okay, this isn't a shell command, but here's how to find an image on # Flickr, given that photo's Flickr ID: http://www.flickr.com/photo_zoom.gne?id= e.g.: http://www.flickr.com/photo_zoom.gne?id=2765467183 # wildcard variables in sed (note the '\1') sed 's/resize\(.*\)\//resize\1_hydra\//' list.txt