I have a Ques. Regarding awk
I have few strings in a file, like..
ABC
DEF_ABC
GHI_ABC
GHI
Now I want string which has only 'ABC', not the part of any other string as it is also present in 'DEF_ABC'
Output should be ABC
Please guide me asap !!
Thanks :b: (4 Replies)
Goo afternoon Sir'sould like to ask your help reagrding in this scenario using sed and awk.
********************************************************
Host:CDRMSAPPS1
Operating System:Linux 2.6.9-42.ELsmp
Machine Type:UNIX
Host Type:Client
Version:5.1... (2 Replies)
The problem I have is that I have 23,000 records I need to sort through to pull out LEN: XXXX XX XX XX XX and NCOS: XXX entries from so I can insert them into a database. But some of my records include TYPE: ISDN, THE DN IS UNASSIGNED, or INVALID entries in between some records and I would like... (2 Replies)
Hello folks,
I have 2 files one( file1) contains the ddl for a view and file 2 contains the view defination/alias columns.
I want to merge the 2 into a third file using awk/sed as follows:
cheers !
:b:
FILE1
-----
PROMPT FIRST_VIEW
CREATE OR REPLACE FORCE VIEW FIRST_VIEW
AS
SELECT... (2 Replies)
Hi,
I am currently using the sed and awk commands to filter a file that has multiple sets of data in different columns. An example of part of the file i am filtering is as follows;
Sat Oct 2 07:42:45 2010 01:33:46 R1_CAR_12.34
Sun Oct 3 13:09:53 2010 00:02:34 R2_BUS_56.78
Sun... (4 Replies)
Hello Folks,
I am working on filtering a file having some special characters.
Let's say for an example a file contains person name and phone number based on positions. First 5 characters name and next 10 characters phone number. My task is to , if there is any special character in phone number... (6 Replies)
The following is part of a larger project and sed is (right now) a given. I am working on a recursive Korn shell function to "peel off" XML tags from a larger text. Just for context i will show the complete function (not working right now) here:
function pGetXML
{
typeset chTag="$1"
typeset... (5 Replies)
Experts Good day,
I want to filter multiple lines of same error of same day , to only 1 error of each day, the first line from the log.
Here is the file:
May 26 11:29:19 cmihpx02 vmunix: NFS write failed for server cmiauxe1: error 5 (RPC: Timed out)
May 26 11:29:19 cmihpx02 vmunix: NFS... (4 Replies)
Hello,
Does anyone know an easy way to filter this type of file? I want to get everything that has score (column 2) 100.00 and get rid of duplicates (for example gi|332198263|gb|EGK18963.1| below), so I guess uniq can be used for this?
gi|3379182634|gb|EGK18561.1| 100.00... (6 Replies)
Discussion started by: narachaid
6 Replies
LEARN ABOUT DEBIAN
ts_packet_insert
TS_PACKET_INSERT(1) User Commands TS_PACKET_INSERT(1)NAME
ts_packet_insert - insert packets into a Transport Stream
DESCRIPTION
Usage:
ts_packet_insert [switches] <infile> [switches]
Insert TS packets into a Transport Stream at a positions specified by the user.
Input:
<infile>
A H.222.0 TS stream.
Switches:
-p [positions]
This a a colon (':') delimited string of numbers between 0 and 1, representing how far through to put each ts packet. E.g. -p
0.1:0.4:0.7:0.9 will insert 4 packets at 10%, 40%, 70% and 90% through the file.
-pid [pid]
The inserted packets will have the pid specfied.
-s [string]
The inserted packets will contain [string] as it's payload.
-o [output file] The new TS file will be written out to the file
specified. (defaults to out.ts)
-h (--help)
This message.
Example:
ts_packet_insert -p 0.3:0.6 -o out.ts -pid 89 -s "AD=start" in.ts
ts_packet_insert [switches] <infile> [switches]
Insert TS packets into a Transport Stream at a positions specified by the user.
Input:
<infile>
A H.222.0 TS stream.
Switches:
-p [positions]
This a a colon (':') delimited string of numbers between 0 and 1, representing how far through to put each ts packet. E.g. -p
0.1:0.4:0.7:0.9 will insert 4 packets at 10%, 40%, 70% and 90% through the file.
-pid [pid]
The inserted packets will have the pid specfied.
-s [string]
The inserted packets will contain [string] as it's payload.
-o [output file] The new TS file will be written out to the file
specified. (defaults to out.ts)
-h (--help)
This message.
Example:
ts_packet_insert -p 0.3:0.6 -o out.ts -pid 89 -s "AD=start" in.ts
SEE ALSO
The full documentation for ts_packet_insert is maintained as a Texinfo manual. Please check http://tstools.berlios.de for more informa-
tion.
ts_packet_insert 1.11 November 2008 TS_PACKET_INSERT(1)