Sponsored Content
Top Forums Shell Programming and Scripting Del - trash - restore CSH commands!! Post 302275637 by cfajohnson on Sunday 11th of January 2009 06:04:47 PM
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..
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
xmlindent(1)															      xmlindent(1)

NAME
xmlindent - XML stream reformatter SYNTAX
xmlindent [-o output file] [-i indent level] [-l max columns] [-n newline position] [-t] [-c] [-f] [-w] [-h] [-v] DESCRIPTION
XML Indent is a XML stream reformatter written in ANSI C. It is analogous to GNU indent. OPTIONS
-o output file Write indented XML to output file -i indent level Indent each level indent level spaces deeper -l max columns Wrap lines longer than max columns -t Use tabs instead of spaces -nas Suppress newline after start-tag -nae Suppress newline after end-tag -nbs Suppress newline before start-tag -nbe Suppress newline before end-tag -f Force newline on elements without children -w Overwrite original file -v Show version -h Show command line help AUTHORS
Pekka Enberg <penberg@iki.fi> Thomas Fischer <th.fischer@gmx.net> (man page) SEE ALSO
indent(1) Thomas Fischer 0.2.17 xmlindent(1)
All times are GMT -4. The time now is 01:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy