Del - trash - restore CSH commands!!


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Del - trash - restore CSH commands!!
# 1  
Old 01-11-2009
Del - trash - restore CSH commands!!

Anyone who could help me with those three commands, i'm really new in cshell script so please be understandable..

Need to demostrate those three commands
del

trash (incl -ai) i that you will be asked to confirmed that they can be deleted
a to move all those files from dustbin

and to restore the files that have ben deleted and trash ... used (-n) should restore the file to the original directory.

1. start a shell to creat a file
2. delete that file
3. creat another file
4. trash that file
5. restore deleted and trash files

Hope anyone can help me with those three commands
# 2  
Old 01-11-2009
Quote:
Originally Posted by Visi_Ks
Anyone who could help me with those three commands, i'm really new in cshell script so please be understandable..

If you are new to shell scripting, learn the POSIX shell (e.g., bash, ksh); csh is not recommended for scripting:

Top Ten Reasons not to use the C shell
Csh problems
Csh Programming Considered Harmful
Quote:
Need to demostrate those three commands
del

trash (incl -ai) i that you will be asked to confirmed that they can be deleted
a to move all those files from dustbin

and to restore the files that have ben deleted and trash ... used (-n) should restore the file to the original directory.

These are not standard UNIX commands.

Or are you trying to write scripts that perform these functions?
Quote:
1. start a shell to creat a file
2. delete that file
3. creat another file
4. trash that file
5. restore deleted and trash files

That looks suspiciously like homework.

Last edited by cfajohnson; 01-11-2009 at 08:59 PM..
# 3  
Old 01-11-2009
it's kind of homework but where can i get some help around this topic, if they are not Unix Commands,
which command do i have to use to perform these functions?

THanks for that fast reply ..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Csh - how to combine multiple commands in one line

Hey everyone, I am working in an environment where the different users can use ksh or csh. My situation is that I need the same result with one single command line. I am searching for the real path the file is in. My ksh input and output ts2:ts2adm> cd $(dirname $(which sapcontrol)); pwd -P... (2 Replies)
Discussion started by: h1kelds
2 Replies

2. Solaris

trash can in solaris

one quick question please.. is Solaris have a RECYLE BIN,or TRASH to retrive deleted files accidently ? (0 Replies)
Discussion started by: Sojourner
0 Replies

3. Homework & Coursework Questions

Delete restore and empty trash

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: A set of Linux shell scripts is required to allow users to ‘remove' files without them really disappearing... (1 Reply)
Discussion started by: mr100perecent
1 Replies

4. AIX

mksysb restore - Wrong OS level for restore

Hi all, I am still working on my mksysb restore. My latest issue is during an alt_disk_install from tape I got the following error after all the data had been restored. 0505-143 alt_disk_install: Unable to match mksysb level 5.2.0 with any available boot images. Please correct this... (0 Replies)
Discussion started by: pobman
0 Replies

5. UNIX for Dummies Questions & Answers

Trash

Hello, I deleted a file accidentally using rm-f inside a folder. Is there any option/command to retrive the file or is it possible to recover from trash? or once the file is deleted, it is gone completely?? (2 Replies)
Discussion started by: sydney2008
2 Replies

6. Shell Programming and Scripting

csh failing to call an 2 embedded csh script

I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them) Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
Discussion started by: pollsizer
1 Replies

7. Linux

Emptying Trash

Hi all i hope someone can help me, in gnome if you right click on trash, you get another menu appear 'Empty Trash' what i want to do is be able to edit this command so that it secure deletes the trash, where is that command? so i can edit it. thanks in advance for any help, Dave (shred -z -u ) (0 Replies)
Discussion started by: dave123
0 Replies

8. UNIX for Dummies Questions & Answers

shortcut for recently used commands in csh

hello, as in bash we have history of commands what is the shortcut for seeing recently used command in csh shell. thanks in advance. regards, rishi found the reply in man! Thanks it is !! to repeat last command (1 Reply)
Discussion started by: RishiPahuja
1 Replies

9. Linux

empty trash

Hello i am trying to empty the trash using rm or rmdir command . Any idea how to delete the folders and subfolders using one of the above commands? Thank You (2 Replies)
Discussion started by: exhumation
2 Replies
Login or Register to Ask a Question