Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Write a shell program with input

$
0
0
Hi,

Here is my question:

I want a shell script which I name as 'del', and can be used as del(string).

when run del(string), it will delete several directories at different locations in my system,like:


rm -fr /lustre/fs/scratch/user/$string
rm -fr /home/user/$string
rm -fr /archive/user/$string
.
.
and so on

Thanks!

Viewing all articles
Browse latest Browse all 16232

Trending Articles