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)
Hi,
Would like to find a more suitable solution for the following. I have a file eg test.log. In this file, i have to find the line that has "Final rating" which is the starting of the line. I need to print out only 5.75 instead of the whole line using "grep". May I know what suitable command... (8 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)
Hello Friends,
I have a txt file which has data like this
TNS Ping Utility for Solaris: Version 10.2.0.3.0 - Production on 23-MAR-2010 15:38:42
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to... (7 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 ,
My input file is below like that :-
$cat abc.txt
Service name: test_taf
Service is enabled
Server pool: test_tac
Cardinality: 2
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: true
Failover type: SESSION... (3 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)
Hi,
I have a sample file as shown below, I am looking for sed or any command which prints the complete word only from the input file.
Ex:
$ cat "sample.log"
I am searching for a word which is present in this file
We can do a pattern search using grep but I need to cut only the word which... (1 Reply)
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
backup-manager-purge
BACKUP-MANAGER-PURGE(8) backup-manager-purge BACKUP-MANAGER-PURGE(8)NAME
backup-manager-purge - backup-manager's wrapper for outdating files
SYNOPSIS
backup-manager-purge [TTL] <options>
DESCRIPTION
backup-manager-purge is the only authorized entity that can say if an archive should be purged or not. Any tasks used by backup-manager may
have to know if an archive is deprecated (eg: the purging phase of an upload method). This tool is here to fulfill that need.
Given a time to live (TTL) and a list of archives, backup-manager-purge will return another list of archives, corresponding to the ones
that are outdated by the TTL.
REQUIRED ARGS --ttl=time-to-live
Specify the time to live (in days) for the archives. Any archive that is older than ttl days will be outdated.
OPTIONAL ARGS --files-from=file
A file containing a list of archives to parse, one archive per line. If this option is not used, STDIN will be used for catching the
files to parse.
RETURN
backup-manager-purge will return the list of outdated files on STDOUT, one file per line.
ERROR CODES
If an error occurs, it will print the error message on stderr and will exit with an error code greater than 0.
Here are the possible error codes:
bad command line (wrong arguments) : 10
internal error (should be reported as a bug) : 20
SEE ALSO backup-manager(8)backup-manager-upload(8)AUTHORS
Concept and design by Alexis Sukrieh and Jan Metzger.
perl v5.14.2 2012-05-09 BACKUP-MANAGER-PURGE(8)