10-12-2008
Thanks radoulov for your reply. Thanks.
Could you also suggest how can I keep any other lines (e.g. in the above file the line "#Test file" or any other intermediate comment lines) in the output.
Thanks.
9 More Discussions You Might Find Interesting
1. Programming
This is one basic question regarding C++ new and delete operator.
# include <iostream>
int main()
{
int *ptr = new int(10);
int i=0;
for (i=0 ; i<10 ;i++)
ptr = 10;
delete ptr;
printf("%d",ptr); // It prints the value 10
}
In the above program memory for the *ptr is... (3 Replies)
Discussion started by: arun.viswanath
3 Replies
2. Shell Programming and Scripting
Hi Friends
I have a file called processLog.txt file
processLog.txt
---------------
echo "line starts "$LINE
suppCode=${LINE:0:3}
#gatewayArchive=`scp root@mrp-gateway:/usr/local/apache/data/PLAT/MIMUS/upload/PROD/archive/112042708173000.txt /home/krishnaveni/scripts/tempFolder`
#echo... (5 Replies)
Discussion started by: kittusri9
5 Replies
3. Shell Programming and Scripting
Hi All,
I have a text file which looks like this:
computer programming
systems engineering
I want to get rid of these square brackets and also the text that is inside these brackets. So that my final text file looks like this:
computer programming
systems engineering
I am using... (3 Replies)
Discussion started by: shoaibjameel123
3 Replies
4. Red Hat
ENVIROMENT
Linux: Fedora Core release 1 (Yarrow)
iPlanet: iPlanet-WebServer-Enterprise/6.0SP1
Log Path: /usr/iplanet/servers/https-company/logs
I have iPlanet log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I... (7 Replies)
Discussion started by: zachs
7 Replies
5. Shell Programming and Scripting
Hi
My directory structure is as below.
dir1, dir2, dir3
I have the list of files to be deleted in the below path as below.
/staging/retain_for_2years/Cleanup/log $ ls -lrt
total 0
drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2
drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies
6. Shell Programming and Scripting
Hi All,
Do you have any sample script,
- auto get file from SFTP remote server and delete file in remove server after downloaded.
- only download specify filename
- auto upload file from local to SFTP remote server and delete local folder file after uploaded
- only upload specify filename
... (3 Replies)
Discussion started by: weesiong
3 Replies
7. Linux
Dear All,
I got the valgrind report as below
Mismatch free() / delete / delete
at 0x4006895: operator delete(void*) (vg_replace_malloc.c:480)
by 0x8EA6D11: corefunction.
I supect that it is expect me to write free() instead of delete p1.
Given the the code.
I have the structure.
... (7 Replies)
Discussion started by: SA_Palani
7 Replies
8. Programming
Could you tell me the possibilities of the reason to get the Mismatched free() / delete / delete .
I unable to see the line no in the valgrind report. it displays the function name. with that function name, I am not able to find where exactly the issue is there.I am getting the Mismatched free()... (3 Replies)
Discussion started by: SA_Palani
3 Replies
9. UNIX for Advanced & Expert Users
rsync with --delete won't honor the delete if the source is something/*. I want the delete to work, but not to delete directories on the target that are peer to the intended directory. For example, using these source and target file structures:
Source on desktop:
~/
Money/
... (4 Replies)
Discussion started by: JavaMeister
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)