desktop cleaning
Nils Kassube
kassube at gmx.net
Thu Nov 15 11:05:21 UTC 2007
Shali 9846303531 wrote:
> but where do i put my files name that r not
> to be deleted
OK, you want to preserve a set of files. In the script below you should
replace the string <directory> with the directory name you want to clean.
And you should replace the <space separated list of files> with the list
of files you want to preserve - but don't delete the $dir at the end of
the line.
#!/bin/sh
cd <directory>
dir=$(mktemp -d -p /tmp)
mv <space separated list of files> $dir
rm -r ./*
mv $dir/* .
rmdir $dir
Nils
More information about the ubuntu-users
mailing list