Creating repeating record in between file through script
apprecieate your help to resove this.
My source file looke like
my tartet file output should be in below way.
Here single set of record would be considered from Header record to footer record . In source, 001(second column) will start after header record for each set. It presesnt only one time source record in each set. But as per my requirement, I need '001' record has to come every before '002'. Please help to resolve this. apprecieate your help.
I need unix shell script to make it in below way.
Last edited by Scott; 03-23-2014 at 03:03 AM..
Reason: Use code tags, please...
I have written a script that I want to be repeated. The script that I wrote outputs the date, how many people are on the system, how many people logged in before me, and how many people logged in after me. Than what I want it to do is after it outputs the 4 lines I want it to go back to the... (4 Replies)
I need to write a script that can find a bad record (for example: there is date field colom but value provided in the file for this field is N/A) then script shoud searches this pattern and then insert the whole record into the bad file.
Example:
File1
Name designation dateOfJoining... (1 Reply)
I need to write a script that can find a bad record (for example: there is date field colom but value provided in the file for this field is N/A) then script shoud searches this pattern and then insert the whole record into the bad file.
Example:
File1
Name designation dateOfJoining... (2 Replies)
Hi there, using the command below
> cat file1 | tr "\001" " " > tmp2
how can I alter the record length of tmp2 to fix length of 350 bytes ?
Thanks a lot! (7 Replies)
Hi,
I need help urgently for following issue. Pls help me to resolve this issue.
I am calling sql script file(file1.sql) from UNIX Shell Script(script1.ksh) using sql plus and trying to create flat file that contains all records returned from SQL query in SQL script(file1.sql)
I given... (6 Replies)
I am trying to read a file in a shl script (only one record) and stored in a variable file_number
I got the following
read -u $BANNER_HOME/xxxxxxx/misc/EFTSQL.dat file_number
file_number2 = $file_number + 1
echo $file_number2 > $BANNER_HOME/xxxxxx/misc/EFTSQL.dat
EOF
It is not working... (2 Replies)
so i got this request to do this:
- Script should check for the file ever 15 minutes on the FTP server…if the file is not found, then the whole script exits. File will only be created one a week at random.
i have gotten this far, but am kind of stuck, also sleep command doesnt work... (3 Replies)
Hi,
I'm looking into doing a few performance tweaks by adjusting my max memory on a few lpars.
I would to create a time stamp script so i could review it for a week and determine how much space i can lower my max memory to so i could reclaim and allocate that memory to where it is needed the... (2 Replies)
Hi,
I'm having trouble in achieving the following scenario. There is a txt file with thousands of lines and few lines are repeated, which needs to be removed using a script.
File.txt
20140522121432,0,12,ram
Loc=India
From=ram@xxx.com, To=ravi@yyy.com,,
1
2
3
4
.
.
30... (18 Replies)
I have test.xml
<emp><id>101</id><name>AAA</name><date>06/06/14 1811</date></emp>
<Join><id>101</id><city>london</city><date>06/06/14 2011</date></join>
<Join><id>101</id><city>new york</city><date>06/06/14 1811</date></join>
<Join><id>101</id><city>sydney</city><date>06/06/14... (2 Replies)
Discussion started by: vsraju
2 Replies
LEARN ABOUT SUSE
pgmtoy4m
pgmtoy4m(1) MJPEG tools manual pgmtoy4m(1)NAME
pgmtoy4m - Convert mpeg2dec pgm and pgmpipe output to YUV4MPEG2
SYNOPSIS
pgmtoy4m [options]
DESCRIPTION
pgmtoy4m repacks the PGM output from mpeg2dec into YUV4MPEG2 4:2:0p. No actual changes to the data are made. The data is unpacked from
the quasi-PGM format and placed in YUV4MPEG2 format with the specified sample aspect, frame rate and field order. Output must be either to
a pipe or a file, leaving stdout as a terminal will elicit an error and the program will exit.
OPTIONS
pgmtoy4m accepts the following options:
-v num
Set verbosity level. (default: 0)
-h Print a usage summary and exit.
-i t|b|p
Set the interlacing mode. Top field first (t), bottom field first (b) or progressive/none (p). (default: t)
-a sar
Set the sample aspect ratio. (default: 10:11)
-r frame rate
Set the frame rate. (default: 30000:1001)
EXAMPLES
mpeg2dec -s -o pgmpipe file.mpg | pgmtoy4m -a 10:11 -r 24000:1001 -i b | yuvplay
mpeg2dec -s -o pgm file.mpg
cat *.pgm | pgmtoy4m -r 30000:1001 -i t | yuvplay
NOTES
This program is specifically designed to work with the output of mpeg2dec and is NOT a general PGM (NetPBM) tool!
From the introduction in the source file:
* Note: mpeg2dec uses a variation of the PGM format - they're really not
* "Grey Maps" but rather a catenation of the 420P data (commonly called
* "YUV"). The type is P5 ("raw") and the number of rows is really
* the total of the Y', Cb and Cr heights. The Cb and Cr data is "joined"
* together. After the Y' rows you have 1 row of Cb and 1 row of Cr per
* "row" of PGM data.
* NOTE: You MAY need to know the field order (top/bottom field first),
* sample aspect ratio and frame rate because the PGM format makes
* none of that information available!
AUTHOR
This manpage was written by Steven Schultz (sms at 2bsd dot com).
BUGS
Possible but none known at the present time.
MJPEG Linux Square 16 December 2003 pgmtoy4m(1)