10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a directory in unix that is /usr/local/pos contain the folowing directoreis ..that is
now I want to delete only dir2 please advise how to remove the directory dir 2 ..that is rm command and how to use it , and second if I want to zip the dir3 please... (1 Reply)
Discussion started by: punpun66
2. Shell Programming and Scripting
I have a script which will use an input.txt file as an input file.
I am providing data to this input file in the script and once the script is executed, I want to clear all the contents of this file as during the second time use of this script, I'll be appending the data in this input... (5 Replies)
Discussion started by: pat_pramod
3. Shell Programming and Scripting
What's the best way to delete everything in a directory, but not the directory itself, without using shell wildcards? (9 Replies)
Discussion started by: pdc
4. Shell Programming and Scripting
Every day a new .zip file is uploaded to a folder and at mid-night the zip file is to be extracted into a /data/ folder, inside a date-named folder.
# This should extract the contents of a zip file into the /data/ folder into a date based folder
/usr/bin/unzip -a -o... (15 Replies)
Discussion started by: worchyld
5. Shell Programming and Scripting
I need the unix command or shell script to delete all the file in current directory and sub directory. (7 Replies)
Discussion started by: kingganesh04
I have an user's home directory set to /home/A
And A contains the following directories B & C
Is there some way in solaris by which i can prevent the directories B and C from getting deleted by the user but the contents of the directories B & C can be deleted ?
Also i have... (2 Replies)
Discussion started by: localhost
7. UNIX for Dummies Questions & Answers
Can anyone help me out.
I have unix file, I need to delete the contents of the file. Can any one let me know the command to do this.
The file has to be there, but the contents should be deleted.
Manas (6 Replies)
Discussion started by: manas6
8. UNIX for Dummies Questions & Answers
I'm so glad I found this site, I've had so many questions and have been left alone for roughly a year scanning man pages but It's just not quite cutting it for some things.
So, I often like to list directories when browsing around my local machine, a friend's machine, or my web... (6 Replies)
Discussion started by: bbilheimer
9. Shell Programming and Scripting
Please suggest me how can i only remove the contents of the file without deleting it. (3 Replies)
Discussion started by: namishtiwari
10. UNIX for Dummies Questions & Answers
I want to list the contents of a directory, but I do not want to use the ls, is there another way?? (3 Replies)
Discussion started by: carl_vieyra