Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Help Unix Script
Name: avhg1 Date: April 26, 2004 at 05:41:03 Pacific OS: XP CPU/Ram: 512
Comment:
Can anyone tell me what I'm doing wrong? All my output files are blank. Any suggestions would be great.
#check for arguements & exit if none are supplied if test $# -lt 1 ; then echo "No file pattern supplied" else PStr= echo "$@" |tr " " "|" #echo $PStr #ls -l > tmp1 #ls -l > tmp2 ls -l | egrep '$PStr'| tr -s " "| cut -f9 -d" " > tmp1 ls -l |egrep '$PStr' | tr -s " " | cut -f1,5 -d" " | paste - tmp1 > tmp2 ls -lu |egrep '$PStr' |tr -s " " |cut -f6,7,8 -d" " |paste - tmp2 > tmp1 ls -l |egrep '$PStr' |tr -s " "|cut -f6,7,8 -d" " |paste - tmp1 > tmp2 echo "Modified Accessed Permission Size Name" cat tmp2 #rm tmp1 #rm tmp2 fi
Summary: Hi, I have a file in the format of a listing of item numbers in one column in the (*.xls) -excel file. I would like to have an output in a different format. example: my input will be in the form HEDM...
Summary: Hi, I am trying to write a unix script for a student database program. I have some pieces of script for this database that was left to me. The main menu has options that brings their own me...
Summary: Please help! I have a assignment for my class to write a simple unix script but I don t know it:( Could you write me one? Many thanks in advance ...