Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display suppression

Status
Not open for further replies.

dickiebird

Programmer
Feb 14, 2002
758
GB
Hi Experts
I'd like to suppress output from a script and don't
know / can't remember how to !
Example
echo "The following files are available for processing"
integer i=1
for file in `ls -l Tc??????.txt | awk '{printf("%s\n", $9);}' 2>/dev/null`
do
ORTRARRAY[$i]="$file"
echo "("${i}") " ${ORTRARRAY[$i]}
i=i+1
done

I'd like to show the neatly formatted array output - but not the output of the `ls -l` line
Any thoughts ????
Thanks in advance
DB Dickie Bird
db@dickiebird.freeserve.co.uk
 
Forget it - I've found out why its displaying in error
DB :) Dickie Bird
db@dickiebird.freeserve.co.uk
 
could you please post what the fix was so others can learn from your mistakes too ;)


-a5k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top