10 More Discussions You Might Find Interesting
1. AIX
I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. I do not want to assign user the same group of that directories too.... (0 Replies)
Discussion started by: blinkingdan
0 Replies
2. UNIX Desktop Questions & Answers
Guys, can you tell me how to delete directory and sub directory with files in them, for example:
/system/upgrade/title/sub/var/vito/
I would like to delete 'title' and everything under it. Every sub dir contains files which need to be deleted as well.
Thanks (1 Reply)
Discussion started by: DallasT
1 Replies
3. Shell Programming and Scripting
Hi,
I am currently using SFTP 'put' command to copy all files to remote server and then delete the copied files from source directory.
Can anyone help me with a single command to copy and remove files in one go?
Thanks and Regards,
Chetan Vyas (5 Replies)
Discussion started by: chetancrsp18
5 Replies
4. UNIX for Dummies Questions & Answers
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
Discussion started by: nmakkena
3 Replies
5. Shell Programming and Scripting
Hello!!
I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory:
drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
Discussion started by: bigben1220
3 Replies
6. Shell Programming and Scripting
I've got a problem how to delete files from specific directory.
I don't want do it recursively but only in specific directory.
So, command like
find /home/dirname/ -mtime +8 -type f -exec rm {} \;
is not for me because this command will remove ifs files in
/home/dirname and all... (2 Replies)
Discussion started by: zukes
2 Replies
7. Shell Programming and Scripting
Hi,
I have an dir which has 50K file, some of them are empty. I want to delete the empty file from the dir. I am planning to use the following command.
ls -l | grep " 0 " | awk '{print $9}'
I can copy this to an file and then how do I use this file to delete the empty files.... Any help... (2 Replies)
Discussion started by: Script40
2 Replies
8. UNIX for Dummies Questions & Answers
All,
I am having a directory as
drwxrwsr-x 3 intermec intermec 10240 Jan 8 09:07 intermec
inside the directory . the files are like
cd
-rw-r----- 1 intrmc01 intermec 5226 Dec 2 15:03 AST07356.txt
-rw-r----- 1 intrmc01 intermec 5025 Dec 2 12:51... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies
9. Solaris
I have a Solris 9 box my problem is when I restart my box all my files and dirs in /tmp dir will be deleted exept 2 directories I found them since installation phase !!!!
How to keep my files at that dir " /tmp " even after restarting ??? (1 Reply)
Discussion started by: DarkSoul
1 Replies
10. Shell Programming and Scripting
hi all,
i'm looking for a bash or tcsh script that will clone an empty dir tree 'over' another tree ...
specifically, i'd like to:
(1) specify a src directory
(2) list the directory tree/hiearchy beneath that src dir, w/o files -- just the dirs
(3) clone that same, empty dir hierarchy to... (2 Replies)
Discussion started by: OpenMacNews
2 Replies