Search Results

Search: Posts Made By: boijie
2,206
Posted By bartus11
find . -name "example.xml" -exec grep Version {}...
find . -name "example.xml" -exec grep Version {} \;
2,206
Posted By cabrao
Try this to print filename and line containing...
Try this to print filename and line containing string "Version"
find . -name example.xml -exec awk '/Version/{print FILENAME,$0}' {} \;
2,206
Posted By citaylor
find . -name "example.xml" -exec grep Version {}...
find . -name "example.xml" -exec grep Version {} /dev/null \;
or
find . -name "example.xml" -print | xargs grep Version
2,206
Posted By pseudocoder
find . -name "example.xml" 2>/dev/null -exec grep...
find . -name "example.xml" 2>/dev/null -exec grep -l Version "{}" \;

Try this ^^, it will only print the filename, where the search string is being found.
If that works, try this command without...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 11:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy