Skip to content

Instantly share code, notes, and snippets.

@zipizap
Last active December 31, 2015 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zipizap/7906811 to your computer and use it in GitHub Desktop.
Save zipizap/7906811 to your computer and use it in GitHub Desktop.
red@ownc:/tmp$ cat a.sh
#!/bin/bash
# Activate debug
set -x
echo "hi"
ls
pwd
# De-activate debug
set +x
date
red@ownc:/tmp$ ./a.sh
+ echo hi
hi
+ ls
9591.jsvc_up a.sh hsperfdata_cassandra hsperfdata_root tmux-1001
+ pwd
/tmp
+ set +x
Tue Dec 10 17:05:17 CET 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment