Tip #182 MAC address conversion
Convert mac addresses such as 000000abde00 into 00:00:00:ab:de:00awk '{for(i=10;i>=2;i-=2)$0=substr($0,1,i)":"substr($0,i+1);print}' macaddress_list
sed 's/\(..\)/\1:/g;s/:$//' macaddress_list
// sil at infiltrated.net
Read more »
Tip #173 Count files by type
To find out the number of files of each type in your current directory try the following:Read more »
Tip #170 SVN resolve all conflicts
Resolve all your conflicted files. Use with caution!!Read more »
Tip #27
Use awk to change the file extension for a group of files. For example to change all .htm files to .php:Read more »
- TAGS:
- awk
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