Timeline for using $ arguments on the command line and providing values for them at the end
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 7, 2020 at 19:16 | comment | added | josa | thanks! exactly what I was hoping for. I tried using bash on the command line but i had no idea of the syntax. thanks again! | |
| Jul 7, 2020 at 2:02 | vote | accept | josa | ||
| Jul 6, 2020 at 19:55 | history | edited | Giuseppe Clemente | CC BY-SA 4.0 |
Lightened text
|
| Jul 6, 2020 at 19:48 | comment | added | Giuseppe Clemente | I always used the version without bash and starting with $0, but I think you have a point. It is probably safer to do as you suggest; I will update my answer. | |
| Jul 5, 2020 at 18:21 | comment | added | Hauke Laging |
That should rather be bash -c 'chmod "$1" "/home/$2/.bashrc"' bash 740 bobsa because a process with the name 740 would be rather strange. In this case that would be a very short-lived process but there is no reason for doing it differently.
|
|
| Jul 5, 2020 at 13:09 | history | edited | Giuseppe Clemente | CC BY-SA 4.0 |
improved formatting
|
| Jul 5, 2020 at 9:15 | history | answered | Giuseppe Clemente | CC BY-SA 4.0 |