Oct 3 2016 – Bash Talk past

Speaker: Dr. Carl Albing
Subject: Bash

$x=’ls’
$x=$(ls)

echo $x
printf “….%s..%05d\n”

loops
while read aline
do
.
.
.
done

echo $? to see if things were successful

$? — get results

cd /tmp/mytmp || exit -2

rm $filename

cp /tmp/mytmp || {echo “error: can not cd”; exit }
rm $filename

cd /tmp/mytmp && rm $filname
exit

#spaces mean variables don’t get assigned.
VAR=”/usr/local/bin/a.out”
D1=$(dirname $VAR)
D1=${VAR %.out}
D1=${VAR %/*}
B1=${VAR ##*}
L1=${VAR/local\/}
export L1

Location: IJET 3rd Floor, 185 Admiral Cochrane Dr, Annapolis MD
Time/Date: 7PM 1st Monday of Month 10/3/2016