Thursday, September 24, 2009

a bit of what I do at work


if [ ! -f *.GO ]
then
if [ -d ../FilePool ]
then
if [ -f ../FilePool/*.GO ]
then
if [ `pwd | grep EDIT01` ]
then
for i in `ls -1 ../FilePool/*.GO | head -1`
do
mv $i `basename $i .GO`.IP
mv ../FilePool/`basename $i .GO`.GO? .
mv `basename $i .GO`.IP `basename $i .GO`.GO
done
else
for i in `ls -1 ../FilePool/*.GO | grep -v "\Z.GO" | head -1`
do
mv $i `basename $i .GO`.IP
mv ../FilePool/`basename $i .GO`.GO? .
mv `basename $i .GO`.IP `basename $i .GO`.GO
done
fi
fi
fi
fi

2 comments:

rita said...

you do gobblygook at work?

Debstar said...

you fall asleep at the end of a page and accidentally keep presssin ing in in
in
in
in