#!/bin/bash # script with test and loop TOOL="dmesg bootloader ldd ldconfig dpkg dpkg-reconfigure apt-get apt-cache aptitude rpm rpm2cpio yum yumdownloader bash echo env exec export pwd set unset man uname history cat cut expand fmt head od join nl paste pr sed sort split tail tr unexpand uniq wc cp find mkdir mv ls rm rmdir touch tar cpio dd file gzip gunzip bzip2 tee xargs bg fg jobs kill nohup ps top free uptime killall nice ps renice top grep egrep fgrep sed regex vi fdisk mkfs mkswap du df fsck e2fsck mke2fs debugfs dumpe2fs tune2fs mount umount quota edquota repquota quotaon chmod umask chown chgrp find locate updatedb whereis which type" ; export TOOL # TOOL="cd mkdir ls" ; export TOOL # used to test loop # for x in $TOOL do man $x | col -b > man.$x.txt done ls -al # which $x # if [^$] # echo "builtin command or not found" # fi