Search Results

Search: Posts Made By: umarsatti
2,239
Posted By umarsatti
Thanks Ravinder, it works like a charm. Can...
Thanks Ravinder, it works like a charm.

Can you please explain your code as well?
2,239
Posted By umarsatti
Taking nth column and putting its value in n+1 column using awk
Hello Members,

Need your expert opinion how to tackle below.

I have an input file that looks like below:

USS|AWCC|AFGAW|93|70
USSAA|Roshan TDCA|AFGTD|93|72,79
ALB|Vodafone|ALBVF|355|69...
1,823
Posted By umarsatti
thanks, ill take note of it.
thanks, ill take note of it.
1,823
Posted By umarsatti
Thanks R.Singh and hth, both of your codes worked...
Thanks R.Singh and hth, both of your codes worked perfectly fine.

And apologies I mixed up the input file.
1,823
Posted By umarsatti
Thanks, I have edited my post in proper format. ...
Thanks, I have edited my post in proper format.

Your code is not working for the attached file.

Can you please take a look at it and suggest?

Please explain your code as well.

Thanks!!
1,823
Posted By umarsatti
File filtering using awk or sed
Hello Members,

I have a file, having below contents:

<KEYVALUE>$4,0,1,4,966505098999--&gt;RemoteSPC: 13 SSN: 146</KEYVALUE>
<KEYVALUE>$4,123,1,4,966505050198--&gt;RemoteSPC: 1002 SSN:...
2,976
Posted By umarsatti
Yes, sorry for the confusion, let me put it in...
Yes, sorry for the confusion, let me put it in more simple way.

Example:

20130210132030
A
B
C
Banana
20130210142320
D
E
F
Mango
20130210154634
G
H
I
Apple
20130210163415
2,976
Posted By umarsatti
No first line is not "20131002" and last line is...
No first line is not "20131002" and last line is not "Voice", script first grep 20131002 and than scan lines below as soon as it come across first "Voice" it prints and search for other such patterns...
2,976
Posted By umarsatti
How to Grep than scan line below grep pattern
Hello Colleagues,

I have a file that looks like below.


6-12731913-12731913
9230760143480
410018547148230
20131002193434+0500
20131002193434+0500...
4,900
Posted By umarsatti
Actually in my scenario I can't use ssh, reason...
Actually in my scenario I can't use ssh, reason being is that in my scenario I do not need to login to any remote node/server. I want to send an http/xml requests by telneting to local host of my...
4,900
Posted By umarsatti
Using telnet in my shell script
Hello Guys,

I have a linux server where I already logged in, once logged in, i telnet to local host using some dedicated port and do some action. This I can easily do manually.

Since I need to...
1,613
Posted By umarsatti
Thanks alot elixir_sinari. Your script worked...
Thanks alot elixir_sinari. Your script worked just cool.

Its quite faster than I expected.

Thank!!
1,613
Posted By umarsatti
My aim is to take numbers from file t1 (contains...
My aim is to take numbers from file t1 (contains more than 300k records) and search them in 40 t2 files while each file contains 1.8M records.

If number in t1 is in t2 files than I take column 1...
1,613
Posted By umarsatti
here you go t1 --> File containing more than...
here you go

t1 --> File containing more than 300k reocrds i.e integer numbers
head t1
3028797272
3028797391
3028797459
3028797826
3028797879

t2* --> more than 40 files while each file has...
1,613
Posted By umarsatti
How to make a quick search through a script?
Hello,

I have a file that has more than 300K records (i.e contains numbers). I need to take these records and than search them in 40 files while each file has more than 1.8 million records.

I...
9,420
Posted By umarsatti
Thank you kashif, executing script with "bash -l"...
Thank you kashif, executing script with "bash -l" in crontab solved my problem. =)

However can somebody please explain logic behind this?
9,420
Posted By umarsatti
it says: Sorry, the page you have...
it says:


Sorry, the page you have requested cannot be found.

You can search this site if you are looking for something specific about Linux or UNIX.
9,420
Posted By umarsatti
Yes, this file "/tmp/smssend_results" is created...
Yes, this file "/tmp/smssend_results" is created but its empty.

And script rights are also fine.
9,420
Posted By umarsatti
Couldnt find crond logs on my machine and doing...
Couldnt find crond logs on my machine and doing below also didn't help.

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /export/home/fdsuser/IVR/smssend >> /tmp/smssend_results
9,420
Posted By umarsatti
Hello ygemici, Yes, smssend is all of my...
Hello ygemici,

Yes, smssend is all of my script.

In my earlier post "</Respone>" was a typo in crontab entry. Correct one is as below.

bash-3.00# crontab -l|grep smssend...
9,420
Posted By umarsatti
Script runs fine manually but not in crontab
Hello Guys,

I have scratched my head alot on this but couldn't find clue what's wrong. Can you please help me with this? My problem is as following.

1) When I manually execute following script...
3,419
Posted By umarsatti
Hello itkamaraj, Thank you for your reply,...
Hello itkamaraj,

Thank you for your reply, your script perfectly fits into my example. However I am attaching my original file where I would like to change "Accumulator Factor" under node...
3,419
Posted By umarsatti
Find Node and replace line(s) preceding in xml file
Hello,

I have an xml file whose contacts are like below:

<Node>Apple
<B>Value1</B>
<B>Value2</B>
<B>Value3</B>
</Node>
<Node>Mango
<B>Value1</B>
<B>Value2</B>
<B>Value3</B>...
Showing results 1 to 23 of 23

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