Search Results

Search: Posts Made By: kumarsaravana_s
1,456
Posted By kumarsaravana_s
sed help
want to replace 1/1/2005 to 01/01/2005 every where in a file
2,750
Posted By kumarsaravana_s
HI Aigles, Thats the way i was executiong...
HI Aigles,

Thats the way i was executiong before on the shell prompt.But now i want to call this within the ETL tool.The ETL tool which is use understand the scripts when it is executed like this...
2,750
Posted By kumarsaravana_s
Is there a diff way to exec this shell prg??
Hi,

I want to know whether it is possible to to execute the below script like

ksh ds.ksh <input file> > <output file> or any other simple way other then ./

The way i'm executing it right...
24,629
Posted By kumarsaravana_s
If you know the pattern of first line or some...
If you know the pattern of first line or some word which does not repeat else where in the file,then you can use grep command.

cat filename | grep -v 'pattern' > file_temp
mv file_temp > filename
14,306
Posted By kumarsaravana_s
HI Reborg, Sorry,it is working fine...
HI Reborg,

Sorry,it is working fine now.Thanks a lot friend.

Kumar
14,306
Posted By kumarsaravana_s
Errrr....How Stupid of me....But Reborg when i...
Errrr....How Stupid of me....But Reborg when i run the script,it actually opens the file and content is also displayed on the terminal.How do i avoid this? because the file has come where around a...
14,306
Posted By kumarsaravana_s
Hi, When i run the following code,it gets...
Hi,

When i run the following code,it gets into an infinite loop and never comes out.
#!/usr/bin/ksh
cd /space/tmp/file

for filename in *aaa_ddd_ccc_ddd.txt
do
grep -v 'Total records:' >...
14,306
Posted By kumarsaravana_s
Thanks a lot friends.I will try these methods and...
Thanks a lot friends.I will try these methods and let you know.Thanks again.
14,306
Posted By kumarsaravana_s
Removing trailer from a flat file!!!
Hi,

I get some flat files with trailer which gives the totol records count and i want to remove the trailer from the file.

i used the following command it works fine with a single file.

cat...
3,847
Posted By kumarsaravana_s
HI Madan, Thanks for your time.Here is the...
HI Madan,

Thanks for your time.Here is the pattern i'm looking for.

Input:

asdasd|asdas|fsdfds|fsdfsd|dgsdfgfsdg|&&^**^(
^*(*(
asdhgasd|ashakljas|ffasdfdsf|Fsfsdfsdf|dfsdfds|&^&*...
3,847
Posted By kumarsaravana_s
Hi Anbu, The Sed command fixes the broken...
Hi Anbu,

The Sed command fixes the broken column data but it is omitting the good records too.

Input:
asdasd|asdas|fsdfds|fsdfsd|dgsdfgfsdg|&&^**^(
^*(*(...
3,847
Posted By kumarsaravana_s
Hi Madhan, When i run the awk command on the...
Hi Madhan,
When i run the awk command on the input file,it is not appending the new line data back to the previous record.It is just removing the record leaving the new line data as it is

INput:...
3,847
Posted By kumarsaravana_s
HI Anbu, When i execute the below command,it...
HI Anbu,

When i execute the below command,it gives me an error.I'm working on Sun OS 5.10

> sed -n "$ p;N;/\n[^|]*$/s/\n//p" aaa.Jun-06-2007
Illegal variable name.
>
3,847
Posted By kumarsaravana_s
Help with a Flat File!!!
Hi All,

I need a help with a shelll script program.I get a '|' separated file which sometime has a encrypted column.And this encryption sometime breaks the last column data into a new line and...
7,481
Posted By kumarsaravana_s
> cd /space/dwland/shell_prg_test/Trans/ > awk...
> cd /space/dwland/shell_prg_test/Trans/
> awk -F "|" '{print NF-1}' Daily_Feed_051507.txt > newfile
awk: syntax error near line 1
awk: bailing out near line 1
>

It is giving syntax...
7,481
Posted By kumarsaravana_s
Help with pipe count in a flat file!!!
Hi Friends,

I have a flat file and it has 43 columns which means 42 pipes but some records have less number of pipes.Can anyone tell me a command to count the number of pipes in a record and...
7,160
Posted By kumarsaravana_s
Can we convert a '|' file into a fixed lenght???
Hi All,

I have a pipe separated flat file.But there is often some problem with the records.So is it possible to convert the '|' separated file into a fixed length file by means of some script.
...
2,477
Posted By kumarsaravana_s
Help with a Date Command !!!
Hi All,

Can you please tell me how do i subtract current date to get the previous date???

Sometime like

$ date +%m%d%Y will give me 05292007

now i want the date as 05282007. (Just 1...
3,395
Posted By kumarsaravana_s
Thanks Nagaraj.
Thanks Nagaraj.
3,395
Posted By kumarsaravana_s
Hi Anbu, Thanks for your help.Could you...
Hi Anbu,

Thanks for your help.Could you please explain the symbols #,% you had used in the script.

Thanks again,
Kumar
3,395
Posted By kumarsaravana_s
Help in renaming file !!!
Hi All,

I want to rename a file inside a script which has a date portion appended at the start of the file name.

The script i wrote works fine when the file comes on a day to day basis but...
9,643
Posted By kumarsaravana_s
vgersh99 You are an absolute genius,i...
vgersh99

You are an absolute genius,i feel.It works really great.Thank you so much.

Regards,
Kumar
9,643
Posted By kumarsaravana_s
The records doesnt start with 0.In order to mask...
The records doesnt start with 0.In order to mask the actual data,i just put some dummy values while maintaining the structure of the records.The record start with two numeric formats...like 100****...
9,643
Posted By kumarsaravana_s
How to remove page breaks from a flat file???
Hi All,

I get a flat file with its last field data splitting onto a new line.I got this program from Vgersh which when run would cancatenate the split data back to the end of the previous...
1,968
Posted By kumarsaravana_s
Thanks a lot Anbu and radoulov...
Thanks a lot Anbu and radoulov...
Showing results 1 to 25 of 100

 
All times are GMT -4. The time now is 11:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy