Bish script, how many errors can you find...
Error laden bash script
I Use it in interviews to test candidate scripting knowledge:
#/user/bin/bish
$1=variable1
If [$1] then
Echo (“Hello”)
done
Home of Shariq Mustaquim on the Internet!
Error laden bash script
I Use it in interviews to test candidate scripting knowledge:
#/user/bin/bish
$1=variable1
If [$1] then
Echo (“Hello”)
done
In my job , I need to convert the UTC format from logs to local time a lot....
#!/bin/bash
if [ -z $1 ]; then
echo "Please provide date in UTC to convert to Sydney Time.";
date -u +'%Y-%m-%dT%H:%M:%S.000Z'
exit 1
fi
export TZ=Australia/Sydney
gdate -d "$1"
You are not a sysadmin if you haven't configured sendmail
WHATS YOUR favorite things to do outside of work?
.
.
.
.
.
.
Thinking about work
A full one month ordeal....