Extracting values after the maximum value in a txt file
Hello,
I'm new to scripting and I need to write a bash script. Here is example of file on which I'm working:
I try to extract maximum value of this txt file. The maximum value is "0.4238688" here.
Then i just want to get values after this maximum value and add zeros for empty spaces. Like this;
Any suggestions?
Thank you
Moderator's Comments:
Please use CODE tags (for data as well) as required by forum rules!
Last edited by RudiC; 10-23-2018 at 05:09 PM..
Reason: Added CODE tags.
Greetings,
I would like to extract records from a fixed width text file that have unique field elements.
Data is structured like this:
John A Smith NY
Mary C Jones WA
Adam J Clark PA
Mary Jones WA
Fieldname / start-end position
Firstname 1-10... (8 Replies)
Hi All,
Please help me out in fllowing problem.
I have text file which contains the data in following format.
Contents of file.txt are
setregid02
Test that setregid() fails and sets the proper errno values when a
non-root user attemps to change the real or effective... (2 Replies)
Hello People,
I have an xml file from which I need to extract the values of the parameters using UNIX shell commands.
Ex : Input is like :
<Name>Roger</Name>
or
<Address>MI</Address>
I need the output as just :
Roger
or
MI
with the tags removed.
Please help. (1 Reply)
Dear All,
i am new to shell scripting, I am working on embedded system based on linux.I am supposed to the read the configuration file and edit another file.
presently I would like to read from the configuration file.It would be having values file one below.
There is chance of entering... (6 Replies)
I would like to read value after $ symbol from a file.
For eg
a file will be having the following lines.
5,$0,-32768p,32767p,$400014f8,1,,
5,$0,0,0,$400008ce,1,,
5,$0,0,0,$400008d0,1,,
i would like to read 400014f8 then 400014f8 and similar all the value after $ symbol.Can any one help... (1 Reply)
I have a file containing data like so:
2012-01-02 GREEN 4
2012-01-02 GREEN 6
2012-01-02 GREEN 7
2012-01-02 BLUE 4
2012-01-02 BLUE 3
2012-01-02 GREEN 4
2012-01-02 RED 4
2012-01-02 RED 8
2012-01-02 GREEN 4
2012-01-02 YELLOW 5
2012-01-02 YELLOW 2
I can't always predict what the... (4 Replies)
Hi ,
I'm using Ksh 88
I've the following files in a directory with YearMonthDate (Ex:20130601)
YDT:FILE1:20130601
YDT:FILE1:20130615
YDT:FILE2:20130601
YDT:FILE2:20130615
YDT:FILE3:20130601
YDT:FILE3:20130615
And i need the files having maximum timestamp , Means i need to display ... (8 Replies)
Hello,
I'm new to scripting and I need to write a bash script. Here is example of file on which I'm working:
0.3092381 0.3262799 0.3425480 0.3578379 0.3719490
0.3846908 0.3958855 0.4053738 0.4130160 0.4186991
0.4223357 ... (1 Reply)
Discussion started by: jeo_fb
1 Replies
LEARN ABOUT DEBIAN
ost_hexdump
ost::HEXdump(3) Library Functions Manual ost::HEXdump(3)NAME
ost::HEXdump -
Produces a dump of a buffer in a hexdump way with its code Ascii translation and relative buffer address.
SYNOPSIS
#include <applog.h>
Public Member Functions
HEXdump (const unsigned char *buffer, int buff_len, int max_len=200)
HEXdump constructor.
virtual ~HEXdump ()
HEXdump destructor.
const char * c_str () const
const char* cast provided for conveneince.
std::string str ()
string cast provided for conveneince.
Protected Attributes
std::string _str
output string
Friends
std::ostream & operator<< (std::ostream &out, const HEXdump &hd)
operator <<
Detailed Description
Produces a dump of a buffer in a hexdump way with its code Ascii translation and relative buffer address.
For instance: 0000000 - 77 98 21 49 0e 00 05 00 40 1c 01 1c 2f 00 00 00 w.!I....../...
Constructor & Destructor Documentation
ost::HEXdump::HEXdump (const unsigned char *buffer, intbuff_len, intmax_len = 200)
HEXdump constructor. Parameters:
buffer buffer to be 'hexdumped'
buff_len buffer length
max_len max number of bytes to be 'hexdumped'. Usefull to truncate output. mas_len=0 does prints all.
virtual ost::HEXdump::~HEXdump () [inline], [virtual]
HEXdump destructor.
Member Function Documentation
const char* ost::HEXdump::c_str () const [inline]
const char* cast provided for conveneince.
std::string ost::HEXdump::str () [inline]
string cast provided for conveneince.
Friends And Related Function Documentation
std::ostream& operator<< (std::ostream &out, const HEXdump &hd) [friend]
operator << Parameters:
hd hexdump.
Returns:
application logger stream
Member Data Documentation
std::string ost::HEXdump::_str [protected]
output string
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::HEXdump(3)