Search Results

Search: Posts Made By: Gurkamal83
17,821
Posted By Gurkamal83
Sending mail to multiple recipient added in a text file
I am trying to find a code that can help me mail to a list of recipients which are in a text file.

Sample code
$cat recipient.txt
me@test.com
me1@test.com
me2@test.com

I want a mailx step...
854
Posted By Gurkamal83
Help with do and if loop
Hi,

I have a file with random values
1
5
.
.
.
99762
99763
99883
99884
100008
100009
100121
100122

I need to read contents of this file and find the nearest number which is less...
991
Posted By Gurkamal83
Thanks Yoda but commands didnt work Issue with...
Thanks Yoda but commands didnt work
Issue with awk
awk: syntax error near line 1
awk: bailing out near line 1


Issue with sed:
It is not at all working

---------- Post updated at 09:54 PM...
991
Posted By Gurkamal83
Issue with sed command
Hi,

I want to use a code like
sed -n "1,9988p" filename | wc -l

I tried
from=1
till=9988
sed -n "/$from/,/$till/p" filename |wc -l

Issue:
sed -n "1,9988p" filename | wc -l -- Returns...
1,300
Posted By Gurkamal83
Hi Just Ice, I think I got the way to code...
Hi Just Ice,

I think I got the way to code this solution.

But I need one help

e.g.
202XXXXXXXXXXXXXX-Header
1101XXXXXXXXXXXXXXX
202XXXXXXXXXXXXXX-Trailer
202XXXXXXXXXXXXXX-Header...
1,300
Posted By Gurkamal83
File handling issue
Hi All,

I am running into an issue. I have a very big file. Wants to split it in smaller chunks. This file has multiple header/ trailers. Also, between each header/trailer there are records....
3,525
Posted By Gurkamal83
Hi Scrutinizer, this seems to work: cat...
Hi Scrutinizer,
this seems to work: cat newfile | tr -d "\n" | tr -d "\r" > newfile1..

This I ran on top of your first command.. Do you c ne issues using this??
3,525
Posted By Gurkamal83
This command worked, but with an issue ...
This command worked, but with an issue

||13455;2013-01-04 15:06:49|abc@ser01:/tmp/WrkSpc/Archive

||13455;2013-01-04 15:06:49
abc@ser01:/tmp/WrkSpc/Archive

wc -l on orig file returns
0...
3,525
Posted By Gurkamal83
Yes Pamu, i tried both the commands that you...
Yes Pamu, i tried both the commands that you shared and it didn't work.
3,525
Posted By Gurkamal83
sed and awk not working on a large record file
Hi All,

I have a very large single record file.

abc;date||bcd;efg|......... pqr;stu||record_count;date

when i do wc -l on this file it gives me "0" records, coz of missing line feed.

my...
1,701
Posted By Gurkamal83
Thanks. But the code has an issue. the...
Thanks.

But the code has an issue.

the first file has

Header
999records..

I want to start the split from 3rd records. As my file has
Header
\n(One line Gap)
Records
\n(one line...
1,701
Posted By Gurkamal83
File Handling
Hi Team,

I am trying to cut a large file into multiple files. It has

Header

50,050 records

Trailer

-------------------------------------------

I need to cut the files into multiple...
3,543
Posted By Gurkamal83
2225460 1 2 - 1 0 - 2 5 0 ...
2225460 1 2 - 1 0 - 2 5 0 8 : 4 9 : 0
2225500 3 |
2225502
3,543
Posted By Gurkamal83
How can I overcome this limitation
How can I overcome this limitation
3,543
Posted By Gurkamal83
yes.. I am getting from where u r coming.. do u...
yes.. I am getting from where u r coming.. do u mean the line feed??
3,543
Posted By Gurkamal83
Thanks for the reply.. but your command also...
Thanks for the reply.. but your command also didnt work.
With the small files i can see record values and the record getting trimmed off with the trailling '|'.
When I use the same command with my...
3,543
Posted By Gurkamal83
hmm, yes this is a 600K file and as already said...
hmm, yes this is a 600K file and as already said it is a single record. How can i handle the file manupulation?
3,543
Posted By Gurkamal83
Large file data handling issue
I have a single record large file, semicolon ';' and pipe '|' separated. I am doing a vi on the file. It is throwing an error "File to long"

I need to actually remove the last | symbol from this...
1,544
Posted By Gurkamal83
Thanks for the code. But I am getting error on...
Thanks for the code. But I am getting error on UNIX.

fwtwc@meraqapp01:/openet/u0002/test_files$ awk -F";" '{for(i=1;i<=NF;i++){if(!(i%50)){$i=9006}}}1' OFS=";" RS=ORS="|" newfile.dat
awk: syntax...
1,544
Posted By Gurkamal83
UNIX file handling issue
I have a huge file semicolon( ; ) separated records are Pipe(|) delimited.

e.g
abc;def;ghi|jkl;mno;pqr|123;456;789

I need to replace the 50th field(semicolon separated) of each record with...
Showing results 1 to 20 of 20

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