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 Mike Lewis 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: *

  1. skuthe

    Creating runtime directory structure while copying files on unix

    Hi, I am trying to clean files from various directories and copy them under "cleaned" directory, but I want to create the directory structure of the cleaned file under the cleaned directory at runtime. F.eg: I cleaned a file using SED command as below.. sed 's/\/users\/ciimdrp/g' $fname >...
  2. skuthe

    Converting lowercase into Initcap on Unix

    Thanks PHV, it worked great !.
  3. skuthe

    Converting Lowercase to Initcap in Unix

    I'm sorry, I realised it after posting the message here. Anyway thanks for the post. It worked for me !. Thanks.
  4. skuthe

    Converting lowercase into Initcap on Unix

    Hi, Can anyone help me to convert a parameter, supplied to a unix script, from lowercase to Initcap. I tried using tr but could not get this done in a single command. f.eg: ==== My shell script is test.com, I run this script with a parameter ... $test.com diamond The result I expect is...
  5. skuthe

    Converting Lowercase to Initcap in Unix

    Hi, Can anyone help me to convert a parameter, supplied to a unix script, from lowercase to Initcap. I tried using tr but could not get this done in a single command. f.eg: ==== My shell script is test.com, I run this script with a parameter ... $test.com diamond The result I expect is...
  6. skuthe

    Reports6i Text o/p file - Headings as Columns.

    This is the message I got from Oracle support for this problem. [thumbsup2] Thanks, Skuthe. TAR 3509748.995 - COLUMN HEADINGS ARE PRINTED AS COLUMNS ALONGSIDE OF THE DATA. has been updated by Oracle Support with relevant information on 01-DEC-03. To view the progress on-line via MetaLink, go...
  7. skuthe

    Reports6i Text o/p file - Headings as Columns.

    Hi, I am printing a simple report (heading and one repeating frame) into a text file and I get the headings as columns of the reports along with the regular columns. Does anybody have any idea? e.g. I expect the report to be Name Phone State Joe 123-456-9876 OH Tom...
  8. skuthe

    Read Long Raw Data from Oracle database and write into flat file.

    Hi, I want to read the long raw data from oracle and write it out to a flat file which will then be printed. I would like to know how to read the long raw data from oracle 8.0.5 database and write it into the flat file. Pl. advise ASAP as this it critical for my project. Pl. note that I am...
  9. skuthe

    Delete blank lines from a file and indent lines.

    Thanks guys, thanks for all your help. I really appreciate it.
  10. skuthe

    Delete blank lines from a file and indent lines.

    YES, it works !. Thank you for your persistant efforts. I really appreciate it. Also,could you please explain the above command so that I remember it from next time.? Thanks.
  11. skuthe

    Delete blank lines from a file and indent lines.

    No effect. Same output. The o/p is given below... The '/' before the users is stripped... f.eg.The first line should actually look like /users/ciim/oe/com/load830.com similarly the rest of the file. users/ciim/oe/com/load830.com users/ciim/oe/com/ordcmpr.com users/ciim/oe/com/loadmrel.com...
  12. skuthe

    Delete blank lines from a file and indent lines.

    I do not know why. But when I run your script once it shifts the lines to left but does not delete the blank lines. When I run it for the second time it delete the blank lines. Secondly there is another problem, your script strips the first '/' from all the lines which screws my uniq command...
  13. skuthe

    Delete blank lines from a file and indent lines.

    Vlad, You made me glad !!. Thank you so much buddy. I have to run the script twice to get my file cleaned up.But thats better than not getting the file cleaned up at all. Thanks again.
  14. skuthe

    Delete blank lines from a file and indent lines.

    NO buddy, none of your suggestion work, I am sorry. Actually I have finised trying all SED commands to get rid of the <blank> from file but no w/o any result. Moreover the blanks at the starting of the file are not normal blanks !! by this I mean, when I open the file in vi on HP unix box and...
  15. skuthe

    Delete blank lines from a file and indent lines.

    Hi, I am stuck on a problem of deleting blank lines from a file and also shifting some lines in the file to the left. My file is something like below... ----------------------------------- <blank> <blank> <blank> <blank> <blank> <blank> <blank> /users/cdc/importfg.com /users/ciim/ap/com/apg...
  16. skuthe

    Deleting group of unwanted lines from a file.

    Many thanks CaKiwi. This is great !. The above program works fine 90% of the time but it fails at the following scenarios. f.eg: If the input file has following... /users/ciim/transfer/com/completed/mropd.com -------------------------------------...
  17. skuthe

    Deleting group of unwanted lines from a file.

    Hi, I need to verify the next line of the matched pattern in the file and if the next line of the pattern does not match 'SQR' word then delete the lines of the matched pattern. f.eg : Myfile.. /users/ciim/942ftp.com ------------------------------------- /users/ciim/abm/com/driverall.com...
  18. skuthe

    Selective deletion of lines from the file.

    Hi, I need to verify the next line of the matched pattern in the file and if the next line of the pattern does not match 'SQR' word then delete the lines of the matched pattern. f.eg : Myfile.. /users/ciim/942ftp.com ------------------------------------- /users/ciim/abm/com/driverall.com...
  19. skuthe

    Selective deletion of lines from the file.

    Hi, I need to verify the next line of the matched pattern in the file and if the next line of the pattern does not match 'SQR' word then delete the lines of the matched pattern. f.eg : Myfile.. /users/ciim/942ftp.com ------------------------------------- /users/ciim/abm/com/driverall.com...
  20. skuthe

    Substring in Unix shell script ??

    Thanks tdatgod !! It worked well.

Part and Inventory Search

Back
Top