1

Writing a File

view story
linux-howto

http://www.unix.com – Code: #!/bin/bash ARCHIVE="$PWD" #ARCHIVE="/home/kschmidt/public_html/Files/DrMathArchive" NUMBERofDIRS=0 TEST="" for dir in `ls -l ${ARCHIVE}| egrep '^d' | awk '{print $9}'`; do       for EACHFILE in `find ${ARCHIVE}/${dir} -type f -name "prob*" `         do               TEMP3="${EACHFILE##*/}"               TEMP2="${TEMP3%%_*}"               echo "${TEMP2 (HowTos)