462 reputation
314
bio website
location
age
visits member for 3 years
seen Dec 4 at 10:34

Jul
25
comment Return last command executed in shell-script
wow. in bash v3 (and v4 too) you can just remove the she-bang at all and history will work pretty well.
Jul
25
comment Return last command executed in shell-script
I've added simple exapmle to my answer. It should work at your side. Please try it. May be the trouble is in commands after history?
Jul
25
revised Return last command executed in shell-script
edited body
Jul
25
comment Return last command executed in shell-script
!! equal to the last command. However OP construction equals to the command just before the last one. !-2 exactly equals to OP construction. Unfortunately both !! and !-2 don't work inside of shell script.
Jul
25
awarded  Editor
Jul
25
revised Return last command executed in shell-script
added 152 characters in body
Jul
25
answered Return last command executed in shell-script
Jul
25
answered How can I suspend a whole command sequence in a shell?
Jul
20
awarded  Constituent
Jul
20
awarded  Caucus
Jul
7
comment how to get access to environment variables from output file
Does your file have the exact format as in example? Try to remove ^ before <Value.
Jul
6
answered how to get access to environment variables from output file
Jul
2
comment using coreutils split file into pieces to different directories?
Will you satisfy if something just sorts files into subfolders after split will split your file?
Jun
29
answered Linux WGET -O command for non existing folders?
Jun
26
comment How to jump to a particular flag in a Unix manpage?
That's pretty useful to send someone to the exact place in the man page :)
Jun
26
answered How to jump to a particular flag in a Unix manpage?
May
9
awarded  Tumbleweed
Apr
28
answered Use sed to modify and execute previous command
Dec
15
awarded  Supporter
Dec
2
awarded  Teacher