Some Unix Tricks
blog.transmit.net
blog.transmit.net
Translation:
If you ever do end up with me interviewing you, I'll likely work one or two obscure questions into the discussion to make you feel stupid so that I can gloat. That's how charming I am.
After the second tip I was expecting
echo $PASSWORD | compress -f > /etc/password
for util in `ls $DIRNAME`; do whatis $util; done
where DIRNAME is /bin /sbin /usr/bin /usr/local/bin etc. depending on what Unix you're running.Pick a couple that interest you and check out their man pages. Or, follow the SEE ALSO section in man pages.
$ printf "test\r\n" > test.txt
$ cat -A test.txt
test^M$
$ dos2unix test.txt
dos2unix: converting file test.txt to UNIX format ...
$ cat -A test.txt
test$ apt-get install tofrodosI'm always surprised at how much of Unix's default command set is oriented towards text manipulation. People always argue between Vim and Emacs. I wonder if anyone's ever compared Emacs and Bash.
2. None of the shell command stuff is tied to bash -- you can use any of them with sh, ksh, zsh, etc.