Re: UNIX SCRIPT ISSUE - URGENT

2001-07-25 Thread Larry Strickland
Since you have so many files, you are likely to hit problems with the line length of the various shells. Assuming that all of the files are in the directory /usr/myfiles and that the script mentioned below is named cvtip, is executable and is in /usr/local/bin (or some other directory in the

RE: UNIX SCRIPT ISSUE - URGENT

2001-07-25 Thread Hallas John
Title: RE: UNIX SCRIPT ISSUE - URGENT No unix expert but the first option can be achieved automatically by running the following script for filename in `ls *.file` do unix script as listed done Rename a couple of the files and try out the syntax and work out the timings. Once it all

RE: UNIX SCRIPT ISSUE - URGENT

2001-07-25 Thread Anderson, Brian
for i in `ls` do YourScript.shl $i done Unless you are also processing your newfile.dat in the script you need to make unique names for the output files. Something like: sed s/Report by Hosts/$IP| Report by Hosts/ $FN new_${FN}.dat so you will get an output file from each input file.

Re: UNIX SCRIPT ISSUE - URGENT

2001-07-25 Thread Mustafa
Try awk or perl. They can handle string manipulation from OS commands simply and quickly. A simple awk script to take the first 16 characters of the output of ls and put it into a data file follows: gawk 'BEGIN { while (ls | getline) print substr($1,1,16) | Report by Hosts}' new.dat Defry