Tip #81 Emailing from server
/bin/mail -s "Enter Subject Line here" -a/home/.../whateverFileYouWantAttached.txt
"you@YourEmailAddress"
< /home/me/textBody.letter Read more »
- TAGS:
Tip #87
Perform a recursive grep of the Solaris /etc directory, bypassing those nasty sockets Sun keeps in there:Read more »
- TAGS:
- grep
Tip #88 a better cut
use `grep -o` to select only the pattern matched rather than the whole line:Read more »
- TAGS:
- grep
Tip #89 Multiple column sort
sort a file by the first column in dictionary order, then by the second column numerically.Read more »
- TAGS:
- sort
Tip #91 another solution to #67
For a fix of #67 that is a bit nicerfor support spaces in the arguments just fine, just make sure you quote "$i".
$ touch a
$ touch b\ c
$ for i in *; do ls "$i"; done;
Read more »
- TAGS:
- bash
Tip #93 Subtract one file from another
Subtract a small file from a bigger file.Read more »
- TAGS:
- grep
Tip #94 Overwrite a file with zeroes
Overwrites a file with zeroes.Put in in your .bashrc or .bash_profile in Mac OS X.
Read more »
- TAGS:
- bash
Tip #95 Bash terminal size
Q: If I resize my xterm while another program is running, why doesn't bash notice the change?http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
Bash won't get SIGWINCH if another process is in the foreground.
Enable checkwinsize so that bash will check the terminal size when
it regains control.
Put this in your bash config somewhere (e.g. Gentoo has it in /etc/bash/bashrc):
Read more »
- TAGS:
- bash
alias aptitude at awk bash bc cal cat cd colrm comm cp csh curl cut date dd df dialog diff dirname dpkg du fc find fuser grep gs gzip history iconv kill ksh last less ln ls lsof lynx m4 md5sum mkdir mkfifo mkisofs mv mysql nc netstat openssl OSX perl ping popd ps pushd python read redirection rm scp screen sed sort ssh stat sudo svn tail tar tee test top tr uniq vim wc wget xargs