10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
can anyone help me!!!! How to I parse the CSV file
file name : abc.csv (csv file) The above file containing data like
abv,sfs,,hju,',',jkk wff,fst,,rgr,',',rgr ere,edf,erg,',',rgr,rgr I have a requirement like i have to extract different field and assign them into different... (4 Replies)
Discussion started by: J.Jena
4 Replies
2. Shell Programming and Scripting
Hello
I have a log file with thousands of lines like below
Sep 21 13:02:52 lnxtst01 kernel: New TCP in: IN=eth0 OUT= MAC=00:1a:4b:50:b7:32:00:08:e3:ff:fc:04:08:00 SRC=10.184.46.4 DST=10.162.139.21 LEN=60 TOS=0x00 PREC=0x00 TTL=59 ID=52961 DF PROTO=TCP SPT=55688 DPT=22 WINDOW=5840 RES=0x00 SYN... (3 Replies)
Discussion started by: magnus29
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have below file structure and need to display hours, minutes and seconds as different fields.
Incase hour or minute field is not there it should default to zero.
*** Total elapsed time was 2 hours, 54 minutes and 40 seconds.
*** Total elapsed time was 42 minutes and 36 seconds.... (7 Replies)
Discussion started by: fristyguy
7 Replies
4. Shell Programming and Scripting
Hi,
I have data like below.
SID=D6EB96CC0
HID=9C246D6
CSource=xya
Cappe=1
Versionc=3670
MAR1=STL
MARS2=STL
REQ_BUFFER_ENCODING=UTF-8
REQ_BUFFER_ORIG_ENCODING=UTF-8
RESP_BODY_ENCODING=UTF-8
CON_ID=2713
I want to select
CSource=xya (18 Replies)
Discussion started by: chetan.c
18 Replies
5. UNIX for Dummies Questions & Answers
Hi!
i want to extract from /etc/passwd file,the user and user info fileds, to a another file.I've tried this:
cut -d ':' -f1 ':' -f6 < file
but cut can be used to extract olny one field and not two.
maybe with awk is this possible? (4 Replies)
Discussion started by: strawhatluffy
4 Replies
6. IP Networking
hi all
i want to extract few connection level features (not packet level )of the internet traffic through ethernet card interface
the features are as follows
Timestamp Timestamp of paket captured
Duration duration of connection
ip_proto IP... (0 Replies)
Discussion started by: vaibhavkorde
0 Replies
7. Shell Programming and Scripting
Hi,
I have a tmp file like below:
<ADATA>
ANUM=900
ADESC=Saving
ATYP=0
TXREGD=0
</ADATA>
<ADATA>
ANUM=890
ADESC=Saving
ATYP=0
ABAL=9000
TXREGD=1
</ADATA>
<ADATA> (2 Replies)
Discussion started by: kunigirib
2 Replies
8. Shell Programming and Scripting
Dear all,
please see the logs shown below:
12-12 08:47:37.545 DBG AGIML SERVER..............................write() (<agiml><header><responsetype>TOPUP</responsetype></header><response><auditfields/><resultcode>999</resultcode>... (7 Replies)
Discussion started by: akhtar.bhat
7 Replies
9. Shell Programming and Scripting
Hi
I am newbie.My requirement is:
I have start time :Wed Apr 30 3:30:45
End time :Wed Apr 30 3:35:45
which is stored in a file.
I have to extract timestamp 3:30:45 using awk. And Subtract the same
The script:
----------
#!/bin/ksh
LOG_FILE=$1
START_TIME=`head -2 $LOG_FILE... (1 Reply)
Discussion started by: usshell
1 Replies
10. Shell Programming and Scripting
hi,
i would like to extract the just name field from /etc/passwd file, and nothing else. ie grep pauline, and Pauline Fowler comes back.
cheeers
paul mc (6 Replies)
Discussion started by: mopimp
6 Replies
Locale::Maketext::Extract::Plugin::Generic(3pm) User Contributed Perl Documentation Locale::Maketext::Extract::Plugin::Generic(3pm)
NAME
Locale::Maketext::Extract::Plugin::Generic - Generic template parser
SYNOPSIS
$plugin = Locale::Maketext::Extract::Plugin::Generic->new(
$lexicon # A Locale::Maketext::Extract object
@file_types # Optionally specify a list of recognised file types
)
$plugin->extract($filename,$filecontents);
DESCRIPTION
Extracts strings to localise from generic templates.
SHORT PLUGIN NAME
generic
VALID FORMATS
Strings inside {{...}} are extracted.
KNOWN FILE TYPES
All file types
SEE ALSO
xgettext.pl
for extracting translatable strings from common template systems and perl source files.
Locale::Maketext::Lexicon
Locale::Maketext::Extract::Plugin::Base
Locale::Maketext::Extract::Plugin::FormFu
Locale::Maketext::Extract::Plugin::Perl
Locale::Maketext::Extract::Plugin::TT2
Locale::Maketext::Extract::Plugin::YAML
Locale::Maketext::Extract::Plugin::Mason
Locale::Maketext::Extract::Plugin::TextTemplate
AUTHORS
Audrey Tang <cpan@audreyt.org>
COPYRIGHT
Copyright 2002-2008 by Audrey Tang <cpan@audreyt.org>.
This software is released under the MIT license cited below.
The "MIT" License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
perl v5.14.2 2010-08-10 Locale::Maketext::Extract::Plugin::Generic(3pm)