Timeline for How to remove four random characters before the .extension from various files using a for loop?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 30, 2021 at 18:34 | vote | accept | TreaHugger | ||
| May 28, 2021 at 23:10 | comment | added | cas | No problem. BTW, something I should have pointed out in my answer was that you need to double quote your variables when you use them (i.e. use "$var" or "${var}" instead of just $var or ${var}) and that the only time you need to use curly braces around a variable name is to disambiguate it from other text. e.g. "$var_1_xyz.txt" will be treated as one long variable named var_1_xyz without curly braces because underscore is a valid character for variable names, so needs to be typed as "${var}_1_xyz.txt". It's not wrong to use {} at other times, it's just not necessary. | |
| May 28, 2021 at 17:41 | comment | added | TreaHugger | Thank you so much! This helped a lot! | |
| May 28, 2021 at 17:38 | vote | accept | TreaHugger | ||
| May 30, 2021 at 18:34 | |||||
| May 27, 2021 at 3:03 | history | edited | cas | CC BY-SA 4.0 | added 836 characters in body |
| May 27, 2021 at 2:52 | history | answered | cas | CC BY-SA 4.0 |