Clock

Piotr Szymanski djurban at redfox.pl
Fri Jun 27 11:18:16 BST 2003


Hi,
I would do it like this:

Id=KDE3.2
Script=" \
#!/bin/sh \
config_dir=~/.kde/share/config/ \
for pkg in `find $config_dir -name 'clock_panelapplet_*' -maxdepth 1 | sort`;
do \
  filename=`basename $pkg` \
  perl -pi -e 's/Type=Plain/Type=0/' \
  perl -pi -e  's/Type=Digital/Type=1/' filename \
  perl -pi -e 's/Tyle=Analog/Type=2/' filename \
  perl -pi -e 's/Tyle=Fuzzy/Type=3/' filename \
done"[,sh]

Im using perl because it is wider spread than sed 4.0 (which supports -i). If 
you think sed should be used just replace perl with sed in the script.
-- 
Piotr Szymanski
djurban at redfox.pl




More information about the kde-core-devel mailing list