Fallowing is the input file that is pipe seperated.
is it possible to generated the report that is alligned left justifed as that of sample output.
I apprecitae your help on this.
InputFile (temp.txt):
108005555|001|christina.lipski||Submitter... (3 Replies)
I want to know how to, given a string like W87151WR71C, if the 4th and 5th character (in this case 15) are greater than 45, then to add 1 to the 3rd character (in this case 7) and assign the revised string the variable name MODSTRING.
Thanks in advance. This is ultimately to grab info from... (6 Replies)
Hi All!
I trying to execute this perl script to extract a particular field in a text file, luckily it works. But, right now I would like to extract 3 more fields in the text file but couldnt get the right syntax on how to do it.
command is:
perl -pe '$_ = (split(//)) . "\n"' TestDoc.txt... (3 Replies)
I have a flatfile A.txt
date|products|notes|location
121117|a108|this is a test|florida
121118|b111|just test it|tampa
How do i write an awk to create a file name as location.txt and have products:notes
awk -F'|' '{ print $2 ":" $3 }' A.txt > $4.txt
I am sure it cannot write to... (5 Replies)
Hi Experts,
I am trying to print $2 & the IP_address upto 3rd octet only.
But unable to do so, Trying # awk '{print $2, substr($4,1,9)}' file . but not correct
File:
HOST= cmiHOST06 :: 10.26.107.73:/data120 /nbu/cmiHOST06/athpx07/aa1
HOST= cmiHOST05 :: 10.26.12.76:/data120... (5 Replies)
Hi, I have a file with +/- 13000 lines and 4 column. I need to search the 3rd column for a word that begins with "SAP-" and move/skip it to the next column (4th). Because the 3rd column need to stay empty.
Thanks in advance.:)
89653 36891 OTR-60 SAP-2
89653 36892 OTR-10 SAP-2... (2 Replies)
input
"A","B","C,D","E","F"
"S","T","U,V","W","X"
"AA","BB","CC,DD","EEEE","FFF"
required output:
"A","B","C,D","C,D","F"
"S", T","U,V","U,V","X"
"AA","BB","CC,DD","CC,DD","FFF"
tried using awk but double quotes not preserving for every field. any help to solve this is much... (5 Replies)
im trying to get
awk to print the string between 3rd and 4th backslashs to end of line
test could be any word
this
http://example.com/test/ >to this
http://example.com/test/ > testalso the other way round insert string at end of line... (13 Replies)
Discussion started by: bob123
13 Replies
LEARN ABOUT CENTOS
bltk_report
BLTK_REPORT(1) General Commands Manual BLTK_REPORT(1)NAME
bltk_report - automated report creation bltk_report_table - summary table creation from several results folders bltk_plot - graph drawing
SYNOPSIS
bltk_report [-hdofI013EiS] [-r ] [-s ] [-b ] [-c ] [-U ] [-B ] [-D ] [-C ] [-P ] [-K ] [-R ] [-2 ] [-4 ] directory...
bltk_report_table [-hdstfuEe13SR] [-2 ] [-4 ] [-F ] directory ...
bltk_plot [-hDswy1vnr] [-d ] [-f ] [-x ] [-X ] [-Y ] [-t ] [-o ] [-2 ] [-p ] results_dir ...
DESCRIPTION
The following tools are implemented for results analysis:
bltk_report
automated report creation
bltk_report_table
summary table creation from several results folders
bltk_plot
graph drawing
GENERAL OPTIONS -h theis help
-1 first statistic item of score file is ignored
-2 item:num
statistic from item 'item', 'num' number of score file
-f statistics file name
SPECIFIC OPTIONS
bltk_report
-o print report to output
-K string
comment string
-R filename
argument will be used as report file name
-3 first statistic item of stat.log file is ignored
-4 item:num
statistic from item 'item', 'num' number of stat.log file
-E errors being ignored (allows to create report file anyway)
-i idle mode
bltk_report_table
-d debugging mode
-s sort result lines
-t Excel-compatible file format
-3 first statistic item of stat.log file is ignored
-4 item:num
statistic from item 'item', 'num' number of stat.log file
-u only columns which contain different values will be included into table
-E errors being ignored (allows to create result table anyway)
-e skip error results
-F filter
only fields from filter file will be included into table (see doc/filter as an example)
-S split mode - split multiple values to columns
-R analyze all results dirs under passed directories
bltk_plot
-D debugging mode
-d results_dir
results directory name. This option could be passed several times default is current directory.
-s use stat.log file
-w use work.log file
-x name
argument is used to be an X parameter default is 'time' field
-y name...
argument is used to be an Y parameter this option could be passed several times default is 'cap' field
-X x1:x2
x range from x1 to x2
-Y y1:y2
y range from y1 to y2
-t title
graph title
-o options
options passed to 'plot' command
-v print current variables
-p file
save graph to specified file
-n print available field's names
-R analyze all results dirs under passed directories
EXAMPLE
bltk_report_table <results1> ... <resultsn> >sum
Common results table will be generated in 'sum' file for <results1> ... <resultsn> directories.
bltk_report result
'Report' file will be generated in results directory
bltk_plot -y bat -x N <results_dir1> ... <results_dir>
Common graph will be generated for <results_dir1> ... <results_dirn>
SEE ALSO bltk(1), bltk.conf(5)AUTHOR
Konstantin Karasyov <konstantin.a.karasyov@intel.com>
Vladimir Lebedev <vladimir.p.lebedev@intel.com>
BLTK_REPORT 15 July 2008 BLTK_REPORT(1)