bash Script Template
Jump to navigation
Jump to search
A bash Script Template is a script template that is a bash script.
- …
- Counter-Example(s):
- See: bash Statement.
References
#!/bin/bash #!/bin/bash -x daystamp=`date +%y%m%d` timestamp=`date +%H%M%S` pid=$$ sessionId="${daystamp}${timestamp}-${pid}" OS=`uname` TODAY=`date +%Y-%m-%d` YESTERDAY=`date +%Y-%m-%d --date="yesterday"` LASTWEEK=`date +%Y-%m-%d --date="7 days ago"` LASTMONTH=`date +%Y-%m-%d --date="30 days ago"` # parameter handling param1=$1 param2=$2 param3=$3 param4=$4