http://artefact-mag.com/stephen-peirce/?replytocom=18 Viewing huge text files; between specific lines
$ sed -n 101,110p /var/log/cron
http://artefact-mag.com/stephen-peirce/?replytocom=18 Viewing huge text files; between specific lines
$ sed -n 101,110p /var/log/cron
Remove all files but one.
rm -f !(one.txt)
http://www.commandlinefu.com/commands/view/6652/remove-all-but-one-specific-file
Readline search in bash.
Ctrl-r: reverse search
Ctrl-s: forward search
However, the Ctrl-s keybinding is conflict with a settingin Ubuntu.
Disable it with this command and Ctrl-s will be working.
$ stty -ixon
When the forward search of readline is not working.
$ stty -a
$ stty -ixon