Search Results

Search: Posts Made By: Sunitha_edi82
33,258
Posted By Sunitha_edi82
Thanks for the reply
Thanks for the reply
33,258
Posted By Sunitha_edi82
File renaming with date timestamp
Hi,

This is my script:

#! /usr/bin/ksh
cd /app/chdata/workflow/suppl/esoutput/spd/testing
for file in /app/chdata/workflow/suppl/esoutput/spd/testing
do
sort *.txt | awk '{...
2,881
Posted By Sunitha_edi82
Archiving the files
Hi,

Suppose I have 2 files of yesterday's. And today I have received 3 files.

Before processing anything I want to archieve the 2 files of yesterday's into a different folder.

How can...
3,033
Posted By Sunitha_edi82
I got it resolved Thanks!!!
I got it resolved

Thanks!!!
3,033
Posted By Sunitha_edi82
Its working Thanks!!!:b:
Its working
Thanks!!!:b:
3,033
Posted By Sunitha_edi82
My script is: #!/usr/bin/ksh cd...
My script is:

#!/usr/bin/ksh
cd /app/chdata/workflow/suppl/esoutput/spd/flatfile
sort testfile1.txt | awk '{ file=substr($0,1,2)".txt"; print >> file }'

This script reads particular file...
3,033
Posted By Sunitha_edi82
My script is: cd...
My script is:

cd /app/chdata/workflow/suppl/esoutput/spd/flatfile
sort testfile1.txt | awk '{ file=substr($0,1,2)".txt"; print >> file }'

This script reads particular file named...
3,033
Posted By Sunitha_edi82
Looping
Hi,

Now I have written a script which sorts the records in the file and splits them according to some condition.

Now, I need to modify the script so that it reads all the files one after the...
15,785
Posted By Sunitha_edi82
Hi, Thanks for your reply. I got the...
Hi,

Thanks for your reply.

I got the expected result from your previous response.

Regards,
Sunitha
15,785
Posted By Sunitha_edi82
Hi, Can I get help for something like this....
Hi,

Can I get help for something like this.

The records in my file should be sorted and the sorted output be redirected to other file.
15,785
Posted By Sunitha_edi82
Ok but how if I need to create the files...
Ok but how if I need to create the files seperately where I put the records with all H1's in one file and other file with all H2's and so on?
15,785
Posted By Sunitha_edi82
Hi, I tried the same code which you have...
Hi,

I tried the same code which you have sent me.

I have the input file in folder
/app/chdata/workflow/suppl/esoutput/spd/flatfile/

and the output files should also be generated in this...
15,785
Posted By Sunitha_edi82
Hi, Now is my script right? cd...
Hi,

Now is my script right?

cd /app/chdata/workflow/suppl/esoutput/spd/flatfile
sort testfile1.txt | awk '{file=substr($0,1,2)"testfile1_out.txt";print >> file}'
15,785
Posted By Sunitha_edi82
Hi, I tried running it. This time I didnt...
Hi,

I tried running it. This time I didnt get any error.

I wrote it as

sort /app/chdata/workflow/suppl/esoutput/spd/flatfile/testfile1.txt | awk '{ file=substr($0,1,2)".txt"; print >> file...
15,785
Posted By Sunitha_edi82
Hi, I tried executing the script. I...
Hi,

I tried executing the script.

I got the error saying:

syntax error The source line is 1.
The error context is
{ file=substr($0,1,2)".txt"; print >> >>> ...
15,785
Posted By Sunitha_edi82
Hi, Thanks for the reply. I have...
Hi,

Thanks for the reply.

I have written the script something like this.

#!/usr/bin/ksh
#############################################################################...
15,785
Posted By Sunitha_edi82
Sort & Split records in a file
Hi,

I am new to scripting. I need a script to sort and the records in a file and then split them into different files.
For example, the file is:

H1.........................
Showing results 1 to 17 of 17

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