Computing.Net > Forums > Unix > Shell Scripting

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.

Shell Scripting

Reply to Message Icon

Name: Joseph
Date: April 29, 2003 at 04:45:50 Pacific
OS: debian
CPU/Ram: 200
Comment:

Hello,

I have got a problem with a script.
I need to interpret a script from AIX to LINUX. But i cant find any command simmilar to the AIX newform command.

"The newform command takes lines from the files specified by the File parameter (standard input by default) and writes the formatted lines to standard output."

I need to read in the content of many files and put it out in one file without changing the format.

This is the part of the script with the newform command:

process_it()
{
ls $par1 2>/dev/null | (
while read par1
do
newform $par1 >isc_work00
if test -w $par2
then
echo "\n \c" >>$par2
else
echo "\n \c" >>$par2
fi
cat isc_work00 >>$par2
log_it "Datei $par1 an Datei $par2 angehaengt"
save_it $par1
rm $par1
log_it "Datei $par1 geloescht"
done
)
}

thanks alot




Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Shell Scripting

Shell Scripting www.computing.net/answers/unix/shell-scripting/8475.html

Variables in Shell SCripting www.computing.net/answers/unix/variables-in-shell-scripting/6020.html

shell script to uninstall java www.computing.net/answers/unix/shell-script-to-uninstall-java-/5976.html