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
9 More Discussions You Might Find Interesting
1. Linux
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
2. UNIX for Dummies Questions & Answers
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
3. Linux
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
4. Shell Programming and Scripting
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
5. UNIX for Dummies Questions & Answers
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. AIX
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
7. Homework & Coursework Questions
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
8. 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
9. Shell Programming and Scripting
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
LEARN ABOUT OSX
file::remove
File::Remove(3) User Contributed Perl Documentation File::Remove(3)
NAME
File::Remove - Remove files and directories
SYNOPSIS
use File::Remove 'remove';
# removes (without recursion) several files
remove( '*.c', '*.pl' );
# removes (with recursion) several directories
remove( 1, qw{directory1 directory2} );
# removes (with recursion) several files and directories
remove( 1, qw{file1 file2 directory1 *~} );
# trashes (with support for undeleting later) several files
trash( '*~' );
DESCRIPTION
File::Remove::remove removes files and directories. It acts like /bin/rm, for the most part. Although "unlink" can be given a list of
files, it will not remove directories; this module remedies that. It also accepts wildcards, * and ?, as arguments for filenames.
File::Remove::trash accepts the same arguments as remove, with the addition of an optional, infrequently used "other platforms" hashref.
SUBROUTINES
remove
Removes files and directories. Directories are removed recursively like in rm -rf if the first argument is a reference to a scalar that
evaluates to true. If the first arguemnt is a reference to a scalar then it is used as the value of the recursive flag. By default it's
false so only pass 1 to it.
In list context it returns a list of files/directories removed, in scalar context it returns the number of files/directories removed. The
list/number should match what was passed in if everything went well.
rm
Just calls remove. It's there for people who get tired of typing remove.
clear
The "clear" function is a version of "remove" designed for use in test scripts. It takes a list of paths that it will both initially delete
during the current test run, and then further flag for deletion at END-time as a convenience for the next test run.
trash
Removes files and directories, with support for undeleting later. Accepts an optional "other platforms" hashref, passing the remaining
arguments to remove.
Win32
Requires Win32::FileOp.
Installation not actually enforced on Win32 yet, since Win32::FileOp has badly failing dependencies at time of writing.
OS X
Requires Mac::Glue.
Other platforms
The first argument to trash() must be a hashref with two keys, 'rmdir' and 'unlink', each referencing a coderef. The coderefs will be
called with the filenames that are to be deleted.
SUPPORT
Bugs should always be submitted via the CPAN bug tracker
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-Remove <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-Remove>
For other issues, contact the maintainer.
AUTHOR
Adam Kennedy <adamk@cpan.org>
COPYRIGHT
Some parts copyright 2006 - 2012 Adam Kennedy.
Taken over by Adam Kennedy <adamk@cpan.org> to fix the "deep readonly files" bug, and do some package cleaning.
Some parts copyright 2004 - 2005 Richard Soderberg.
Taken over by Richard Soderberg <perl@crystalflame.net> to port it to File::Spec and add tests.
Original copyright: 1998 by Gabor Egressy, <gabor@vmunix.com>.
This program is free software; you can redistribute and/or modify it under the same terms as Perl itself.
perl v5.16.2 2012-03-18 File::Remove(3)