Could you please try following and let me know if this helps.
Output will be as follows. NOTE: Considering that your Input_file is same style as you have shown to us.
Thanks,
R. Singh
This User Gave Thanks to RavinderSingh13 For This Post:
Hi,
I have data with broken lines:
Sample data:
"12"|"25"|"a"|"b"|"c"|"d"|"e"|"f"|"2453748"|"08:10:50"
"16"|"25"|"a"|"b"|"c"|"d"|"e"|"f"|"
2453748"|"08:15:50"
"16"|"25"|"a"|"b"|"
c"|"d"|"e"|"f"|"2453748"|"08:19:50"
"16"|"25"|"a"|"b"|"c"|"d"|"e"|"f"|"2453748"|"08:19:50"
In the... (5 Replies)
I've looked at the join command which is able to perform what I need on two rows with a common field, however if I have more than two rows I need to join all of them.
Thus I have one file with multiple rows to be joined on an index number:
1 randomtext1
2 rtext2
2 rtext3
3 rtext4
3 rtext5... (5 Replies)
Hi guys,
anyone know how can i join multiples lines using sed till the end of a file and output to another file in a single line?
The end of each line will be replaced with a special char "#".
I am using the below SED command, however it seems to remove the last 2 lines. Also not all lines... (12 Replies)
I am attempting to insert multiple lines of text into a specific place in a text file based on the lines above or below it.
For example, Here is a portion of a zone file.
IN NS ns1.domain.tld.
IN NS ns2.domain.tld.
IN ... (2 Replies)
Hi,
I lack the utter fundamentals on how to craft an awk script.
I have hundreds of text files that were mangled by .doc format so all the lines are broken up so I need to join all of the lines of text into a single line. Normally I use vim command "ggVGJ" to join all lines but with so many... (3 Replies)
Hi All
I have text file like this:
a=21ej
c=3tiu32
e=hydkehw
f=hgdiuw
g=jhdkj
a=klkjhvl
b=dlkjhyfd
a=yo
c=8732
Any way I can process data from first a to just before of second a, and then second a to just before of 3rd one.
Just fetching records like that will help, I mean... (3 Replies)
I would like to use grep to select multiple lines from a text file using a single-column text file. Basically I want to only select lines from the first text file where the second column of the first text file matches the second text file. How do I go about doing that? Thanks! (5 Replies)
Hi
I have a source file ( written i C ) where a funtion call is spread over multiple lines, for example :
func(
a,
b,
c
);
I want this to be joined into one single line :
func(a,b,c);
How can this be done with awk and sed ?
Regards. Hench (2 Replies)
Hi
I have a file like
1 2
1 2 3
1 5 6
11 12
10 2
7 5
17 12
I would like to have an output as
1 2 3 5 6 10 7
11 12 17
any help would be highly appreciated
Thanks (4 Replies)
Hello,
I have a file with 2 columns ( tableName , ColumnName) delimited by a Pipe like below . File is sorted by ColumnName.
Table1|Column1
Table2|Column1
Table5|Column1
Table3|Column2
Table2|Column2
Table4|Column3
Table2|Column3
Table2|Column4
Table5|Column4
Table2|Column5
From... (6 Replies)
Discussion started by: nv186000
6 Replies
LEARN ABOUT DEBIAN
extsmail.externals
EXTSMAIL.EXTERNALS(1) BSD General Commands Manual EXTSMAIL.EXTERNALS(1)NAME
extsmail.externals -- configure which external commands to robustly send e-mail via
DESCRIPTION
extsmail.externals is used to configure extsmaild(1). It consists of one or more group declarations. Each group consists of zero or more
match / reject clauses followed by one or more external declarations. An external consists of one or more assignments of key = value pairs.
When sending messages extsmaild(1) first searches through the externals file, in order, for a group whose match / reject clauses match the
message in question. If a group does not contain any such clauses it automatically matches all messages. Match / reject clauses currently
match only against headers, and use standard POSiX extended regular expressions (see re_format(7) for more details). extsmaild(1) then tries
each external in the group, in order, to send the message successfully.
The grammar for this file is as follows:
group ::= { matches* external+ }
matches ::= match
| reject
match ::= MATCH HEADER string
reject ::= REJECT HEADER string
external ::= EXTERNAL ID { defn+ }
defn ::= ID = STRING
| ID = TIME
TIME ::= [0-9]+[dhms]
Valid assignments within an external are:
sendmail
Defines the external shell command used to send e-mail.
timeout
If extsmaild(1) is executed in daemon mode, this value defines the length of time that extsmaild(1) will retry this external before
giving up and trying the next external in the group. Times are specified as a number followed by d (days), h (hours) m (minutes), or
s (seconds). If extsmaild(1) is executed in batch mode, the timeout value is ignored.
FILES
The extsmail configuration file is searched for, in order, in the following locations:
~/.extsmail/externals
Per-user configuration.
/etc/extsmail/externals
System-wide configuration.
EXAMPLES
The simplest externals file sending e-mail via ssh(1) looks as follows:
group {
external mymachine {
sendmail = "/usr/bin/ssh -q -C -l user mymachine.net /usr/sbin/sendmail"
}
}
where mymachine is a human-friendly name given to an external (it does not effect processing), and user is the username on the remote machine
mymachine.net.
A more complex example using multiple groups, message matching, and multiple external commands looks as follows:
group {
match header "^To:.*@foo.com"
external foo {
sendmail = "/usr/bin/ssh -q -C -l user shell.foo.com /usr/sbin/sendmail"
}
}
group {
external mymachine {
sendmail = "/usr/bin/ssh -q -C -l user mymachine.net /usr/sbin/sendmail"
}
external bk {
sendmail = "/usr/bin/ssh -q -C -l user bk.mymachine.net /usr/sbin/sendmail"
}
}
SEE ALSO extsmail(1), extsmail.conf(5), extsmaild(1)AUTHORS
Laurence Tratt <http://tratt.net/laurie/>
BSD November 2, 2008 BSD