08-10-2006
Any shorter way???
Is there no other way as with yyX i would have to know the number of lines in advance (though its not a problem) but still if there is shorter way please point it out.
Thanks for the reply,
Rakesh
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
is vi editor the same for all versions of Unix???? I mean are the commands the same for say Solaris or BSD (1 Reply)
Discussion started by: eloquent99
1 Replies
2. UNIX for Advanced & Expert Users
Guys,
file1 is 10pages long in vi.
How to select the complete contents of the life.
Regards (2 Replies)
Discussion started by: Aejaz
2 Replies
3. UNIX and Linux Applications
I need to delete a line of statement with vi editior in linux, i am using rm but won't work. (3 Replies)
Discussion started by: doyindayo
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question.
How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'?
As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies
5. Shell Programming and Scripting
Hi All,
I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by
set EDITOR=vi it does not open a vi editor , rather it do as below.....
/////////////////////////////////////////////////////
$ set... (6 Replies)
Discussion started by: aarora_98
6 Replies
6. Solaris
Epic Editor was not able to obtain a license for your use. Feature Epic Editor :License server is down (1 Reply)
Discussion started by: durgaprasadr13
1 Replies
7. SCO
hello friends,
i wud like to get some suggestion for a Q i faced in an interview..........
the Q is...........
suppose a person is working on vi .the file is very large and he hasn't saved anything ........suddenly power goes off and system shuts down ...after power comes up the system is... (4 Replies)
Discussion started by: girish_shukla
4 Replies
8. Shell Programming and Scripting
How can ` character be printed on vi editor ?
empl_id=`echo $line | awk ' { print $1; } '` (2 Replies)
Discussion started by: senem
2 Replies
9. UNIX for Advanced & Expert Users
Hi,
What's the process to open 2 vi editor at a same time.
Plz let me know.
Thanx (5 Replies)
Discussion started by: reply2soumya
5 Replies
10. Boot Loaders
Hello,
I have kubuntu on my laptop and now I decided to switch to Windows 7. I made the bios settings properly (first choice is boot from cd\vd) but I see the error
" reboot and select proper Boot device or insert Boot media in select Boot device and press a key "
I have tried CD and... (0 Replies)
Discussion started by: rpf
0 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)