Search Results

Search: Posts Made By: sags007_99
1,017
Posted By sags007_99
This is not the actual file, its just a test...
This is not the actual file, its just a test file, the actual file cannot be sorted out....
1,017
Posted By sags007_99
Need help in comparing two files using shell or Perl
I have these two file that I am trying to compare using shell arrays. I need to find out the changed or the missing
enteries from File2. For example. The line "f nsd1" in file2 is different from...
13,799
Posted By sags007_99
I need to know how to replace a line after a pattern match with an empty line using SED
Hi How Are you?
I am doing fine!
I need to go now?
I will see you tomorrow!


Basically I need to replace the entire line containing "doing" with a blank line:
I need to the following output:...
1,193
Posted By sags007_99
I dont get the required output.
I dont get the required output.
1,193
Posted By sags007_99
It does not work.... I am using AIX....
It does not work.... I am using AIX....
1,193
Posted By sags007_99
Need help with printing in UNIX
I have a file that looks like below:

a:b:c d e f g h
u:f:j
e:k:c0 d9 e1 x55 h789
p:d:hh dtyu gasd lrtyu oqa

Is there a way to print is as given below:

a:b:c
d
e
f
...
1,874
Posted By sags007_99
Hello tyler_durden, I would request you to...
Hello tyler_durden,

I would request you to help me just a little on how this code works so that I can edit it for some other purpose.... Thanks a lot....
1,874
Posted By sags007_99
Help need with PERL multiple search pattern matching!
My example file is as given below:


conn=1 uid=oracle
conn=2 uid=db2
conn=3 uid=oracle
conn=4 uid=hash
conn=5 uid=skher
conn=6 uid=oracle
conn=7 uid=mpalkar
conn=8 uid=anarke
conn=9...
1,585
Posted By sags007_99
I would request someone's help!
I would request someone's help!
1,585
Posted By sags007_99
Thanks a lot tyler_durden, is there a way to...
Thanks a lot tyler_durden, is there a way to modify the perl script to include two search patterns:

uid=oracle and uid=db2 to get


IP=w.x.y.z Hits=x Pattern=db2
IP=w.x.y.z Hits=x...
1,585
Posted By sags007_99
Need help to replace a perl pattern matching
My example file is as given below:

conn=1 uid=oracle
conn=2 uid=db2
conn=3 uid=oracle
conn=4 uid=hash
conn=5 uid=skher
conn=6 uid=oracle
conn=7 uid=mpalkar
conn=8 uid=anarke
conn=9...
1,643
Posted By sags007_99
The perl one works but the awk one gives me a...
The perl one works but the awk one gives me a syntax error.

Thanks a lot balajesuri....
1,643
Posted By sags007_99
Need help with perl pattern matching
My log file looks as given below, its actually a huge file around 1 GB and these are some of the line:

[22/Mar/2011:12:23:48 +0000] conn=5368758 op=10628050 msgId=64 - RESULT err=0 tag=101...
2,689
Posted By sags007_99
Wow... Mirni that was really helpful and it...
Wow... Mirni that was really helpful and it modified it a little bit and it worked for me:


One last question: I have the output given below:
File system devifs is not mounted.
File system...
2,689
Posted By sags007_99
I am not able to interpret this: awk '/^[^...
I am not able to interpret this:
awk '/^[^ ]/{en=$1}/^ *inet /{print en,$2}'

Can you please help?
2,689
Posted By sags007_99
# awk --version awk: Not a recognized flag: - ...
# awk --version
awk: Not a recognized flag: -
Usage: awk [-u] [-F Character][-v Variable=Value][-f File|Commands][Variable=Value|File ...]
2,689
Posted By sags007_99
That one does not give me the required output...
That one does not give me the required output either....

Which OS are you using?
2,689
Posted By sags007_99
Thanks for the reply but none of these server my...
Thanks for the reply but none of these server my purpose:

1)
sed 's/^tcp_sendspace.*//'
and
sed '/^tcp_sendspace/d'
DO NOT replace the line starting with ^tcp_space with a blank line. I am...
2,689
Posted By sags007_99
Need help to replace a pattern with a blank line
Need help to replace the line beginning with tcp_sendspace with a blank line.
# cat if
en0:...
1,232
Posted By sags007_99
Need help with SED for replacing an IP
I need some advice to replace 10.183.x.x with 10.174.17.55 in a file containing multiple 10.183.x.x.

Any help would be highly appreciated.
2,455
Posted By sags007_99
Thanks a lot, this information is really helpful.
Thanks a lot, this information is really helpful.
2,455
Posted By sags007_99
Thanks a lot agama, I have modified the script to...
Thanks a lot agama, I have modified the script to suit my requirement but could you please tell me how the code works.

I am really not able to figure it out.
2,455
Posted By sags007_99
[26/Aug/2011:11:24:20 +0000] conn=9978792 op=1...
[26/Aug/2011:11:24:20 +0000] conn=9978792 op=1 msgId=2 - SRCH base="ou=people,dc=abc,dc=com" scope=1 filter="(&(objectClass=shadowAccount)(uid=oracle))" attrs="uid userPassword shadowLastChange...
2,455
Posted By sags007_99
Script to parse a file faster
My example file is as given below:

conn=1 uid=oracle
conn=2 uid=db2
conn=3 uid=oracle
conn=4 uid=hash
conn=5 uid=skher
conn=6 uid=oracle
conn=7 uid=mpalkar
conn=8 uid=anarke
conn=1 op=-1...
Showing results 1 to 24 of 24

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