Please advise i need to change a text in a file, what should i do....
original text
text need to replaced
Moderator's Comments:
With over 350 posts and numerous infractions for misuse of CODE tags, you know that putting sample input, sample output, and descriptive text in a single set of CODE tags obfuscates what your input and output are supposed to look like.
Last edited by Don Cragun; 01-30-2014 at 03:46 AM..
Reason: Fix CODE tags.
I am basically a scripting noob, I have some programming logic, and I wouldn't post here if my 3 hours of searching actually found something.
So far this is what I have:
"
#! /bin/ksh
List=./pinglist1.txt
cat $List | while read ip
do
Pingable=""
ping $ip -n 2 | awk '/100%/ {print... (11 Replies)
Hi All,
I need to BCP out a table into a text file along with the table headers. Normal BCP out command only bulk copies the data, and not the headers.
I am using the following command: bcp database1..table1 out file1.dat -c -t\| -b1000 -A8192 -Uuser -Ppassword -efile.dat.err
Regards,... (0 Replies)
Hi
I need to create multiple text files from onc text file on AIX. The data of text files is as below:
**********************************************
**********************************************
DBVERIFY: Release 10.2.0.4.0 - Production on Tue Nov 10 13:45:42 2009
Copyright (c) 1982,... (11 Replies)
Hello friends!
Help me pls to write correct awk and grep statements for my task:
I have got files with name filename.txt
It has such structure:
Start of file
FROM: address@domen.com (12...890) abc
DATE: 11/23/2009 on Std
SUBJECT: any subject
End of file
So, I must check,
if this file... (4 Replies)
I have a text file with irregular spacing between values which makes it really difficult to manipulate. Is there an easy way to convert it into a space delimited text file so that all the spaces, double spaces, triple spaces, tabs between numbers are converted into spaces. The file looks like this:... (5 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 am trying to extract lines from a text file given a text file containing line numbers to be extracted from the first file. How do I go about doing this? Thanks! (1 Reply)
Hi Folks,
I am a novice and need to build a script in bash. I have 2 text files data.txt file is big file, column 2 is the we need to search and delete in the output. The filter file contains the rows to be deleted.
Data.txt
state city zone
Alabama Huntsville 4
California SanDiego 3... (3 Replies)
I hope this makes sense and is possible.
I am trying to match $1 of panel_genes.txt with $3 of RefSeqGene.txt and when a match is found the value in $6 of RefSeqGene.txt
Example: ACTA2 is $1 of panel_genes.txt
ACTA2 NM_001613.2
ACTA2 NM_001141945.1
awk 'FNR==NR {... (4 Replies)
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 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)