11-28-2017
Why don't you try building on the code Yoda provided and see if you can get the output you want on your own?
If you get stuck, show us what you've tried and we'll help you finish it.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am having trouble converting a text file. I have been working for this whole day now, still i couldn't make it.
Here is how the text file looks:
_______________________________________________________
DEVICE STATUS INFORMATION FOR LOCATION 1:
OPER STATES: Disabled E:Enabled ... (5 Replies)
Discussion started by: Issemael
5 Replies
2. Shell Programming and Scripting
Hi,
I have some files in the following structure.
File_a.txt
Field_1 Pass
Field_2 Pass
Field_3 Pass
File_b.txt
Field_1 Pass
Field_2 Fail
Field_3 Pass
File_c.txt
Field_1 Fail
Field_2 Pass
Field_3 Pass (2 Replies)
Discussion started by: vikaskm
2 Replies
3. Shell Programming and Scripting
Hi,
I have the following text file:
8 T1mapping_flip02 ok 128 108 30 1 665000-000008-000001.dcm
9 T1mapping_flip05 ok 128 108 30 1 665000-000009-000001.dcm
10 T1mapping_flip10 ok 128 108 30 1 665000-000010-000001.dcm
11 T1mapping_flip15 ok 128 108 30... (2 Replies)
Discussion started by: goodbenito
2 Replies
4. Shell Programming and Scripting
Hi Unix Experts,Team
I have a file (say comand_file.prm), The file has a command specified in column 6 (say "./execute_script.sh"). I want to execute this command in my script.
I am writing a KSH script to achieve this. Could you please assist me with this. (6 Replies)
Discussion started by: Jeevanm
6 Replies
5. Shell Programming and Scripting
I am developing shell script on Linux OS and I have two files.Data in each file is like :
File1 :
A B C
E F G
X Y Z
File 2:
A C 12
E G 22
X Z 41
I need if first and third column entries ( $1 & $3) of File1 in same row matches with first & second column... (3 Replies)
Discussion started by: suneet17
3 Replies
6. Shell Programming and Scripting
I have an xml file dumped from rrd file, that I want to "patch" so the xml file doesn't contain any blank hole in the resulting graph of the rrd file.
Here is the file.
<!-- 2015-10-12 14:00:00 WIB / 1444633200 --> <row><v> 4.0419731265e+07 </v><v> 4.5045912770e+06... (2 Replies)
Discussion started by: rk4k
2 Replies
7. Shell Programming and Scripting
File1
alias:server1_00,20:f1:0a:25:b5:03:02:90
alias:server2_00,20:f1:0a:25:b5:03:02:91
alias:server3_00,50:00:09:75:50:0d:bd:da
alias:server4_00,20:f1:0a:25:b5:03:02:93
alias:server5_00,21:00:00:24:ff:8b:e1:fe
alias:server6_00,50:00:09:75:50:08:54:44... (17 Replies)
Discussion started by: ranjancom2000
17 Replies
8. Shell Programming and Scripting
Example:
I have files in below format
file 1:
zxc,133,joe@example.com
cst,222,xyz@example1.com
File 2 Contains:
hxd
hcd
jws
zxc
cst
File 1 has 50000 lines and file 2 has around 30000 lines :
Expected Output has to be :
hxd
hcd
jws (5 Replies)
Discussion started by: TestPractice
5 Replies
9. UNIX for Beginners Questions & Answers
Source Code of the original script is down below please run the script and try to solve this problem
this is my data and I want it column wise
2019-03-20 13:00:00:000
2019-03-20 15:00:00:000
1
Operating System
LAB
0
1
1
1
1
1
1
1
1
1
0
1 (5 Replies)
Discussion started by: Shubham1182
5 Replies
10. Shell Programming and Scripting
I am trying to change the number in bold to 2400
01,000300032,193631306,190619,0640,1,80,,2/
02,193631306,000300032,1,190618,0640,CAD,2/
I'm not sure if sed or awk is the answer. I was going to use sed and do a character count up to that point, but that column directly before 0640 might... (8 Replies)
Discussion started by: juggernautjoee
8 Replies
LEARN ABOUT DEBIAN
zipios_gzipoutputstreambuf
zipios::GZIPOutputStreambuf(3) Library Functions Manual zipios::GZIPOutputStreambuf(3)
NAME
zipios::GZIPOutputStreambuf -
GZIPOutputStreambuf is a zip output streambuf filter.
SYNOPSIS
#include <gzipoutputstreambuf.h>
Inherits zipios::DeflateOutputStreambuf.
Public Member Functions
GZIPOutputStreambuf (streambuf *outbuf, bool del_outbuf=false)
GZIPOutputStreambuf constructor.
void setFilename (const string &filename)
void setComment (const string &comment)
void close ()
Calls finish.
void finish ()
Finishes the compression.
virtual ~GZIPOutputStreambuf ()
Destructor.
Protected Member Functions
virtual int overflow (int c=EOF)
virtual int sync ()
Detailed Description
GZIPOutputStreambuf is a zip output streambuf filter.
Definition at line 15 of file gzipoutputstreambuf.h.
Constructor & Destructor Documentation
zipios::GZIPOutputStreambuf::GZIPOutputStreambuf (streambuf *outbuf, booldel_outbuf = false) [explicit]
GZIPOutputStreambuf constructor. A newly constructed GZIPOutputStreambuf is ready to accept data.
Parameters:
outbuf the streambuf to use for output.
del_outbuf if true is specified outbuf will be deleted, when the GZIPOutputStreambuf is destructed.
Definition at line 19 of file gzipoutputstreambuf.cpp.
zipios::GZIPOutputStreambuf::~GZIPOutputStreambuf () [virtual]
Destructor.
Definition at line 47 of file gzipoutputstreambuf.cpp.
Member Function Documentation
void zipios::GZIPOutputStreambuf::close ()
Calls finish.
Definition at line 33 of file gzipoutputstreambuf.cpp.
void zipios::GZIPOutputStreambuf::finish ()
Finishes the compression.
Definition at line 37 of file gzipoutputstreambuf.cpp.
Author
Generated automatically by Doxygen for Zipios++ from the source code.
Zipios++ Mon Oct 10 2011 zipios::GZIPOutputStreambuf(3)