Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: MadeInGermany
2,290
Posted By MadeInGermany
Even without the shopt -s extglob the folllowing...
Even without the shopt -s extglob the folllowing is expanded: echo {*,*/*,*/*/*}.{opt,texi}
A shopt -s nullglob suppresses non-matching patterns.
2,290
Posted By MadeInGermany
grep -l prints the file names so you can process...
grep -l prints the file names so you can process them with xargs.
grep --include="*.org" --include="*.texi" -lir "Abstract" . | xargs headBut xargs has a problem with space characters in file names....
Showing results 1 to 2 of 2

 

Featured Tech Videos

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