Timeline for Transform an array into arguments of a command?
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 8, 2022 at 3:05 | comment | added | G-Man Says 'Reinstate Monica' | For background, see But what if …? | |
| Jul 7, 2022 at 15:44 | comment | added | Stéphane Chazelas | Similar: Brace expansion with elements of an array | |
| Jul 7, 2022 at 15:39 | answer | added | BlueDiary9 | timeline score: 3 | |
| Jan 23, 2012 at 4:50 | vote | accept | Somebody still uses you MS-DOS | ||
| Jan 20, 2012 at 23:08 | history | edited | Gilles 'SO- stop being evil' | edited tags | |
| Jan 20, 2012 at 7:53 | answer | added | manatwork | timeline score: 81 | |
| Jan 20, 2012 at 6:29 | comment | added | alfa64 | It might seem pointless but if you are making big shell scripts maybe you should look into perl, this kind of thing is very easy to do there. | |
| Jan 20, 2012 at 4:53 | answer | added | user14039 | timeline score: 0 | |
| Jan 20, 2012 at 4:50 | vote | accept | Somebody still uses you MS-DOS | ||
| Jan 23, 2012 at 4:50 | |||||
| Jan 20, 2012 at 3:43 | comment | added | Somebody still uses you MS-DOS | @Kevin: Yes, and execute it. All lines are inside the same bash script. I'm asking this because these same options are going to be used in a lot of places inside the script, so instead of copying all of them around, I thought about an array. | |
| Jan 20, 2012 at 3:38 | answer | added | Kevin | timeline score: 1 | |
| Jan 20, 2012 at 3:19 | comment | added | Kevin | So you want to add - to the beginning of each word in my_array? | |
| Jan 20, 2012 at 3:03 | history | asked | Somebody still uses you MS-DOS | CC BY-SA 3.0 |