I'm executing "wc -lc" command in a c shell script to get record count and byte counts and writing them to a file. I get the result with the full pathname of the file. But I do not want the path name to be printed in the output file. I heard that using Awk we can get this but I don't have any... (4 Replies)
Hi,
I want to extract a part of filename and pass it as a parameter to one of the scripts. Could someone help.
File name:-
NLL_NAM_XXXXX.XXXXXXX_1_1.txt.
Here i have to extract only XXXXX.XXXXXXX and the position will be constant. that means that i have to extract some n characters from... (6 Replies)
Hi All,
I am trying to write a small shell programming to get db2 database size info. The command I am going to use is- db2 "CALL GET_DBSIZE_INFO(?, ?, ?, -1)"
and the output of above command generally is-
Value of output parameters
--------------------------
Parameter Name :... (4 Replies)
Hi friends,
I want to select and use the certain part of a line. For example I have the following line
home/1245/hgdf/acsdf/myhome/afolder/H2O/endfile
how can I extract the part " /myhome/afolder/H2O/endfile "
thanks (6 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 have a file with 100s of lines of text. I want to perform an extraction of this line:
Info bpzs(pid=2652) using 1000 bits
I have not been able to extract it. Should I try expr match or is there another method? This line has data both in front of and in back of it. I do not have grep -o... (5 Replies)
I have to extract number part (Date and timestamp part ) from the following 3 strings
AB_XYZA_20130930183017.log
AB_DY_XYZA_20130930183017.log
AB_GZU_20130930183017.log
Output should be
20130930183017
Please help me to get the string like above
Thanks (2 Replies)
Hi All,
Let us say we have 5 log files, extract the data from all log files and save the output in a file.
home/log/first.log
home/log/second.log
home/log/third.log
home/log/four.log
home/log/five.log
I want to extract the following text from the log files and save the output in a file.... (7 Replies)
Discussion started by: ROCK_PLSQL
7 Replies
LEARN ABOUT DEBIAN
debian::l10n::utils
Debian::L10n::Utils(3pm) User Contributed Perl Documentation Debian::L10n::Utils(3pm)NAME
Debian::L10n::Utils - Utilities for the dl10n tools
parse_subject(SUBJECT)
parse_subject extract valuable informations from a subject line.
It gets a string containing the subject line (SUBJECT).
It returns an array containing the status, type, filename strings and bug number if provided or 'undef' if no status is found.
parse_from(FROM)
parse_from extract the sender name from the 'From:' field.
The name is build from the phrase part of the field, or if none is found, from the comment part where parentheses are removed, or if none
is found, from the address where all non-alphanumeric characters are turned into spaces.
It gets a string containing the 'From:' field (FROM).
It returns a string containing the name.
parse_date(DATE)
parse_date extract the date from a 'Date:' field.
It gets a string containing the 'Date:' field (DATE).
It returns a string containing the date in ISO format yyyy-mm-dd hh:mm:ss AXhh:mm based on GMT
LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. # You should have received a
copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place -
Suite 330, Boston, MA 02111-1307, USA.
COPYRIGHT (C)
2003,2004 Tim Dijkstra
2004 Nicolas Bertolissio
2004 Martin Quinson
2008 Nicolas FranA~Xois
perl v5.14.2 2012-01-15 Debian::L10n::Utils(3pm)