Search Results

Search: Posts Made By: Blardo
5,414
Posted By Blardo
This should work: find ~ *.c -exec vi `grep...
This should work:

find ~ *.c -exec vi `grep -l "int\ *main\ *("` {} \;

find finds all files *.c and executes vi provided that grep finds the string "int main(". The -l in grep returns the...
Showing results 1 to 1 of 1

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