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!

Sheel script help! 1

Status
Not open for further replies.
Jan 15, 2001
80
US
Hello,

I need to create a script that does the following:

iconv -f IBM-1047 -t ISO8859-1 'ebcdic file here' > 'ascii file here'. the ebcdic and ascii filenames are to be provided by another script, something like this;

!./crap.sh ebcdic_file_in > ascii_file_out.

I am trying to keep the !unix cmd as short as possible. What do I need to do to get this done???

Thank you!!!
 
crap.sh
-----------

#!/bin/ksh
iconv -f IBM-1047 -t ISO8859-1 $1

--------------------

./crap.sh ebcdic.file > ascii.file
 
or:

cp ./crap.sh /usr/local/bin/.
chmod 777 /usr/local/bin/crap.sh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top