DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
Display lines containing the pattern “root” and 3 lines after them in the file /etc/passwd.
root@Linux-world:~# grep -B 4 "games" /etc/passwd
Source by www.linuxtechi.com #
PREVIOUS
NEXT
Tagged:
#Display
#lines
#pattern
#lines
#file
ADD COMMENT
Topic
COMMENT
Name
5+4 =
Submit