Can someone please help me with how to extract the last word on a line to a new file? I have a list of names like:
Ms. Nell D. Bullock
Mrs. Sherrie M Avent
LINDA ANNETTE RUSSELL
Mr. Jerome R. Harris
Pandora Tyndall
I want the new file to look like this:
Bullock
Avent
RUSSELL
Harris... (10 Replies)
Greetings.
I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file.
I'm struggling to see how each line can be... (5 Replies)
Hi All,
I would like help with a script which can get rid of the first work of all lines in text file.
File 1
The name is Scott.
Output : name is Scott
---------- Post updated at 02:38 PM ---------- Previous update was at 02:37 PM ----------
Hi ALL
There is typo error in... (3 Replies)
How can i make a script to add text before the first word on a line in a textfile :
Example:
Old line:
is my place
New line:
this is my place
Please use and tags when posting code, data or logs etc. to preserve formatting and enhance readability, thanks. (3 Replies)
Hi ,
I am trying to write an shell, which reads a text file (from a location) having a list of numbers of strictly 5 digits only ex: 33144
Now my script will check :
1) that each entry is only 5 digits & numeric only, no alphabets, & its not empty.
2)then it executes a shell script called... (8 Replies)
Unix box server version
***********
>uname -r
B.11.00
>echo $SHELL
/usr/bin/ksh
--> in this server, I have the path like /IMbuild/dev/im0serv1
---> in that directory I have the folders startup(.jsp files nearly 100 jsp's ) and scripts(contains .js files nearly 100 files) ... (9 Replies)
I have a LOG file which looks like this
Import started at: Mon Jul 23 02:13:01 EDT 2012
Initialization completed in 2.146 seconds.
--------------------------------------------------------------------------------
--
Import summary for Import item: PolicyInformation... (8 Replies)
Hi All,
Hope you guys had a wonderful weekend
I have a scenario where in which I have to read a file line by line
and check for few words before redirecting to a file
I have searched the forum but,either those answers dint work (perhaps because of my wrong under standing of how IFS... (6 Replies)
Hi,
I had generated a report in my tool as followsoutput.txt
43.35
9
i needed the script to generate a new file like below
i want to append the text to each of these lines of my filenewoutputfile.txt should be
Total Amount : 43.35
Record Count:9
Regards,
Vasa Saikumar.
... (2 Replies)
i have a text file as belows, it includes 2 columns, 1st is the column name, 2nd is the file_name
data_file.txt
column_name file_name
col1 file1
col2 file2
col3 file1
col4 file1
col5 file2
now, i would like to... (4 Replies)
Discussion started by: tester111
4 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)