KSH script
Hey everyone, I'm trying to write a script that will be able to have paramaters like: -l and -p OR to be able to be given files and have it put them in a .junk folder.
So if I were to type:
junk -l
it would list the files in .junk folder
and if i were to type:
junk -p
it would delete all the files in .junk folder
and if i were to type:
junk one two three
it would take files "one" "two" and "three" and copy them in the .junk folder.
.junk is a hidden folder in the same folder as the junk script but I can't get it working. I know it is only like a few lines so could someone help me out? Thanks a lot!
-AquamaN
|