[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] useful one liners



Hi all,

Anyone interested in starting an occasional 'useful one liner' thread?

Just to pass on little snippets that you find useful.

Eg,

get a nicely formatted e-mail of all your site mappings:

perl -e 'for (split /\n/, `ls -l /home/sites`) { /(\S*) -> (\S*)/; print
"$2 -> $1\n" if $2; }' |/bin/mail your@xxxxxxxxxxxxxxxx

shows path first.

I find it useful for when I lose track, anyway ;-)

cLive ;-)

PS - while on the subject, does anyone have a good one liner for listing
all files owned by a particular user?

cLive hoLLoway
E-commerce Developer
Now is the time to get trolleyed - www.get-trolleyed.co.uk

print pack "H56", '4a75737420616e6f7468657220636f72706f726174652077686f7265';