In Linux, you have an ssh config file, called config, how do you search for and print out the 5 lines around the word "euqa-kc-backend-01"?
Answer
grep -5 euqa-kc-backend-01 config
^^ the -5 will print the 5 lines above and below the search word: euqa-kc-backend-01
Question
In Linux, you have an ssh config file, called config, how do you search for and print out the 5 lines around the word "euqa-kc-backend-01"?
Answer
?
Question
In Linux, you have an ssh config file, called config, how do you search for and print out the 5 lines around the word "euqa-kc-backend-01"?
Answer
grep -5 euqa-kc-backend-01 config
^^ the -5 will print the 5 lines above and below the search word: euqa-kc-backend-01
If you want to change selection, open document below and click on "Move attachment"
4. Basic Commands isplay all lines containing it: grep 'the' Mary_Jones.letter . Now try grep 'the' *.letter . grep -n <pattern> <filename> shows the line number in the file where the word was found. <span>grep -<num> <pattern> <filename> prints out <num> of the lines that came before and after each of the lines in which the word was found. grep -A <num> <pattern> <filename> prints out <num>
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.