I think Corona688 missed the fact that you want CRLF line terminators in your output too. To do that, this trivial modification to his code:
should do what you want as long as the 1st line in every set of 3 adjacent lines in your input file contains "client" starting in column 29 (columns are numbered starting from 1; not 0; in awk. If you want to discard other types of records, this more complicated script should work:
These 2 Users Gave Thanks to Don Cragun For This Post:
I have a few lines like --
feature 1,
subfeat 0,
type 3,
subtype 1,
value 0,
--
feature 1,
subfeat 0,
type 1,
subtype 1,
value 0,
I would like to concatenate the... (1 Reply)
Hi all,
May you help me with this?
After extract only some lines that I need from a file, I would like to concatenate the remaining lines in a single line (paragraph).
Source file pattern:
Event Type: Warning
Event Source: Sorting
Event Category: None
Event ID: 1188
Date: 9/10/2008... (4 Replies)
i have a mega file in this format:
a,
b,
c,
d,
=
a2,
b2,
c2,
d2,
=
a3,
b3
=
i want to combine lines until = meet. the result should be :
a,b,c,d,
a2,b2,c3,d2
a3,b3 (13 Replies)
Does anyone know a way I can fix my file below where it has lines that are cut?
Just like the (notice the space before ms,c=PH)..
dn: cn=english,ou=Messaging,ou=lang,o=subject,t=j
ms,c=PH
which should be
dn: cn=english,ou=Messaging,ou=lang,o=subject,t=jms,c=PH
The whole text file... (5 Replies)
Hi,
I have a text file with the following contents
/C=IT/O=INFN/OU=Personal Certificate/L=Napoli/CN=Some guy
/C=IT/O=INFN/CN=INFN CA
/O=Grid/O=NorduGrid/OU=uninett.no/CN=Another guy
/O=Grid/O=NorduGrid/CN=NorduGrid Certification Authority
/C=TW/O=AP/OU=GRID/CN=Someone else... (5 Replies)
Hello,
I have been searching the forum for concatenation based on condition. I have been close enough but not got th exact one.
infile:
-----DB_Name ABC (X,
Y,Z).
DB_Name DEF (T).
DB_Name GHI (U
,V,W).
Desired Output file should be:
---------------------------DB_Name ABC... (8 Replies)
Hi,
I have a file such as:
---
>contig00001 length=35524 numreads=2944
gACGCCGCGCGCCGCGGCCAGGGCTGGCCCA
CAGGCCGCGCGGCGTCGGCTGGCTGAG
>contig00002 length=4242 numreads=43423
ATGCCGAAGGTCCGCCTGGGGCTGG
CGCCGGGAGCATGTAGCG
---
I would like to concatenate the lines not starting with ">"... (9 Replies)
Hi All,
Can any one help me in finding the solution for concatenating two or more lines in a file and writing them to a temporary file.
for Example:
He is a wise student.
So he got first rank.
This is in a file i want the output as
He is a wise student so he got first rank. into a file... (3 Replies)
How to concatenate lines with specific pattern?
I have data dumped from a table into text file. In some occurrence the data row is split into two rows.
Example:
12345678|Global Test|Global Test Task|My Request|Date|Date|Date|1|1|
12345679|Global Test2|Global Test Task2|My... (8 Replies)
Discussion started by: nixtime
8 Replies
LEARN ABOUT DEBIAN
timblclient
timblclient(1) General Commands Manual timblclient(1)NAME
timblclient - a simple client to access the Tilburg Memory Based Learner Server
SYNOPSYS
timblclient -h host -p port [-i inputfile] [-i outputfile] [--batch] [-b basename]
DESCRIPTION
timblclient connects to a TimblServer on 'host':'port' and sends it the normal instructions. (see timblserver )
OPTIONS
The timblclient options are
-i inputfile
a series of timblserver commands.
When BATCH is specified, inputfile is supposed to be a 'normal' Timbl testfile. Every line is send to the timblserver as a 'clas-
sify' command. Default is stdin.
-o outputfile
Where to put the results. Default is stdout.
--batch
When --batch is specified, the input from 'inputfile' is not interpreted as timblserver commands, but as instances that will be send
'as is' prepended by a classify instruction.
-h host
connect to the server on 'host'
-p port
connect to 'port' on 'host'
-b basename
set the base in TimblServer to 'base'
BUGS
This is just a simple testprogram, and rather clumsy.
AUTHORS
Ko van der Sloot timbl@uvt.nl
SEE ALSO timbl(1)timblserver(1)
2011 march 28 timblclient(1)