A big part of our jobs requires some Shell Script knowledge. The Blog main goal is help anyone with scripts problems and doubts. Occasionally, anyone can send tips to the Blog that might help our every-day tasks.
Thursday, January 27, 2011
grep -A for Solaris
(Via Edson Oliveira at Gemalto)
# nawk '/root/{c=7}c&&c--' /etc/passwd
Where c=7 is the number of lines you want to grep after.
No comments:
Post a Comment