Skip to main content
11 events
when toggle format what by license comment
May 1, 2021 at 3:04 comment added Mauricio Gracia Gutierrez I have just used the second approach and it works very fast and fine, thanks
Apr 25, 2015 at 2:32 vote accept Alex Jones
Nov 23, 2014 at 22:42 history edited muru CC BY-SA 3.0
added 732 characters in body
Nov 23, 2014 at 22:28 comment added muru @edwardtorvalds as I said, determining whether an arbitrary string is an extension or not is too hard. Gilles used extra code for some known extensions. I didn't.
Nov 23, 2014 at 22:27 comment added Alex Jones oh i see you grabbing the last part :p
Nov 23, 2014 at 22:26 comment added Alex Jones yes, but i.am.live.in.india.and.i.study.computer.science.txt goes in txt folder
Nov 23, 2014 at 22:26 comment added muru @edwardtorvalds I assume abcdg.tar.bz goes in to a folder named bz?
Nov 23, 2014 at 22:25 comment added Alex Jones how come the script works fine for i.am.live.in.india.and.i.study.computer.science.txt and not for abcdg.tar.bz ?
Nov 23, 2014 at 22:22 comment added muru @edwardtorvalds it's the path where you want the sorted files to go to. Use it if you use the first approach (find with -exec). If you want the files to go in the same directory where you ran find, remove it and use the second approach (find, followed by xargs).
Nov 23, 2014 at 22:03 history edited muru CC BY-SA 3.0
added 8 characters in body
Nov 23, 2014 at 21:56 history answered muru CC BY-SA 3.0