The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-15-2008
KenJo KenJo is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 2
cat a file starting with ~|

helo all

I have a file where lines start with ~|.
Given a sample line-> ~|21|123|1232|ABC|2135....
So when i use the command

-----cat $file | mailx -s "Rejects : $envid" $recip.dat------

When unix cats the file which holds lines starting with ~| it seems to be it takes those lines as commands and starts putting them on screen.This is upto my Assumption.But donno what happens exactly

So when the command is executed
I get the following warning messages on the screen...

/usr/bin/ksh: 21: not found.
/usr/bin/ksh: 123: not found.
/usr/bin/ksh: 1232: not found.
/usr/bin/ksh: ABC: not found.
/usr/bin/ksh: 2135: not found.


If anyone can help me out in getting these warnings move out, that would be great...

Thanks
KenJo