10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a problem . I have few directories like inpTDT_1, inpTDT_2, inpTDT_3 and so on inside HOME directory . In one of my perl script (which is in my HOME), the above directories like inpTDT_1, inpTDT_2, inpTDT_3 are sorting out in an order So I wanted to sort all the inpTDT_1, inpTDT_2,... (1 Reply)
Discussion started by: venkatesh
2. Shell Programming and Scripting
I want to display directory listing in the order of size. I do not have -S option in my version of UNIX. So I wrote a simple script. But it takes "| sort -n -k5,5" part as file names. Any suggestion?
cmd='ls -l *.TXT | sort -n -k 5,5'
return 0 (7 Replies)
Discussion started by: Soham
3. Shell Programming and Scripting
I have got a file which contains a listing of a file and some directories after it, one by one. I am calling this file xyz.txt here
dir12 (6 Replies)
Discussion started by: Piyush Jakra
4. Shell Programming and Scripting
Can anyone come up with a unix command that lists
all the files, directories and sub-directories in the current directory
except a folder called log.?
Thank you in advance. (7 Replies)
Discussion started by: Manjunath B
5. Shell Programming and Scripting
I am very new to unix as well as shell scripting. I have to write a script for the following requirement.
In a particular mount, have to list all the directories and sub directories along with size of the directory and sub directory in ascending order.
Please help me in this regard and many... (4 Replies)
Discussion started by: nmakkena
6. Shell Programming and Scripting
Can anyone redirect to an existing thread or provide some info on how to find the size of a directory and it's sub-directories using a single script ?
I tried finding a similar thread but in vain.
I'm a newbie and any help would be greatly appreciated.
Thanks in advance. (3 Replies)
Discussion started by: ryder
7. UNIX for Dummies Questions & Answers
How can I list the file under current directory both in alphabetical and in reverse alphabetical order? (1 Reply)
Discussion started by: g.ashok
How can i list all the directories inside a directory?
not only the directories in the present dir. also the directories inside directories present in the dirrectory. recursive.
"find . -type d" will work with other Unix flavors but not with SunOS.
Robin (1 Reply)
Discussion started by: robinbannis
9. UNIX for Dummies Questions & Answers
I have directories with name like:
I would like to to see which directories are the largest and then list the files within each. I have success using:
du -ks * | sort -rin | head -n 20
which gives me an output like:
I would like... (3 Replies)
Discussion started by: ChatPerdu
10. UNIX for Dummies Questions & Answers
How one can list only the name of directories present in the directory by using ls command. (2 Replies)
Discussion started by: amolpatil54321