Guest User

Untitled

a guest
Nov 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $ python test.py
  2. $ vim test.py
  3.  
  4. $ python test.py # here is where I need to repeat the second proximate bash command
  5.  
  6. $ echo foo
  7. foo
  8. $ echo bar
  9. bar
  10. $ !-2
  11. echo foo
  12. foo
  13.  
  14. $ python test.py
  15. $ vim test.py
  16. $ !py
  17. python test.py # Printed, then run
  18.  
  19. !-2
  20.  
  21. cp foo.py thing.py
  22. edit $_
  23. python $_
  24. !-2
  25. ^thing^foo
  26.  
  27. $ echo "This is a disaster!"
  28. -bash: !": event not found
Add Comment
Please, Sign In to add comment