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

Popular posts from this blog

debian - Kali Linux - Debootstrap error Failed to determine codename for the release - Super User

crash - Windows Rundll32 (child process of DllHost) is crashing. How can I even identify it? - Super User

Windows XP installation, no previous version of Windows NT - Super User