#This script pulls out the magbell items and files in a pipe-delimited #text file #remove old liz_meta_items.txt file rm liz_meta_items.txt #List and go to the convenience groups (do an ls -l, grep out #the lines that are directories [start with d], and cut from #column 55 to the end for x in $(cd /mss/magbell | ls -l | grep "^d" | cut -c55-) do cd ${x} conv_group_dir=$(pwd) #go to the item directories and get the item names for y in $(ls -l | grep "^d" | cut -c55-) do cd ${y} #get the actual files for z in $(ls -1) do filedate=$(ls -ld "${z}" | cut -c42-54) print "${y}|${z}|${filedate}" >> /mss/magbell/liz_meta_items.txt done #return to the convenience group for loop cd ${conv_group_dir} done #go back to the top for the next round cd /mss/magbell done print "DONE"