Shell commands
Repetition (bash)
$ for x in `some command generating list of items`; do actions involving $x; done
For example, to see all NFS automount map,
$ for x in `ypcat -k auto.master | cut -f2 -d' ' | cut -f3 -d\/`; do echo -e "\n$x:"; ypcat -k $x; done
Command line keyboard shortcuts (bash)
^A : move cursor to the start of line
^E : move cursor to the end of line
^W : delete a word before the cursor and yank the deleted content
^U : delete from the cursor to the start and yank
^K : delete from the cursor to the end and yank
^Y : insert yanked content before the cursor
^T : swap character on the cursor with the one before. (e.g., :abc -> acb)
-- Main.jisooy - 26 Nov 2008