Advertisement
Tritonio

Running trid (or any command) on thousands of files

May 13th, 2021
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. find |grep -e '.chk$' | lua -e "while true do str='' for i=1,50 do line=io.read('*l') if not line then break end line=string.sub(line,3) str=str..' '..line end if str=='' then break end os.execute('trid '..str..' -ae') end"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement