Hi john,
Thi is my code -
uuencode repfile repfile.doc > RESPREP
cat RESPREP | mailx -r $CCRECEIP -s "AFT User $USER $CTM_ODATE AFT Input Response" $CCRECEIP $RECEIP
What do I need to add in to send the second attachment...
Hi john,
Sorry I'm being silly here surely the the -s is the subject line option, I can't see how you would get two files created from the second section of code.
also I have the two files created - why is there a pipe in the script before the mailx ???
Hi there,
I have been looking through the forum at how to use mailx to send an attachment to an e-mail user and the fact that you need to use uuencode to uncode the mail, but how would I send two attachments in the one e-mail; is it possible ?????
Sorry PHV
Can I do someting like this
tr -d ![A..Z] [a..z] [0..9] [%^] filename > filename2
I want all the characters that are not in the ranges above to be replaced with spaces
Sorry PHV
Can I do someting like this
tr -d ![A..Z] [a..z] [0..9] [%^] filename > filename2
I want all the characters that are not in the ranges above to be replaced eith spaces
Hi there,
I have a to write a script where if data in a file is not one of the following types of data e.g. 0-9 or A..Z or a..z or $,^& then I replace it with spaces. I know that SED is probably the best way to do it, but I'm struggling wit the syntax can any one help please
Ta
Bob...
Loops in Unix seem to be the bane of my life. Can someone put me out of my misery and tell me what I am doing wrong in the code below. As I cannot get it to fail and exit the loop
ls $CTM_FTPIN | grep trigger | grep > filelist
while [ -s $filelist ]; do
do some coding here
nawk -v...
Hi there,
I'm trying to write an AWK script where I have three variables that I pass to the script search a file for a line where the data in the columns matches what is passed in.
The data looks like this :-
aftn3200aftn3220CQA1-00000168.trigger
aftn3200aftn3220CQA1-00000169.trigger...
Hi there,
I working on a project where we get an XML file and we have to put EACH field in the XML schema in a cloumn of a table. All the solutions I have seen invloved created a CLOB parsing the schema into the CLOB and then querying the CLOB.
This is not really what I want - does any...
Hi there,
I have two variables COUNT and AMOUNT (I know original variable names), I want to format these two variables so that they have leading zeroes and I then want to add them to a file.
I cannot get the variables to have leading zeroes I'm using the following command what am I doing wrong...
Hi there,
I have a file like this
1Header
2data
2data
3trailer
I want to remove all the data lines, they start with a 2, where columns 31&32 have a value other than zero. The lines have no spaces ie.e. they are all zero filled (so that rules out AWK i think)
Does anyone have any...
Hi guys,
Both solutions work. Thanks for your help. I have one other question, will the end of line character still be left on the 1st line
Once again thanks for the help
Regards bob..
Hi there,
I have a file with the following layout :-
Header
Data
Trailer
I want to append a sort code to the hader so that the file looks like this
Header123456
Data
Trailer
I have tried sed 's/$/123456/' file1 > file2
but I get
Header123456
Data123456
Trailer123456
What am I doing...
Hi Jad,
I have worked out a way to do it just as your mail arrived I created a .sql file and got the SHELL script to run it.
Thanks for all your help and patience
Regards
Bob Sharpe
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.