Is it possible to echo and redirect history commands into a script file by the
! command? Is there variation of the
tee commands I am overlooking?
518 xmodmap -e "keycode 66 = Return" 519 xmodmap -e "keycode 23 = Tab" 535 xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' [Tech_Ministry@localhost ~]$ echo !535 && !518 >> xmodmap_-e.sh echo xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' && xmodmap -e "keycode 66 = Return" >> xmodmap_-e.sh xmodmap -e clear Lock -e keycode 0x42 = Escape
After reading this post I tried
echo !535:p && !518:p >> xmodmap_-e.sh
I feel as if I am missing something simple.. Is it possible to do this? Possible to echo each command to a separate line?