So i've managed to get the files moved and renamed however i'm finding errors when I try to put sequential numbers after the file names, my aim would be to split these up i.e sequential numbers after each file name for each file individual file type. This is my attempt;
Code:
num = 1
for f in *.png *.doc
do
cp -v $f $d "$(printf "%u" $num) . png"
let num=num+1
done
I am new user to solaris and installed solaris operating system on full Harddisk 120Gb. I am unable to copy music files to desktop and /home directory.
One thing happened while registering is- i entered login-root and its password. The message prompted your system is crashed. Is it because of... (1 Reply)
hi
I want to copy all files from the current directory and move to .archive file.
Moreover,I want to add .bak to each file name, that will be copied.
How can I do that? (4 Replies)
Hi,
I understand that to copy files across server, the feasible way will be using scp command. Am I right?
What if the two servers are not connected to a network? If by using a cross cable to link up both the server, what will be the best (fastest) way to copy files across? scp as well?
... (3 Replies)
I am userB and have a dir
/temp1
This dir is owned by me.
How do I recursively copy files from another users's dir userA?
I need to preserve the original user who created files, original group information, original create date, mod date etc.
I tried
cp -pr /home/userA/* .
... (2 Replies)
Hi All,
I'm trying to list some files from my log directory
and files are like this
log.20110302_20.gz
log.20110302_21.gz
log.20110302_22.gz
log.20110302_23.gz
log.20110303_00.gz
log.20110303_01.gz
log.20110303_02.gz
............
log.20110311_22.gz
log.20110311_23.gz... (2 Replies)
Hi All,
I am doing this for svn patch making. I got the list of files to make the patch. I have the list in a file with path of all the files.
To Do
From Directory : /myproject/MainDir
To Directory : /myproject/data
List of files need to copy is in the file: /myproject/filesList.txt
... (4 Replies)
Hi,
I have a shell script
#!/bin/sh
date
echo 'HI PROD'
echo $Please ENTER THE INPUT 1 for old files 2 for new file
read i
if ;
then
cd /apps/acetp3_logs/prod3/O*
pwd
echo $PLEASE ENTER THE STRING TO SEARCH (PLEASE ENTER THE STRING INSIDE QUOTES ' ')
read j
echo... (6 Replies)
Hi,
I have a folder which contains files in this format.
abc-bin.000001
abc-bin.000002
abc-bin.000003
abc-bin.000004
abc-bin.000005
abc-bin.000006
abc-bin.000007
abc-bin.000008
abc-bin.000009
abc-bin.000010
abc-bin.index
I want to copy all the files between
abc-bin.000004... (6 Replies)
All,
I need to grab and rename common files from several unique directory structures. For example, the directory structures looks like:
/unique_dir/common/common/common/person_name_dir/common_file.txt
There are over 90,000 of these text files that I'd like to put in a single directory as... (5 Replies)
Discussion started by: hburnswell
5 Replies
LEARN ABOUT SUSE
png2yuv
png2yuv(1) MJPEG tools manual png2yuv(1)NAME
png2yuv - Convert PNG images to the YUV4MPEG stream format.
SYNOPSIS
png2yuv [-b num] [-f num] [-I num] [-L num] [-n num] [-l num] [-j filename]
DESCRIPTION
png2yuv decompresses a sequence of PNG files and pipes the image data to stdout as a YUV4MPEG2 stream. Any 8bit/pixel PNG format supported
by libpng can be read. stdout will be filled with the YUV4MPEG movie data stream, so be prepared to pipe it on to mpeg2enc or to write it
into a file.
This tool is incomplete. The alternative utility you are probably looking for is ppmtoy4m(1), which is also included in MJPEGtools.
OPTIONS
png2yuv accepts the following options:
-b num
Frame offset: skip output of the first 'num' frames. (default: 0)
-f num
Set the frame rate of stream accepts the same numbers. Not default, this option has to be specified.
-I num
interlacing mode: p = none / progressive
t = top field first
b = bottom field first
No default, this option has to be specified.
-L num
0 = non-interleaved (two successive fields per PNG file)
1 = interleaved fields
-l num
Specifies the number of loops (default: 0 loops )
-S samp_mode
chroma subsampling mode, only for professionals, for more info see ppmtoy4m and the YUV guide on http://www.mir.com/DMG/.
default: 420_jpeg
When this option is not used the given range of images is only processed once. If you use this option and as number 1, jpeg2yv will
loop forever writing the image to stdout. When you use n > 1 it will loop. n-time till it finishes.
-n num
Specifies the nummber of frames to process. (default: all = -1)
-j {1}%{2}d{3}
Read PNG frames with the name components as follows:
{1} PNG filename prefix (e g: picture_ )
{2} Counting placeholder (like in C, printf, eg 06 ))
{3} File extension. Something like this: .png A correct description of the files could look like this: picture_%06d.png
-v num
Verbosity level (0, 1 or 2)
BUGS
The frame rate description does not seem to be up to date. The NTSC integer ratios are not supported (use floating point instead). As work-
around specify a PAL (25) or native FILM (24) and set the right frame rate in mpeg2enc with the -F option. Interlaced handling is not
implemented yet.
AUTHOR
This man page was written by Gernot Ziegler.
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 mjpegtools(1), mpeg2enc(1), ppmtoy4m(1), yuv2lav(1), yuvdenoise(1), yuvmedianfilter(1), yuvscaler(1)MJPEG Linux Square 2 February 2003 png2yuv(1)