Skip to main content
7 events
when toggle format what by license comment
Nov 3, 2017 at 15:06 comment added Stéphane Chazelas Another problem with that while loop is that mv's stdin is redirected to a pipe (which matters in case mv prompts the user).
Nov 3, 2017 at 15:05 comment added Stéphane Chazelas There's also a missing -- in the OP's code.
Nov 3, 2017 at 15:04 comment added Stéphane Chazelas Also note that read would strip the trailing G off the file name if $IFS so happened to contain G. With an unmodified $IFS, you'd have issues with leading and trailing space or tab characters (and newline with NUL delimited data). The syntax to read a line of input verbatim is IFS= read -r line
Nov 2, 2017 at 14:17 history edited Kusalananda CC BY-SA 3.0
added 3 characters in body
Nov 2, 2017 at 11:58 vote accept sci9
Feb 13, 2018 at 5:54
Nov 2, 2017 at 10:56 history edited Kusalananda CC BY-SA 3.0
added 772 characters in body
Nov 2, 2017 at 10:50 history answered Kusalananda CC BY-SA 3.0