03-07-2012
Thanks a lot..but after getting output of this find "/abc/xyz/pqr/$INPUTDIR" -type f ..i want to list all the files availble in that particular direcotry with time stamp.
Can you please also throw some light on that...
10 More Discussions You Might Find Interesting
1. Programming
Hi all,
I've got a problem, what function do i use to list the contents of all the directory tree (simular to "find")? Any other suggestions?
Thank you all (3 Replies)
Discussion started by: solvman
3 Replies
2. Programming
hi i have modified a program to display directory entries recursively in a tree like form
i need an output with the following guidelines:
the prog displays the contents of the directory
the directory contents are sorted before printing so that directories come before regular files
if an entry... (2 Replies)
Discussion started by: anything2
2 Replies
3. Shell Programming and Scripting
Hi
I am a shell-script newbie and am looking to synchronize certain files in two directory structures.
Both these directory-trees are in CVS and so I dont want the CVS directory to be copied over.
I want only .sh and .pl files in each subdirectory under these directory trees to be... (3 Replies)
Discussion started by: sharpsharkrocks
3 Replies
4. Shell Programming and Scripting
Hi all,
The following is a script for displaying directory tree.
D=${1:-`pwd`}
(cd $D; pwd)
find $D -type d -print | sort |
sed -e "s,^$D,,"\
-e "/^$/d"\
-e "s,*/\(*\)$,\:-----\1,"\
-e "s,*/,: ,g" | more
exit 0
I am trying to understand the above script.But... (3 Replies)
Discussion started by: ravi raj kumar
3 Replies
5. UNIX for Dummies Questions & Answers
Is this possible? Let me know If I need specify further on what I am trying to do- I just want to spare you the boring details of my personal file management.
Thanks in advance-
Brian- (2 Replies)
Discussion started by: briandanielz
2 Replies
6. UNIX for Dummies Questions & Answers
Hi there,
I have a filestore that is just two levels:
dir/
file1
file2
file3
...
subdir1/
file4
file5
file6
subdir2/
file7
file8
file9
...
I am looking for acommand or scrip that will flatteb this tree and copy all the... (6 Replies)
Discussion started by: loquela
6 Replies
7. UNIX for Dummies Questions & Answers
find . -type d -print 2>/dev/null|awk '!/\.$/ {for (i=1;i<NF;i++){d=length($i);if ( d < 5 && i != 1 )d=5;printf("%"d"s","|")}print "---"$NF}' FS='/'
Can someone explain how this works..??
How can i add directory size to be listed in the above command's output..?? (1 Reply)
Discussion started by: vikram3.r
1 Replies
8. Shell Programming and Scripting
I'm sure this has been asked many times, but a search didn't turn up a definitive best method for this (if there ever is such a thing).
I have been using rsync to back up my main data directory, but I have accumulated a large number of older backups that I don't need. All of the files I don't... (14 Replies)
Discussion started by: LMHmedchem
14 Replies
9. Web Development
I am seeing the following error appear numerous times in my Apache error log:
I have my Apache config configured as below, so I would expect indexing not to occur on this directory as it falls under the parent /web directory.
Strangely all the IP address, including this example, all... (5 Replies)
Discussion started by: crmpicco
5 Replies
10. 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
8 Replies
NcdT(1) General Commands Manual NcdT(1)
NAME
ncdt - directory tree printer with extended capabilities
SYNOPSIS
ncdt [-db?] [--dirs] [--bitrate] [--prefix text ] [--help] [ directory [ name ]]
DESCRIPTION
ncdt is a small utility for printing directory trees. It has some additional features not found in tree(1). Additional capabilities are:
- size field for directories displays the summary size of directory subtree instead of the size of the special file (which is somewhat
more useful)
- sizes are displayed in a more readable format (that's a minor improvement, but it helps a little)
- MP3 files are detected; additional info is displayed for them (which is probably the nicest thing about NcdT) The info is displayed
in a compact form, like <2:53 v168JR+> where 2:53 is play time, v (if present) means the file is encoded using VBR, 168 is bitrate
(average bitrate for VBR files), J describes channel encoding (Mono, Stereo, Joint-Stereo, Dual channel), R (if present) means the
file has a RIFF header at the beginning, + (if present) means the file has ID3v2 tag attached - (if present) means there's no ID3
tag at all (none of these means there's only ID3v1 tag present).
NcdT is particularily nice for indexing CDs.
OPTIONS
-d --dirs
Print only directories, omit files. This mode is a rough equivalent of du(1).
-b --bitrate
Print bitrate info for directories. Bitrates are displayed both for ordinary files and directories. If all MP3 files in a given
directory subtree have the same bitrate only one number is printed, if they have various bitrates the range is printed.
--prefix text
Prefix listing with given text. This option is not intended for general use. It might be used by programs using NcdT to index CDsor
doing similar operations to record additional information.
-? --help
Display usage summary.
USAGE
When called without any parameters ncdt displays directory tree for current directory (.).
When called with one parameter ncdt displays directory tree for specified directory.
When called with two parameters ncdt displays directory tree for the directory specified as its first parameter. Second parameter is used
as directory label for the top level directory (instead of directory name from parameter 1).
EXAMPLES
ncdt prints directory tree for the current directory. It will be labeled .
ncdt /usr
prints directory tree of /usr. It will be labeled /usr
ncdt /cdrom 'CD #21'
prints directory tree of /cdrom. It will be labeled CD #21
ncdt -db /cdrom
lists directory sizes, play times and bitrate ranges
SEE ALSO
tree(1), du(1)
BUGS
NcdT uses quite a lot of memory. It's also not very fast, but on a decent CPU it should not be noticeable.
There are no real bugs I'm aware of. I don't think there are any now.
AUTHOR
Pawel Wiecek <coven@vmh.net>
NcdT(1)