12-13-2008
Yes i understood your problem ..
ill tell you the simple command to solve your problem
1> To delete only the specified files in a perticular directory and subdirectory use the below command
find <dir_path> -name <search_format> -delete
ex:
find /home/avi/examples/ -name "*.html" -delete
----
to just print all required files
find /home/avi/example/ -name "*.html" -print
----------------------------------------------------------------------------------------------------
2>To change the mode for each file type which you want
for eachFile in `find /home/avi/examples/ -name "*.sh" -print`
do
chmod 700 $eachFile
done
### ateya i thing all your problems solved...
----------------------------------------------------------------------------------------------------
Regards:Avinash... A Real Angry Man
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello, I would like to know if there was any way I can change the default permissions for new files being generated within a certain directory.
Would I need to have the same permissions set at the directory level as for the files being generated in it.
Regards,
Rdgblues (1 Reply)
Discussion started by: rdgblues
1 Replies
2. Shell Programming and Scripting
Hi All
I need to create a script which would change Permissions to 775
All the Files and directories will be mentioned in the Paramter files
Can anyone give a Hint how to proceed in this ??
THanks (1 Reply)
Discussion started by: ranga27
1 Replies
3. Shell Programming and Scripting
Hi,
I want to change the access permissions of the files whose extension is same.For example *.c but these are inside a directory and inside that other directory is there and it contains the .c files..for example--
So my aim is to search the files under src and change the access permissions... (3 Replies)
Discussion started by: smartgupta
3 Replies
4. Shell Programming and Scripting
Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies
5. Linux
Hi,
I am working on setup a environment where only a specific user can upload the builds on htdocs of apache.
Now i want that a specific user can copy the builds on htdocs folder.
I created a group "deploy" and assign user1 and user2 to this group.
On Apache side i mentioned User=deploy... (3 Replies)
Discussion started by: sunnysthakur
3 Replies
6. Shell Programming and Scripting
My git post-update has the following lines in it to make sure the permissions are set right:
find /usr/local/apache/htdocs -type d -print0 | xargs -0 chmod 755
find /usr/local/apache/htdocs -type f -print0 | xargs -0 chmod 644
chown -R apache:apache /usr/local/apache/htdocsThe only problem is... (5 Replies)
Discussion started by: dheian
5 Replies
7. Shell Programming and Scripting
Hey, It's me again.
Have a problem, that's not really a problem. I have the below script, that goes to the directory I want it to go to. lists out the directories available, lets you choose the directory you want, then it changes the permissions on said directory. using chmod -R and chown -R.
... (2 Replies)
Discussion started by: gkelly1117
2 Replies
8. Solaris
Hi!
I have a dir in a server, that receives files with the wrong permissions, so I decide to put on a cron entry that changes its permitions, but because of the time gap, not all of them get changed.
What I did was the following:
... (14 Replies)
Discussion started by: fretagi
14 Replies
9. AIX
Hello,
I have a main directory called /test123
/test123 has lot of sub-directories and files.
drwxr-x--- 21 root system 4096 Jan 25 10:20 /test123
Here, "other" does not have any access to /test123 folder.
How can we provide read-only access to others on /test123... (1 Reply)
Discussion started by: aaron8667
1 Replies
10. UNIX for Beginners Questions & Answers
Hi there!
I'm new to Unix and haven't done command line stuff since MS-Dos and Turbo Pascal (hah!),
I would love some help figuring out this basic command (what I assume is basic).
I'd like to add a User to the permissions of all files in a folder and all files in all subfolders, as well... (9 Replies)
Discussion started by: Janjbrt
9 Replies
LEARN ABOUT DEBIAN
yuv2lav
yuv2lav(1) MJPEG tools manual yuv2lav(1)
NAME
yuv2lav - encodes lavtool's raw YUV frame streams into MJPEG files
SYNOPSIS
yuv2lav [-f a|A|q|m] [-q num] [-b num] [-I num] [-m num] [-v num] [-w file] -o output-file
DESCRIPTION
yuv2lav is a simple MJPEG encoder for raw YUV frame streams as they are emitted by lav2yuv(1) or lavpipe(1), for example. It reads its
input from stdin and is capable of writing AVI and Quicktime.
OPTIONS
The command line options allow to specify the output file name, JPEG encoding quality and the amount of memory that will be allocated for
JPEG compressed data.
-o output-file
This (compulsorary) option sets the name of the file that yuv2lav will write its output to. If the output file contains a % (e.g.
file%02d.avi), the output will be written to multiple files in case this is necessary (file00.avi, file01.avi and so on).
-f a|A|q
This sets the output file format, which has to be one of
a - for AVI file output,
A - for AVI with reversed fields,
q - for Quicktime output or
AVI with reversed field of course only makes sense if yuv2lav's feed is an interlaced video source and should only be needed if you
experience frame reversal problems in your output. If you don't use that option yuv2lav will set the output format to AVI if the
last 3 char are avi, or to Quicktime if you use mov. If you use the -f option it overides the setting in the filename
-q num This option specifies the JPEG encoding quality as passed through to libjpeg. The default value is 80, num must lie within 24...100
inclusive (think of it as percentage values, although with a lossy compression algorithm like JPEG, keeping 100% of the original
quality is of course not really possible).
-b num This option specifies the size of the buffer (in kBytes) that yuv2lav allocates in order to store the compressed JPEG data in it.
The default value (256k) is perfectly enough for 100% quality full sized PAL/NTSC, but if you want to compress Super-Mega-HDTV or if
you are low on memory, you can use this option to suit your needs.
-m num This is the maximum size (in MB) per file. Normally this depends on the output file type.
-I num Force a specific interlacing type. 0 means no interlacing, 1 means top-field-first, 2 means bottom-field-first.
-w file
This is the WAV file containing audio data to be combined with the video stream into the output file.
-v num Verbosity level. 0 means only print error messages, 2 prints full debug output.
-? Display a synopsis of the command syntax.
EXAMPLES
lav2yuv movie.avi | yuv2lav -fq -q 30 lowbitrate.qt
would recompress movie.avi as a low bit rate Quicktime file.
lavpipe input.pli | yuv2lav -q80 output.avi
would save the movie assembled by lavpipe as a single AVI file.
BUGS
If you experience any problems with this tool, please feel free to contact the developers (see below).
AUTHOR
This man page was written by pHilipp Zabel.
If you have questions, remarks, problems or you just want to contact the developers, the main mailing list for the MJPEG-tools is:
mjpeg-users@lists.sourceforge.net
For more info, see our website at
http://mjpeg.sourceforge.net/
SEE ALSO
lav2yuv(1), lavpipe(1), lavplay(1), lavrec(1), mpeg2enc(1), yuvscaler(1)
MJPEG Linux Square 2 June 2001 yuv2lav(1)