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 ,
i have a text file that contain a story
How do i extract the out all the sentences that contain the word Mon. in C++
I only want to show those sentences that contain the word mon
eg.
Monkey on a tree.
Rabbit jumping around the tree.
I am very rich, I have lots of money.
Today... (1 Reply)
FOLKS ,
i have a text file that is generated automatically of an another korn shell script, i want to bring in the fifth line of the text file in to my korn shell script and look for a particular word in the line . Can you all share some thoughts on this one.
thanks...
Venu (3 Replies)
Related to :
thread : 34769-removing-duplicate-lines-file.html
i want to extract the words in ()
eg: string1="bla bla (aaa) aha hai (aa)"
after processing output i need is : aaa aa (2 Replies)
Hi,
i've a string
/u/user/DTE/T_LOGS/20110622_011532_TEST_11_HD_120/HD/TESi T_11_HD_120/hd-12
i need to get string, like
/u/user/DTE/T_LOGS/20110622_011532_TEST_11_HD_120/HD
the words from HD should get deleted, i need only a string till HD, i dont want to use any built in... (4 Replies)
Hi i want to extract the word present before .txt in the text file.
For example,
Sample_ab_a.txt ----------> i need 'a'
Sample_abc_b.txt -----------> i need 'b'
Can anyone help me in getting the word extracted (5 Replies)
Hi everyone,
I'm a perl newbie and need your help to extract a word inside the list of files with same pattern.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:mycode xmlns:ns2="http://www.abcd.com/pqrs/acfSchema-2007a.xsd">
<id>10</id>
<name>PaymentServices</name>
... (7 Replies)
I have a file which I am reading and then I need to extract a particualr word and if it matches the line.
2015-01-22 07:30:17,814000 +0900 /INFO: - <ns2:virtualServerid="PH11PK" />
Means if the line contain Virtual server I need to extract the id .
Code I wrote#!/usr/bin/perl
... (19 Replies)
Hi Everyone,
Need help in extracting the hostname from the below output.
Expected output:
DS-TESTB-GDS-1.TEST.ABC.COM
DS-TESTB-GDS-2.TEST.ABC.COM
....
...
/tmp $ cat -n /tmp/patchreport
1 /usr/bin/perl /admin/bin/patch/applyPatches.pl --apply_patches... (4 Replies)
Discussion started by: thiyagoo
4 Replies
LEARN ABOUT DEBIAN
ocfs2_hb_ctl
ocfs2_hb_ctl(8) OCFS2 Manual Pages ocfs2_hb_ctl(8)NAME
ocfs2_hb_ctl - Starts and stops the OCFS2 heartbeat on a given device.
SYNOPSIS
ocfs2_hb_ctl -S -d device service
ocfs2_hb_ctl -S -u uuid service
ocfs2_hb_ctl -K -d device service
ocfs2_hb_ctl -K -u uuid service
ocfs2_hb_ctl -I -d device
ocfs2_hb_ctl -I -u uuid
ocfs2_hb_ctl -P -d device [-n io_priority]
ocfs2_hb_ctl -P -u uuid [-n io_priority]
ocfs2_hb_ctl -h
DESCRIPTION
ocfs2_hb_ctl starts and stops the heartbeat on a OCFS2 device. Users are strongly urged not to use this tool directly. It is automatically
invoked by mount.ocfs2 and other tools that require heartbeat notifications.
The tools accepts devices to be specified by its name or its uuid. Service denotes the application that is requesting the heartbeat notifi-
cation.
OPTIONS -S Starts the heartbeat.
-K Stops the heartbeat.
-I Prints the heartbeat reference counts for that heartbeat region.
-d Specify region by device name.
-u Specify region by device uuid.
-n Adjust IO priority for the heartbeat thread. This option calls the ionice tool to set its IO scheduling class to realtime with
scheduling class data as provided. This option is usable only with the O2CB cluster stack.
-h Displays help and exit.
SEE ALSO mkfs.ocfs2(8)fsck.ocfs2(8)tunefs.ocfs2(8)mounted.ocfs2(8)ocfs2console(8)debugfs.ocfs2(8)AUTHORS
Oracle Corporation
COPYRIGHT
Copyright (C) 2004, 2010 Oracle. All rights reserved.
Version 1.6.4 September 2010 ocfs2_hb_ctl(8)