command line - Delete text from a bunch of .obj files at once using terminal - Ask Ubuntu


this question has answer here:

how can delete text attr_shiny_rat 0.900 bunch of .obj files @ once using terminal?

for in *.obj;   grep -v 'attr_shiny_rat\s0\.900' "$i" > temp   rm "$i"   mv temp "$i" done 

Comments