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 >...
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...
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...
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...
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...
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...
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...
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...
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...
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 "supplier_master_supplier_loc_pur" from the above string.
How can I do that ??
Pl. help!!.
Thank you in advance.
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...
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...
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.