I have a very large file and each line has a pattern and it is not position specific. I need to extract the string after the pattern
****MI* is the pattern in the red color
12 digit number is the sting value in the green color and it ends with ~
e.g.
... (1 Reply)
Dear All,
I have a file with the syntax below (composed of several <log ..... </log> stanzas)
I need to search this file for a number e.g. 2348022225919, and if it is found in a stanza, copy the whole stanza/section (<log .... </log>) to another output file.
The numbers to search for are... (0 Replies)
Hi All
I have 3 files as listed below and highlighted in bold the portions of the filenames I need to extract:
TOS_TABIN218_20090323.200903231830
TOS_TABIN219_1_20090323.200903231830
TOS_TABIN219_2_20090323.200903231830
I tried
source_tabin_name=`echo $fname | sed 's/_.*//'`
but I... (6 Replies)
Hi All,
I posted something similar before but I now have a another problem.
I have filenames as below
TOP_TABIN240_20090323.200903231830
TOP_TABIN235_1_20090323.200903231830
i need to extract the dates as in bold. Using bash v 3.xx
Im trying to using the print sed command but... (11 Replies)
I have following string in a variable:
str="sstring garbage adfsdf tab.col1 lkad rjfj tab2.col2 adja tab2.col4 garbage"
I want to filter "word.word" pattern from it. I assume the pattern won't occur in start or end of the string. Output shoud be:
tab.col1 tab2.col2 tab2.col4
Can this be... (7 Replies)
Hi,
I want to extract data b/w two words with the help of sed..
Eg: In "Anna said that she would fetch the bucket", I want to display data b/w "Anna" and "would"
O/P: said that she
I have tried with below code, but unable to get desired o/p
echo "Anna said that she would fetch the... (5 Replies)
I am working with the ksh shell in HP UNIX and I am attempting to extract a word, beginning with a particular string and ending at the first space. for example I want to extract the word or string MS_RECENT_ACTIVITY from the following string
" This has been entered in MS_RECENT_ACTIVITY the... (2 Replies)
Hi,
I have the following string and I need to extract the date from it:
TextHere,2012/07/11,1
I tried using sed:
sed -n 's#^.*\({4}/{2}/{2}\).*$#\1#p'
But it doesn't return anything. The following line doesn't even return '2012':
sed -n 's/^.*\({4}\).*$/\1/p'
I used to use grep -o... (6 Replies)
i need to extract the string between two tags,
input file is
<PersonInfoShipTo AddressID="446311709" AddressLine1="" AddressLine2="" AddressLine3="" AddressLine4="" AddressLine5="" AddressLine6="" AlternateEmailID="" Beeper="" City="" Company="" Country="" DayFaxNo="" DayPhone="" Department=""... (5 Replies)
Hi -
i have one file with content as below.
***** BEGIN 123 *****
BASH is awesome
***** END *****
***** BEGIN 365 *****
KSH is awesome
***** END *****
***** BEGIN 157 *****
KSH is awesome
***** END *****
***** BEGIN 7123 *****
C is awesome
***** END *****
I am trying to find all... (4 Replies)
Discussion started by: reldb
4 Replies
LEARN ABOUT FREEBSD
iprop-log
IPROP-LOG(8) BSD System Manager's Manual IPROP-LOG(8)NAME
iprop-log -- maintain the iprop log file
SYNOPSIS
iprop-log [--version] [-h | --help] command
iprop-log truncate [-c file | --config-file=file] [-r string | --realm=string] [-h | --help]
iprop-log dump [-c file | --config-file=file] [-r string | --realm=string] [-h | --help]
iprop-log replay [--start-version=version-number] [--end-version=version-number] [-c file | --config-file=file] [-r string | --realm=string]
[-h | --help]
DESCRIPTION
Supported options:
--version
-h, --help
command can be one of the following:
truncate
-c file, --config-file=file
configuration file
-r string, --realm=string
realm
Truncates the log. Sets the new logs version number for the to the last entry of the old log. If the log is truncted by emptying
the file, the log will start over at the first version (0).
dump
-c file, --config-file=file
configuration file
-r string, --realm=string
realm
Print out all entries in the log to standard output.
replay
--start-version=version-number
start replay with this version
--end-version=version-number
end replay with this version
-c file, --config-file=file
configuration file
-r string, --realm=string
realm
Replay the changes from specified entries (or all if none is specified) in the transaction log to the database.
last-version
-c file, --config-file=file
configuration file
-r string, --realm=string
realm
prints the version of the last log entry.
SEE ALSO iprop(8)Heimdal February 18, 2007 Heimdal