Horje
how to print next lines with grep Code Example
print next 10 lines after grep
grep -A 2 "app" mytext.txt //prints two lines after the match line
grep -B 2 "app" mytext.txt //prints two lines before the match line
how to print next lines with grep
grep -A 2 "searchText" mytext.txt ## next 2 lines after match line
grep -B 2 "seacrchText" mytext.txt ## next 2 lines before match line
grep -C 2 "searchText" mytext.txt ## next 2 lines before and after match line
how to print next lines with grep
grep -A 2 "searchText" mytext.txt ## next 2 lines after match line
grep -B 2 "seacrchText" mytext.txt ## next 2 lines before match line
grep -C 2 "searchText" mytext.txt ## next 2 lines before and after match line
how to print next lines with grep
grep -A 2 "searchText" mytext.txt ## next 2 lines after match line
grep -B 2 "seacrchText" mytext.txt ## next 2 lines before match line
grep -C 2 "searchText" mytext.txt ## next 2 lines before and after match line




Shell

Related
linux vga wake up screen Code Example linux vga wake up screen Code Example
join computer to domain powershell script Code Example join computer to domain powershell script Code Example
screen sharung zoom linux x11 Code Example screen sharung zoom linux x11 Code Example
change webmail user password Code Example change webmail user password Code Example
copy a file from home directory to other directory in linux Code Example copy a file from home directory to other directory in linux Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8