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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: RJSHA1
  • Content: Threads
  • Order by date
  1. RJSHA1

    sending more than one attahment via 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 ?????
  2. RJSHA1

    replacing a range of characters in Unix

    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...
  3. RJSHA1

    WHILE LOOP that won't fail

    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...
  4. RJSHA1

    deleting a line with awk based on column character positions

    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...
  5. RJSHA1

    XML question - regarding inserting into tables

    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...
  6. RJSHA1

    Formatting a Number field(s)

    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...
  7. RJSHA1

    How move unwanted lines in a file to another file

    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...
  8. RJSHA1

    changing the first occuence in a file using sed

    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...
  9. RJSHA1

    Probelm reading a line from a file - value always blank

    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...
  10. RJSHA1

    Probem reading lines from a file !!!

    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...
  11. RJSHA1

    UTL_FILE problem writing to a directory

    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 ?????
  12. RJSHA1

    Problem with assign_file.

    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 :-...
  13. RJSHA1

    Help with IF

    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
  14. RJSHA1

    `fi' unexpected error message - PLEASE HELP

    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...
  15. RJSHA1

    Overloading - Is it useful ???

    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...
  16. RJSHA1

    Speeding Up Reports in 8i

    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...
  17. RJSHA1

    REPOST - Generating Web Pages from Oracle Forms

    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...
  18. RJSHA1

    Generating Web Pages From Forms 6i

    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...
  19. RJSHA1

    Positional Parameters

    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....
  20. RJSHA1

    Comparing two files using AWK

    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...

Part and Inventory Search

Back
Top