9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there any way to use find command and search only specific subdirectories in a directory.
i want to search in the following directories
i do not want the find command to search the /home/d3 directory. (6 Replies)
Discussion started by: Little
2. Shell Programming and Scripting
I need a script which should watch a directory for a file with specific directory.
If it finds a file in directory, it should search for few specific keyword in the file. if the keyword exists, it should trim string from specific column.
The file should be moved to another directory and the a... (8 Replies)
Discussion started by: akashdeepak
3. UNIX for Dummies Questions & Answers
I am new to Unix scripting and would like some help. Here is my scenario:
1) I have a text files that contains two fields: file name and retention period in months:
2) The directory I am searching contains sequential files.
3) I need to be able to take the file name... (10 Replies)
Discussion started by: Mustafa19804
4. Shell Programming and Scripting
Hello again :)
i got stuck in problem. Is there any way to get a special directory from directory tree?
Here is my problm.." Suppose i have one fix directory structure "/abc/xyz/pqr/"(this will be fix).Under this directory structure i have some other directory and... (6 Replies)
Discussion started by: harpal singh
5. UNIX for Advanced & Expert Users
Is there a way to allow a user to use sudo cp on a specific directory and only a specific file? (6 Replies)
Discussion started by: cokedude
6. Shell Programming and Scripting
I have to create a sh script which return users who have un-sanctioned(forbidden) files in their home directory.
I tried to do:
for i in `grep -v '^+' $PASSWORD_FILE | cut -d: -f1,6`
username=`echo... (6 Replies)
Discussion started by: catalint
7. Shell Programming and Scripting
I am a novice and require help once again.
I have a over 200 file all called index.jsp placed in different directories
The following Sed command gives me the data of all included jsp files in index.jsp
sed -n -e 's/^.*page="\(*\).*$/\1/p' index.jsp
How can I run the above... (6 Replies)
Discussion started by: rajkdutta
8. Shell Programming and Scripting
Is there a way to umask only a specific directory?
I want that everyone who add a NEW file in this folder gets its file moded 700. But that adding it in any other folder still moded as default.
Excuse my poor English! I'm not a native speaker
Thanks in advance... (4 Replies)
Discussion started by: funyotros
Is there anyway of getting the index of the last entry in a directory? I'm using a C program to read the entries, but I want to go to the last entry because the directory is very big and I don't want to read all. I was using the size of the directory file descriptor but when I remove... (4 Replies)
Discussion started by: psimoes79