D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Tshirt joke idea

 

> Heh.  Just one suggestion for a small change:
>
> sudo -i
> chown -R us: /dev/base
> chown -R us: /etc/base
> chown -R us: /var/base
> chown -R us: /bin/base
> chown -R us: /usr/base
> chown -R us: /home/base
> exit
>
> Printing a t-shirt is probably charged by the character, so that should
> shave a little off.  Plus, it's neater if you ask me.
>
> Vinu

Ok how about this ?

#!/bin/bash

for dir in dev etc var bin usr home

do
    chown -R us: $dir/base
done


Not sure if thats syntactically correct and its not shorter to print but
its probably logically neater

Steph


-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html