Skip to main content
5 events
when toggle format what by license comment
Nov 26, 2018 at 0:33 history edited Rui F Ribeiro CC BY-SA 4.0
deleted 43 characters in body
Apr 24, 2012 at 17:26 comment added Gilles 'SO- stop being evil' In most cases, yes. In general, no. Try (in bash/ksh/zsh) touch junk precious $'junk\nprecious'; ls -1 | grep junk | xargs -l rm. You didn't really care about that precious file, did you? Not to mention that restriction to at most 1000 files, or the fact that you find 03.jpg when you're looking for 3.jpg. I retract my comment for second-best, this is really broken, and it's incomplete to boot.
Apr 24, 2012 at 16:46 comment added alexarsh "ls -1" give you only the file names if that's what you mean.
Apr 23, 2012 at 23:16 comment added Gilles 'SO- stop being evil' Parsing the output of ls is not a good idea. It'll mostly work here, but a wildcard-based solution will completely work, so why settle for second-best?
Apr 23, 2012 at 16:21 history answered alexarsh CC BY-SA 3.0