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 ?????
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 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 there,
I'm trying to write a shell script where I create a file of directories that I want to compress. Then I loop round reading the file picking up the directory name and then doing a find with a gzip -9.
That's the theory anyway, what is happening is that the variable $LINE is...
Hi there,
I'm trying to write a shell script where I create a file of directories that I want to compress. Then I loop round reading the file picking up the directory name and then doing a find with a gzip -9.
That's the theory anyway, what is happening is that the variable $LINE is...
Hi there
I have a package were I'm using UTL_FILE to write to a directory on a Unix box, due to security reasons the SA's want the directory to have 775 permissions i.e. rwxrwxr_x
where NOT everyone can write to that directory.
Is there any way to get round this ?????
Hi there,
I have a shell script where I used the assign_file command to do the following :-
assign_file sbs3000cre sbs3000_cre.sql 1 >> $LOGFILE
All of as sudden I'm getting the message :-
SBS3000[37]: assign_file: not found
As far as I can see the path is still the same :-...
Hi guys,
Can I do some thing like this. I want to do an IF where I check if a a variable OPTION = JHA2 and if a file exist and has a size greater than zero
if [ $OPTION = JHA2 -a -s sbs3000$OPTION.dis ];
Would this work or have I missed something
Hi there,
I have a shell script and I am getting a `fi' unexpected error, I have gone through the script and all the if's and fi's match up.
The only thing I can think of is that I originally wrote the script on the LAN using PFE and ftp'd it back to the Unix box and that some how there...
Hi there,
I'm working on a project where were have various types of payment e.g. cheques, BACS transactions etc.
We are currently debating whether to use overloading and have multiple copies of a procedure - make_payment and let the parser decide which one to call, or to have one...
Hi there,
I'm working on a cheque processing system, that contains the usual mixture of on line forms reports and batch jobs. One complaint that we get from the users is about the length of time that it takes to "run" any Oracle report. The users say that the Reports Background...
Hi there,
This thread has had to be reposted as the original was deleted, so please respond to this thread again, as I did not get to read any of the replies.
The project I am working on provides a service to both external and internal customers, for the external customers we are...
Hi there,
I am working on a project where we to provide a web page(s) to external customers - is there a mechanism in in Developer 2000 where you can generate Web Pages from forms, as we have written an Oracle Forms front end for internal customers and we want to produce Web pages from...
Hi there,
In shell programming is there a limit to the number of positional parameters that you can pass as parameters
to a shell script
Thanks
bob....
Hi there,
I need to compare two files - containing bank sort codes and action codes - and I need to compare all the lines from file 1 with all the lines in file 2 and put all the lines that are different in file 3 e.g new sort code, different action code . One of our DBA's has said use AWK...
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.