10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can you please help tweak the below command to exclude all directories with the name "logs" and "tmp"
find . -type f \( ! -name "*.tar*" ! -name "*.bkp*" \) -exec /usr/xpg4/bin/grep -i "user_1" /dev/null {} + >result.out
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v... (9 Replies)
Discussion started by: mohtashims
9 Replies
2. UNIX for Beginners Questions & Answers
How would I use ls -l | cut to just print the directories part from the ls -l command? (9 Replies)
Discussion started by: steezuschrist96
9 Replies
3. Shell Programming and Scripting
bash on RHEL 5.9
i have directory with several subdirectories within it. I want to find the ACL for all the directories and subdirectories within it.
i need to run getfacl on all directories and subdirectories (not regular files ) in a loop.
How do I do this ? Or , is there another... (1 Reply)
Discussion started by: b_pascal
1 Replies
4. UNIX for Dummies Questions & Answers
Hi how can i create 2 directories in two different directories ($HOME and $PWD) with 1 command?
dir 1 in $HOME and dir2 in $PWD (2 Replies)
Discussion started by: chinababy
2 Replies
5. AIX
Hi, im having some issues after i execute the next command:
tar -cvf /varios/restore/test.tar -X /jfma/test1/excludefile /jfma | gzip -c > /varios/restore/test.tar.gz
this creates the desired "test.tar.gz" file, but whe i try to open it it says "tar: 0511-164 There is a media read or write... (6 Replies)
Discussion started by: blacksteel1988
6 Replies
6. UNIX for Dummies Questions & Answers
I'm trying to count the number of directories in a folder but I don't want to count the sub directories.
So far I have this:
find -type d | wc -l
Is there a parameter to stop counting sub directories ?
Thanks (5 Replies)
Discussion started by: Ultima
5 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
Using grep command, i want to find the pattern of text in all directories and sub-directories.
e.g: if i want to search for a pattern named "parmeter", i used the command
grep -i "param" ../*
is this correct? (1 Reply)
Discussion started by: vinothrajan55
1 Replies
8. Shell Programming and Scripting
All,
am quite new to unix shell scripting. my question is 'i have like 23 sub-directiries in source area and same 23 sub-directories in destination area. i want to move all the files of 1st sub-dir in source area to 1st sub-dir in destination area and so on till for 23 sub-dir's. i.e.
... (4 Replies)
Discussion started by: vijnat
4 Replies
9. UNIX for Dummies Questions & Answers
Howdy
I have this directory structure ...
eep
eepaptest
eepfatest
eepgltest
eep.old
eeppoptest
ehf
ehfaptest
ehfgltest
ehp
ehpgltest
I want to find files in these directories, but I want to exclude eep, ehf & ehp.
Cany anyone help with the correct command ?? (1 Reply)
Discussion started by: SmurfGGM
1 Replies
10. UNIX for Dummies Questions & Answers
provide me the command to list all the subdirectories from the /home (1 Reply)
Discussion started by: mail2sant
1 Replies