04-14-2014
Thanks for the reply.
This was my first post on this site, and I appreciate this quick response!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have a file with contents like
china
india
france
japan
italy
germany
.
.
.
.
etc....
I want the output as
china|india|france|japan|italy|germany|.|.|. (3 Replies)
Discussion started by: hidnana
3 Replies
2. Shell Programming and Scripting
Hi,
I have a directory that contains say 100 files named sequencially like input_1.25_50_C1.txt
input_1.25_50_C2.txt
input_1.25_50_C3.txt
input_1.25_50_C4.txt
..
..
..
input_1.25_50_C100.txt
an example of the content in each of the file is:
"NAME" "MEM.SHIP"
"cgd1_10" "cgd1_10"... (9 Replies)
Discussion started by: Lucky Ali
9 Replies
3. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Hi All,
I am new to unix, my requirement is like need to find the files like DATA_FUNCTION* and put those... (1 Reply)
Discussion started by: madsongtel
1 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I have a file which lines' words are comma separated:
aa, bb, cc, uu b, ee, ff
bb, cc, zz, ee, ss, kk
oo, bb, hh, uu a, xx, ww
tt, aa, dd, yy aa, gg
I want to sort first by second column and in case of tie by fourth column with sort command.
So the output would be:
... (4 Replies)
Discussion started by: asanchez
4 Replies
5. Shell Programming and Scripting
I am in the process of creating a BASH shell scripts for a project at work. So the scenario is as such:
I have a file with each line entry separated by ':'
... (3 Replies)
Discussion started by: metallica1973
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have a large number of files which are written as csv (comma-separated values).
Does anyone know of simple sed/awk command do achieve this?
Thanks!
---------- Post updated at 10:59 AM ---------- Previous update was at 10:54 AM ----------
Guess I asked this too soon. Found the... (0 Replies)
Discussion started by: lost.identity
0 Replies
7. Shell Programming and Scripting
Hey Masters,
Here is my input:
fragmentID chromosome start end HEL25E TRIP1
r5GATC2L00037 chr2L 5301 6026 0.03 0.036
r5GATC2L00038 chr2L 6023 6882 -0.025 -0.041
r5GATC2L00040 chr2R 6921 7695 -0.031 0.005
r5GATC2L00042 chr2R 7715 8554 -0.006 -0.024
r5GATC2L00043 chr3L 8551 8798 0.042 0... (4 Replies)
Discussion started by: @man
4 Replies
8. Shell Programming and Scripting
Hi Everyone,
On my Linux box I have a text file having block of few lines and this block lines separated by one blank line. I would like to format and print these lines in such a way that this entire block of lines will come as single comma separated line & again next block of lines in next... (7 Replies)
Discussion started by: gr8_usk
7 Replies
9. Shell Programming and Scripting
Hello,
I have a text file as:-ABC
BCD
CDF
DEF
EFGI need to convert as 'ABC', 'BCD', 'CDF', 'DEF', 'EFG' using a unix command
anybody can help me out on this.
Regards,
Jas
Please wrap all code, files, input & output/errors in CODE tags.
It makes them easier to read and preserves... (12 Replies)
Discussion started by: jassi10781
12 Replies
10. Shell Programming and Scripting
My OS : RHEL 6.7
I have a text file with comma separated values like below
$ cat testString.txt
'JOHN' , 'KEITH' , 'NEWMAN' , 'URSULA' , 'ARIANNA' , 'CHENG', . . . .
I want these values to appear like below
'JOHN' ,
'KEITH' ,
'NEWMAN' ,
'URSULA' ,
'ARIANNA' ,
'CHENG',
.... (4 Replies)
Discussion started by: kraljic
4 Replies
LEARN ABOUT HPUX
smfi_setmlreply
smfi_setmlreply(3N) smfi_setmlreply(3N)
NAME
smfi_setmlreply() - sets default SMTP error reply code to a multi-line response
SYNOPSIS
PARAMETERS
ctx Specifies the opaque context structure.
rcode Specifies the 3-digit (RFC 821/2821) SMTP reply code, as a null-terminated string.
rcode must not be a NULL value, and must be a valid or reply code.
xcode Specifies the extended (RFC 1893 or 2034) reply code. An xcode must conform to RFC 1893/2034 code. If xcode is set to NULL, an
extended code is not used.
Specifies the remaining arguments, which are single lines of text.
A maximum of 32 arguments can be specified. These arguments are used as the text part of the SMTP reply. The list must be termi-
nated with a NULL value.
DESCRIPTION
The routine directly sets the SMTP error reply code for a connection.
Only and replies are accepted.
The list of arguments in must be terminated with a NULL value.
is used on subsequent errors from the filter. can be called from any of the functions other than
Notes
o Values passed to are not checked for standards compliance.
o The message parameter must contain only printable characters; other characters may lead to undefined behavior. For example, a CR or LF
will cause the call to fail, single (percentage) characters will cause the text to be ignored. If a is required in a string, use the
format.
o For more information on reply codes and their meanings, see RFC 821, 2821, 1893, and 2034.
o If the reply code, that is, rcode, is given a code but is used for the message, the custom reply is not used.
Similarly, if rcode is given a code but is used for the message, the custom reply is not used.
In neither of the last two cases, an error is returned to the Milter and silently ignores the reply code.
o If the Milter returns and sets the reply code to '421', the SMTP server terminates the SMTP session with a '421' error code.
RETURN VALUE
fails and returns for the following reasons:
o Invalid rcode or xcode argument value.
o Memory-allocation failure.
o Carriage return or line feed in a text line.
o Length of any text line is more than the value(980).
o More than 32 lines of text replies are provided.
returns on successful completion.
EXAMPLES
Consider the following sample code:
The following is the SMTP response of the sample code:
AUTHOR
The routine was developed by the Sendmail Inc.
SEE ALSO
smfi_getsymval(3N), smfi_getpriv(3N), smfi_setreply(3N), smfi_setpriv(3N).
on
smfi_setmlreply(3N)