Timeline for Interactive remove files listed with paths in text file
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 1, 2016 at 19:37 | comment | added | Mike | @Giles Thanks for your suggestion. I'd like to suggest you do not edit an accepted answer, deleting the accepted change, replacing it with a fix that the originator may or may not accept. Seems to me you should restore the answer from L. Level, and post your recommendation as a new answer (not a comment). | |
| Mar 31, 2016 at 23:35 | comment | added | Gilles 'SO- stop being evil' | @Mike See my edit for a more robust solution (assuming that your shell supports process substitution). | |
| Mar 31, 2016 at 23:35 | history | edited | Gilles 'SO- stop being evil' | CC BY-SA 3.0 |
don't break on whitespace, quotes or dashes; use process substitution rather than command substitution, because that makes it easier to both avoid snarfing stdin and not getting into special character trouble
|
| Mar 31, 2016 at 14:44 | vote | accept | Mike | ||
| Mar 31, 2016 at 14:39 | comment | added | L. Levrel | I added a link. The OS puts a limit on the number of arguments. On my current system it is a bit more than 2 millions. | |
| Mar 31, 2016 at 14:38 | history | edited | L. Levrel | CC BY-SA 3.0 |
added 98 characters in body
|
| Mar 31, 2016 at 14:36 | vote | accept | Mike | ||
| Mar 31, 2016 at 14:44 | |||||
| Mar 31, 2016 at 14:33 | comment | added | Mike | The second suggestion worked perfectly. I'm not sure how many you feel is too many. In my case it was under 100, and the command ran with no noticeable delay. Thanks very much. | |
| Mar 31, 2016 at 14:31 | comment | added | L. Levrel |
cat outputs the file contents, tr -d deletes the requested char (\r, i.e. CR) from the stream.
|
|
| Mar 31, 2016 at 14:30 | history | edited | L. Levrel | CC BY-SA 3.0 |
added 143 characters in body
|
| Mar 31, 2016 at 14:18 | comment | added | Mike | That almost worked. It got rid of the \r error, but did not pause for me to respond to the interactive input. I am somewhat confused as to how your command works, so I apologize for being so "needy". Thanks for getting me close! | |
| Mar 31, 2016 at 14:14 | history | answered | L. Levrel | CC BY-SA 3.0 |