Timeline for Rename files using a WHILE loop instead of a FOR loop
Current License: CC BY-SA 3.0
        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 casemvprompts 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 readwould strip the trailingGoff the file name if$IFSso happened to containG. 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 isIFS= 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 |