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 Wanet Telecoms Ltd 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: skuthe
  • Content: Threads
  • Order by date
  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

    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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. skuthe

    Substring in Unix shell script ??

    Hi, Can anyone help me in finding a substring of a long string using unix shell script ? e.g: load_jde_apexon_supplier_master_supplier_loc_pur_org.log I want to extract &quot;supplier_master_supplier_loc_pur&quot; from the above string. How can I do that ?? Pl. help!!. Thank you in advance.
  11. skuthe

    Functions in Shell Scripting

    Hi, How do I write functions in a unix shell script and pass parameters to them ? Kindly answer with examples. Thanks in advance.
  12. skuthe

    Inserting lines from one file at a particular postion in second file.

    Hi, I have two set of files. I need to match a pattern from one file and insert the matched pattern into the second file at the same line where I found the pattern in the first file. The pattern to be matched can be a user input. Any help would be greatly appreciated. Thanks in advance. eg...
  13. skuthe

    Remove duplicates from a file depending on user input columns ?????

    Guys, I want to remove duplicate records from a file where only the columns supplied by the user match. eg: 2001|typ|CA|089 2001|bkj|CA|987 2004|bkp|CA|986 2006|typ|CA|654 Considering the above file as input. Suppose the user supplies columns 2 & 3 to search for duplicates, then...

Part and Inventory Search

Back
Top