#!/bin/bash # Oct 26, 2020 - for loop script - creates text file for each man page in the variable: TOOL # export TOOL="dmesg rpm yum bash pwd man uname history cat cut head join nl paste sed sort tail tr uniq wc cp find mkdir mv ls rm rmdir touch file gzip gunzip tee xargs bg fg jobs kill nohup ps top free uptime killall nice ps renice top grep sed vi du df mount umount chmod umask chown chgrp find locate updatedb whereis which type" # for X in $TOOL do man $X | col -b > man.$X.txt done ls -Alt