05-01-2008
Hi Jim,
THanks for your response. I get the o/p but I want a space before no and switchport
Regards,
aejaz
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I've been searching around here and other places, but can't put this together...
I've got a unique list of words in file 1 (one word on each line).
I need to delete each line in file2 that begins with the word in file1.
I started this way, but want to know how to use file1 words instead... (13 Replies)
Discussion started by: michieka
13 Replies
2. Shell Programming and Scripting
11132
13069
11137
11142
13070
Can I use grep command to exclude all lines beginning with 13?
I dont want to use grep -v 13 as potentially there will be a number with something like 11013 that I would exclude in error.. (2 Replies)
Discussion started by: frustrated1
2 Replies
3. Shell Programming and Scripting
I have a file that contains a great number of lines, let's say 183 lines, and I want to add: echo " to the beginning of each line. What is the easiest way to do it?
Tx (9 Replies)
Discussion started by: Ernst
9 Replies
4. Shell Programming and Scripting
Hi!
I store some data obtained with grep or awk in a file. The problem is that some lines have white space at the begining :
line1
line2
line3
I use something like
grep WORD INFILE >> OUTFILE
awk >> OUTFILE
I would love if it were possible to remove the white whitout parsing the... (4 Replies)
Discussion started by: tipi
4 Replies
5. Shell Programming and Scripting
I have a large file which reads like this:
fixed-address 192.168.6.6 {
hardware ethernet 00:22:64:5b:db:b1;
host X;
}
fixed-address 192.168.6.7 {
hardware ethernet 00:22:64:5b:db:b3;
host Y;
}
fixed-address 192.168.6.8 {
hardware ethernet 00:22:64:5b:db:b4;
host A;
}... (4 Replies)
Discussion started by: ksk
4 Replies
6. Solaris
How can we delete all the blank spaces in the beginning of some lines in a text in vi?
Thanks, (2 Replies)
Discussion started by: Pouchie1
2 Replies
7. Shell Programming and Scripting
I'm trying to extract all the lines between 2 strings (including the lines containing the strings)
To make the strings unique I need to include white space if possible. I'm not certain how to do that.
sed -n '/ string1 /,/string2/p' infile > outfile & (4 Replies)
Discussion started by: dcfargo
4 Replies
8. Shell Programming and Scripting
How can I delete spaces at the begining of all lines of my file ? (2 Replies)
Discussion started by: Sara_84
2 Replies
9. Shell Programming and Scripting
hi I am trying to use SED to replace the line matching a pattern using the command
sed 'pattern c\
new line
' <file1 >file 2
I got two questions
1. how do I insert a blank space at the beginning of new line?
2. how do I use this command to execute multiple command using the -e... (5 Replies)
Discussion started by: piynik
5 Replies
10. Shell Programming and Scripting
Hello people,
I am trying with sed to insert some text at the beginning of each odd line of a file but no luck. Can you please help. Awk is also suitable but I am not very familiar with it.
Thank you in advance for any help. (7 Replies)
Discussion started by: drbiloukos
7 Replies
next(1) General Commands Manual next(1)
NAME
next - show the next message (only available within the message handling system, mh)
SYNOPSIS
next [+foldername] [-[no]header] [-help] [-showproc program] [-noshowproc] [options to showproc]
OPTIONS
Displays a one-line header before the message. The header consists of the name of the folder and the message number. This is the default
behavior. It can be suppressed with the -noheader option. Prints a list of the valid options to this command. Specifies an alternative
program to list messages. The default is to use the program defined by the showproc: entry in the file. As with show, you can give options
to the showproc program at the command line. These are passed directly to showproc by next. (If you specify an option that has a numerical
value, leave no space between the argument and the value. See RESTRICTIONS for more information.)
The defaults for this command are:
+folder defaults to the current folder -header
DESCRIPTION
The command next displays the next message in the current folder. The next message is the one after the current message in the folder. The
message that is shown becomes the current message.
If you name a folder using the +folder argument, next displays the next message in the folder you specify. That folder becomes the current
folder.
RESTRICTIONS
The next command is really a link to the show program. As a result, if you make a link to next and that link is not called next, your link
will act like show instead. To avoid this, add a profile-entry for the link to your and add the argument next to the entry.
Also, if you use the showproc switch to specify an alternative viewer, leave no space between the options specified with the viewer and
their values. For example, if you want to use the more command to scroll through messages in your inbox folder, and you want to pause every
five lines, you would enter the following command, where there is no space between the option n and the value 5: % next +inbox -showproc
more -n5
If there is space between the option n and the value 5, the command interprets 5 as a message number to view.
PROFILE COMPONENTS
Path: To determine the user's Mail directory
showproc: Program to show the message
FILES
The user profile.
SEE ALSO
show(1), prev(1), mh_profile(4)
next(1)