9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to display the file names and the record count for the files in the 2nd column for the files created today.
i have written the below command which is listing the file names. but while piping the above command to the wc -l command
its not working for me.
ls -l... (5 Replies)
Discussion started by: Showdown
5 Replies
2. Shell Programming and Scripting
Hello everybody, I wonder if there's a way to make a directory that contains multiple subdirectories. For example, if I want to make /home/student under the current working directory, how do I do it? Can I do it using a single mkdir command or do I have make home first, cd into it and then make... (1 Reply)
Discussion started by: Yongfeng
1 Replies
3. UNIX for Dummies Questions & Answers
I am running Ubuntu 11.10
I have the following files.
geo2503r05690585.html
geo2503r06020612.html
geo2503r06250641.html
geo2503r06490658.html
geo2503r06830686.html
geo2503r05860601.html
geo2503r06130624.html
geo2503r06420648.html
geo2503r06590682.html ... (4 Replies)
Discussion started by: kristinu
4 Replies
4. Shell Programming and Scripting
How can I find and print the directories on a server that have more than 5,000 files? There's some spam emails and I'm trying to find all directories that have a lot of spam
The file count should just be the files directly under that directory, not like the total from all nested directories
... (1 Reply)
Discussion started by: vanessafan99
1 Replies
5. Shell Programming and Scripting
Hi All,
I need to loop through each item in current path, if it is a direcotry do soemthing, if its a file jsut skip it and move to next item in loop.
Tried
if test ! -d $i
then
echo "The current item $i is not a directory"
continue
fi
This doesnt seems to be working .... (8 Replies)
Discussion started by: justchill
8 Replies
6. Shell Programming and Scripting
I used to work in perl but I would like to try now bash. Here's my problem
I wanted to search for specific filename (ls -ltrh) on 3 directories.. Example
ls -ltrh | grep "string"
/dir1
/dir1/dir2
/dir1/dir2/dir3
I wanted to get the result to be copied on a different directory. Sample... (2 Replies)
Discussion started by: lhareigh890
2 Replies
7. Shell Programming and Scripting
Hi all,
can any one help me out in this:::
basically i need to list all the contents in all files in all directories (starting from root and then onwards)...i will get the session saved in a file (just a secure CRT, etc)
seems to be a simple one.
if anyone can come forward, its really... (4 Replies)
Discussion started by: asadlone
4 Replies
8. Shell Programming and Scripting
Please provide me a shell script so that i can list which file or directory has been deleted, by which user and at what time. The script should take date as argument and should list out name of the file/directory, which user had deleted them and at what time since that particular date. Kindly post. (1 Reply)
Discussion started by: raviviolet13
1 Replies
9. UNIX for Dummies Questions & Answers
Hello:
I need to list some files into some directories ordered by size.
i need help!
BEst regards
Alberto (1 Reply)
Discussion started by: bbolson
1 Replies