Need grep -v Equivalent for AIX


 
Thread Tools Search this Thread
Operating Systems AIX Need grep -v Equivalent for AIX
# 1  
Old 05-13-2015
Need grep -v Equivalent for AIX

Need grep -v "Hello" equivalent for AIX
# 2  
Old 05-13-2015
Any idea by yourself?
# 3  
Old 05-13-2015
This User Gave Thanks to Peasant For This Post:
# 4  
Old 05-13-2015
Might I suggest:-
Code:
grep -v "Hello"

This should do what you need, according to how you describe it above.

More help might be available....
  • if you have errors and you post them.
  • if you have an input that gives unexpected output, and you post them.


Please remember to post all code, files, input & output/errors in CODE tags. It makes them easier to read and preserves multiple spaces for indentation or fixed-width data.





Robin
# 5  
Old 05-19-2015
Do you want to know the equivalent option of "grep -v <String> <Filename>" in AIX?

-v flag in grep command is common and standard on all UNIX operating systems. So it will work on AIX.
# 6  
Old 05-19-2015
Hi.
Code:
       -v
            Displays all lines not matching the specified pattern.

from man grep, q.v.
for
Code:
aix 7.1.0.0
grep - ( /usr/bin/grep, Oct 01 2012 )

Best wishes ... cheers, drl
# 7  
Old 05-19-2015
Now I'm not sure I understand the question.

Does "equivalent" mean something grep-like, but not grep? I don't know any grep that would not have the -v option (save for old Solaris, perhaps, or toy Linux's that you might install on Raspberry PI, etc.)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

GAWK/GREP Equivalent

What is GAWK equivalent to greps -B 5 -A 5? zgrep -i "^oct 20" /var/log/syslog*|grep -iB 5 -A 5 'postfix\/pickup /var/log/syslog.1.gz:Oct 20 01:55:01 elmo CROND: (mail) CMD (/usr/bin/python -S /usr/lib64/mailman/cron/gate_news) /var/log/syslog.1.gz:Oct 20 02:00:01 elmo CROND: (mail) CMD... (5 Replies)
Discussion started by: metallica1973
5 Replies

2. Shell Programming and Scripting

grep -v equivalent in perl

I have to do grep -v in a perl script. I want to exclude blank lines and lines having visitor. #grep -v visitor abc.txt |grep '.' file:abc.txt 1340 not booked 16D:D9 tourist 8 1341 not booked 16C:D4 tourist 25 1342 not booked 16D:C4 visitor 7 1343 not booked 01C:D9 visitor 6 1344... (4 Replies)
Discussion started by: dynamax
4 Replies

3. Shell Programming and Scripting

AIX equivalent to GNU grep's -B and -A [print lines after or before matching lines]

Hi folks I am not allowed to install GNU grep on AIX. Here my code excerpt: grep_fatal () { /usr/sfw/bin/gegrep -B4 -A2 "FATAL|QUEUE|SIGHUP" } Howto the same on AIX based machine? from manual GNU grep ‘--after-context=num’ Print num lines of trailing context after... (4 Replies)
Discussion started by: slashdotweenie
4 Replies

4. UNIX for Dummies Questions & Answers

AIX equivalent to MS IIS?

Chaps, We are migrating our corporate systems off Windows and Solaris to IBM AIX 6 using LPARs and VMWare across the board. One thing I'm not sure of is what is the AIX equivalent of IIS - the Internet Information Service? Do I need Apache web server (isn't that on Linux)? Thanks in... (5 Replies)
Discussion started by: gmslater99
5 Replies

5. AIX

ignite equivalent in AIX

Hi All, Does AIX has utility like ignite server to make remote os installation using image (2 Replies)
Discussion started by: jayannair
2 Replies

6. Shell Programming and Scripting

perl equivalent to grep -c

Guess the subject lines says it all. What is the perl equivalent to grep -c -c, --count Suppress normal output; instead print a count of match- ing lines for each input file. With the -v, --invert- match option (see below), count non-matching lines. ... (6 Replies)
Discussion started by: popeye
6 Replies

7. UNIX for Advanced & Expert Users

Equivalent for iostat -e in AIX HP-UX Linux

iostat -e gives the soft, hard and transport error information in Solaris. What is the equivalent command in the other flavors of Unix AIX HP Linux. Thanks Prasi (1 Reply)
Discussion started by: prasi_in
1 Replies

8. UNIX for Advanced & Expert Users

snoop equivalent for AIX

is there a snoop equivalent in other flavors of unix? for AIX IBM (1 Reply)
Discussion started by: jcasares
1 Replies

9. UNIX for Dummies Questions & Answers

HP-UX make_tape_recovery equivalent for AIX?

I've tried the "UNIX Rosetta Stone" and googling to no avail, and ideas anyone? (3 Replies)
Discussion started by: sam_pointer
3 Replies

10. UNIX for Dummies Questions & Answers

IBM-aix equivalent to these hp-ux commands

hi , what are the ibm equivalent to the below commands. thanks top glance ioscan (1 Reply)
Discussion started by: yls177
1 Replies
Login or Register to Ask a Question