Sponsored Content
Top Forums Shell Programming and Scripting listing directories and sub directories with time and name options Post 302600682 by shanmu on Wednesday 22nd of February 2012 12:09:55 AM
Old 02-22-2012
FYI

Hi Dude,

FYI,

Code:
ls -ltr | grep '^d' | awk '{print $8;}' | xargs -I {} find `pwd`'/{}' -type d



the above mentioned one sort the sub directries by time from older date to latest date but we can't get the date from the above one but it will perfectly when compared to previous one which i posted for u. please try this mate

Regards
shanmu

Last edited by Franklin52; 02-22-2012 at 05:43 AM.. Reason: Fixed code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

files and directories listing

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

2. UNIX for Dummies Questions & Answers

Listing directories and ${1:+$1/}*

Hi I have 2 questions: Q1 - What does ${1:+$1/}* mean? I guess it lists all files in current directory - Could any one explain how this expression works? Q2 - I am trying to list directories only in current path - I know that ls could be used but I thought I'd give find a try. I need to... (5 Replies)
Discussion started by: GMMike
5 Replies

3. UNIX for Dummies Questions & Answers

Listing Unique directories.

Hi, Simple question. If i could find a file been listed in many dirctories, how to get the unique list of directories. find / -name "abc*" --> will give me list of directories. /home/abc.txt /home/ddd/abcd.txt /home/ddd/abcde/txt So how to get /home /home/ddd Thanks in... (2 Replies)
Discussion started by: deepakwins
2 Replies

4. UNIX for Advanced & Expert Users

Listing directories and sub directories

Hey there, i am trying to list all the directories and sub directories of a file system, but am having a bit of trouble. ls -lR|grep \/|grep '^\.' >> input.dat i used this statement to list all the directories and sub directories and output them to a file when i try to print them out on... (3 Replies)
Discussion started by: jinxor
3 Replies

5. UNIX for Advanced & Expert Users

listing of directories with / ...not to use ls -F

Hi When im listing (ls -al ) its listing directories without / at the end of directories dir1 dir2 dir3 and i need to list directories with dir1/ dir2/ dir3/ and this should not be made by command ls -F / should be embedded at the last since one of the scripts reads directories... (1 Reply)
Discussion started by: vasanthan
1 Replies

6. UNIX for Dummies Questions & Answers

listing of directories with / at end...without ls -F

Hi When im listing (ls -al ) its listing directories without / at the end of directories dir1 dir2 dir3 and i need to list directories with dir1/ dir2/ dir3/ and this should not be made by command ls -F / should be embedded at the last since one of the scripts reads... (10 Replies)
Discussion started by: vasanthan
10 Replies

7. Shell Programming and Scripting

listing directories alone

ls lists all files and sub directories in the current directory but how to list only the sub directories and not the files? (2 Replies)
Discussion started by: bbala
2 Replies

8. Shell Programming and Scripting

Listing directories and subdirectories

How can list the directories and the subdirectories in a folder. It is possible with a single UNIX command. For example i have a folder named "archive" and another folder named "0808" and then multiple folders are there ... Can i list all the directories and subdirectories in the folder... (6 Replies)
Discussion started by: karansachdeva
6 Replies

9. UNIX for Dummies Questions & Answers

Listing directories and sub directories

Hi, I am trying to get the following output: -(0) /home/<user-name>-(1) ..........a-(2) ....................codetest-(3) ..............................oracle-(4) ..............................unix-(5) ........................................dir1-(6) ... (4 Replies)
Discussion started by: qasim
4 Replies

10. Shell Programming and Scripting

Listing non empty directories

Hi Gurus, How to list directories that are non-empty and non-hidden Thanks in advance (2 Replies)
Discussion started by: kinny
2 Replies
modpath(2)							System Calls Manual							modpath(2)

NAME
modpath - change global search path for dynamically loadable kernel modules SYNOPSIS
DESCRIPTION
allows processes with appropriate privilege to modify the global search path used to locate object files for dynamically loadable kernel modules. The search path modifications take effect immediately and affect all subsequent loads for all users on the system. pathname may be either a colon-separated list of absolute path names or NULL. If the former, these path names represent directories which should be searched for all autoloads of loadable kernel modules and for demand loads (see modload(2)) where the module is given by a simple file name. This list of directories will be prepended to the existing list of directories and so will be searched before any directories given in previous calls to and before the default location which is always searched last. The directories do not have to exist on the sys- tem at the time is called, or when a load actually takes place. If pathname is equal to NULL, the global search path is set back to its initial default value, Notes is currently implemented as a macro. Module search path is not persistent across boots. Security Restrictions is restricted to superuser processes or privileged processes. A privileged process requires the privilege to execute the system call. See privileges(5) for more information about the privilege. RETURN VALUE
On success, returns 0, otherwise it returns -1 and sets to indicate the error. ERRORS
fails if one or more of the following are true: The list of directories specified by pathname is malformed. The Dynamically Loadable Kernel Module feature is not initialized. pathname is more than characters long. The caller is not a superuser process or a privileged process. SEE ALSO
kcmodule(1M), modload(2), privileges(5). modpath(2)
All times are GMT -4. The time now is 09:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy