Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: Danette
2,290
Posted By Danette
Sure head could work. However I would have to...
Sure head could work. However I would have to specify a file name. It will not behave same way as when using grep for searching all files.
2,290
Posted By Danette
Grep first n lines from each file
I am using




grep --include="*.org" --include="*.texi" -hir -C 8 "Abstract" ./




Now I would simply like to print the first n lines from each file without searching for any pattern.
Showing results 1 to 2 of 2

 

Featured Tech Videos

All times are GMT -4. The time now is 01:47 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy