08-21-2006
advanced dir listing
Hi
i know this Q might seem retarded... yet, i can't find a solution.
i need a bash script that recursively prints like this:
mydir/
myfile1 114 06 Aug 2006
myfile2 234 14 Jun 2006
mydir/mysubdir1/
myfile3 32 18 Feb 2006
mydir/mysubdir1/mysubsubdir1/
myfile4 5324 06 Aug 2006
it looks SO easy...
thx in advance!!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
i'm looking for a bash or tcsh script that will clone an empty dir tree 'over' another tree ...
specifically, i'd like to:
(1) specify a src directory
(2) list the directory tree/hiearchy beneath that src dir, w/o files -- just the dirs
(3) clone that same, empty dir hierarchy to... (2 Replies)
Discussion started by: OpenMacNews
2 Replies
2. UNIX for Dummies Questions & Answers
Hi
I am trying to display the home directory of another user. I dont have the permissions to change into their directory and wonder is it possible to display their directory
eg I cant change directory to john but I am trying to display something like /home/John.
If anyone can help I would... (3 Replies)
Discussion started by: mmg2711
3 Replies
3. UNIX and Linux Applications
HI all, I got a CPIO archive that contains a unix filesystem that I try to extract, but it extract to the root dir / unstead of current dir, and happily it detects my file are newer otherwise it would have overwrited my system's file!
I tried all these commands
cpio -i --make-directories <... (2 Replies)
Discussion started by: nekkro-kvlt
2 Replies
4. Shell Programming and Scripting
Hello!!
I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory:
drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
Discussion started by: bigben1220
3 Replies
5. Windows & DOS: Issues & Discussions
Hi,
(Apologies, I'm sure I'm not the first person to raise this question but so far in my searches haven't found a good answer).
I would like to output a listing per line of filename (including full path) and 'last updated' timestamp. e.g:
Z:\dir1\file1.txt 01/02/2010 10:43... (5 Replies)
Discussion started by: GM_AIX
5 Replies
6. UNIX for Dummies Questions & Answers
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
Discussion started by: nmakkena
3 Replies
7. Shell Programming and Scripting
Dear Members,
I have a list of xml files like
abc.xml.table
prq.xml.table
...
..
.
in a txt file.
Now I have to search the file(s) in all directories and sub-directories and print the full path of file in a output txt file.
Please help me with the script or command to do so.
... (11 Replies)
Discussion started by: Yoodit
11 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
Could you please help to resolve my following issues:
Problem Description:
Suppose my user name is "MI90".
i.e. $USER = MI90
when i run below command, i get all the processes running on the system containing name MQ.
ps -ef | grep MQ
But sometimes it lists... (8 Replies)
Discussion started by: KDMishra
8 Replies
9. UNIX for Beginners Questions & Answers
Hi and good day,
This string lets me find the html files:
ls -R /Volumes/LC3/Sites/chu | grep "html"
But how to list the files with their parent dir 'attached' to them:
For example:
n/fofo.html
n/siso.html
m/…
/
Any assistance would be greatly appreciated!
With best regards,... (5 Replies)
Discussion started by: OmarKN
5 Replies
10. AIX
I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. I do not want to assign user the same group of that directories too.... (0 Replies)
Discussion started by: blinkingdan
0 Replies
LEARN ABOUT DEBIAN
oggcat
OGGCAT(1) User Manuals OGGCAT(1)
NAME
oggCat - concatenates two ogg video files (.ogv, .ogg or oga)
SYNOPSIS
oggCat [options] outfile.ogv file1.ogv file2.ogv [ file3.ogv [...] ]
DESCRIPTION
oggCat concatenates two or more ogg files.
The parameters of the resulting ogg file is defined by the first file in the concatenation list. The parameters could be changed by some
options, explained below.
All subsequent files that does not match these video file parameters are automatically transcoded.
A concatenation will fail in case that there are not enought streams available. This could happen e.g. if the first file consists of one
audio and one video stream and the second file only carries a video stream.
If there is more than one video or audio stream within the file, the first stream is used.
OPTIONS
-s Sets the size of the video frame. The size is given as <width>x<height>. At default, the video frame size is the size of the first
video stream.
Example: -s 320x240
-d Sets the datarate in byte per seconds for the video encoder (theora). This meant to be a upper threshold. So the file may be smaller
than assumed. If not set, the datarate of the first file is used.
Example: -d 1024000
-D Sets the datarate in byte per seconds for the audio encoder (vorbis). If not set, the datarate of the first file is used.
Example: -D 64000
-f Sets the frame rate of the video with numinator and demoninator and is the pictures per second. If only one number is given, the
denominator is set to 1. If not set, the framerate of the first file is used.
Example: -f 25:2
-F Sets the sample frequency (sample rate) of the audio data in Hertz. If the sample frequency does not match the one with the original
file, resamling is invoked.
Example: -F 32000
-c Adds comments to the video (theora) stream. Comments are given by a pair of type and value in the form 'type=value'. More than one
comment can be concatenated with a semicolon. It is recommended to use apostrophes as the command line may use the semicolon as a
seperator.
Example: -c 'AUTHOR=yorn;DATE=03.07.09'
-C Adds comments to the audio (vorbis) stream. Comments are given by a pair of type and value in the form 'type=value'. More than one
comment can be concatenated with a semicolon. It is recommended to use apostrophes as the command line may use the semicolon as a
seperator.
Example: -C 'AUTHOR=yorn;DATE=03.07.09'
-q Specifies the video quality for the newly created stream. Valid values can be chosen between 0 and 63 (best).
Example: -q 63
-rv Force to reencode the video stream. This is sometimes neccessary, if the video stream match in video parameters, but not in the the-
ora version. In that case, reencoding the video stream helps creating good results.
-x Force to overwrite the output file, even if it exists. This is mainly helpful if the oggCat is server controlled.
EXAMPLES
oggCat concatFile.ogv myfile1.ogv myfile2.ogv myfile3.ogv
or
oggCat -o concatFile.ogv myfile1.ogv myfile2.ogv myfile3.ogv
This command creates a cancatenated file concatFile.ogv that consists of the three files myfile1.ogv myfile2.ogv myfile3.ogv
oggCat -s320x240 -q63 concatFile.ogv myfile1.ogv myfile2.ogv myfile3.ogv
This command connects the three files myfile[1-3].ogv to file concatFile.ogv with the size of 320x240 and best quality.
AUTHOR
Joern Seger <yorn at gmx dot net>
SEE ALSO
oggCut(1), oggJoin(1), oggSplit(1), oggTranscode(1), oggSlideshow(1), oggThumb(1), oggSilence(1)
Linux JAN 2010 OGGCAT(1)