Sponsored Content
Full Discussion: Vi % commands
Top Forums UNIX for Dummies Questions & Answers Vi % commands Post 302769582 by gary_w on Tuesday 12th of February 2013 05:06:11 PM
Old 02-12-2013
The percent sign as you described is shorthand meaning all lines in the file. You could replace it with a 1,5 for example to restrict the following search/replace to that range of lines.

Search for "vi commands" or "vi colon commands" and start reading!

Gary
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

commands

hi, I'm completely new to FreeBds or unix in general, is there a really nice site to teach you the basic ommands to free BSD. I don't know what to do. =( (3 Replies)
Discussion started by: Special K
3 Replies

2. Shell Programming and Scripting

commands

anyone know the command to display the ten most common words, together with their number of occurences, in the manual entry for the ls command. It would be much useful (1 Reply)
Discussion started by: master_6ez
1 Replies

3. Programming

code that reads commands from the standard i/p and executes the commands

Hello all, i've written a small piece of code that will read commands from standard input and executes the commands. Its working fine and is execting the commands well. Accepting arguments too. e.g #mkdir <name of the directory> The problem is that its not letting me change the directory i.e... (4 Replies)
Discussion started by: Phrozen Smoke
4 Replies

4. Shell Programming and Scripting

Can BASH execute commands on a remote server when the commands are embedded in shell

I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config. I am not sure if I can do this with BASH scripting. I have set up password less login by adding my public key to authorized_keys file, it works. I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies

5. AIX

HACMP: difference between 'cl' commands and 'cli' commands

Hi all, I'm new in this forum. I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli". The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory. I know that the first are called HACMP for AIX... (0 Replies)
Discussion started by: peppix
0 Replies

6. UNIX for Dummies Questions & Answers

help with some commands

Hi! i'd like from someone to explain me 'what is what' from these parts of code if it's possible.i'd like to understand them and their usage: 1) sed '3d' filename 2) sort –t: +0 -1 /etc/passwd and also this: tr ‘’ ‘ ‘ < filename thank you! (11 Replies)
Discussion started by: strawhatluffy
11 Replies

7. UNIX for Advanced & Expert Users

All my Commands GONE =( !!

Hi all, Im a newbie in Centos 5.8 What had i typed was "export PATH=/sbin/service" and now my command like ls, touch, mv, useradd, mysqldump, and more have gone.. anyone know how to solve it? (1 Reply)
Discussion started by: yjk2121
1 Replies

8. UNIX for Dummies Questions & Answers

Need help with certain commands

I'm trying to figure out certain commands for these steps. If you wish to discuss with me in real time, PM me your AIM or MSN, thanks. Here are the steps. Edit the readcal_final file Delete all of the lines that comprise the colandar portion of the memo Without leaving vi, open a new... (0 Replies)
Discussion started by: vgmaster9
0 Replies

9. Shell Programming and Scripting

Ls commands

So I need a way to list all files that contain 4 letters. Also separately I need to find a way to list all files with l or n as the third letter of the name. I need to use the ls command and/or grep/egrep. Any help would be a appreciated. (2 Replies)
Discussion started by: muttfacejohnson
2 Replies

10. Homework & Coursework Questions

What are the commands for this ?

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: If the user enters option 1, your program should display the list of entries in the current directory. For... (1 Reply)
Discussion started by: UniverseCloud
1 Replies
BMORE(1)						      General Commands Manual							  BMORE(1)

NAME
bmore - browse through a binary file SYNOPSIS
bmore [ -acdi ] [ -n lines ] [ -w cols ] [ +linenumber ] [ +/ASCII-pattern ] [ +Hex-pattern ] [ filename ... ] DESCRIPTION
more is a filter that displays the contents of a binary file on the terminal, one screenful at a time. It normally pauses after each screenful, and prints --More-- at the bottom of the screen. bmore provides a two-line overlap between screens for continuity. If bmore is reading from a file rather than a pipe, the percentage of characters displayed so far is also shown. bmore scrolls up to display one more screen line in response to a RETURN character; it displays another screenful in response to a SPACE character. Other commands are listed below. The screen is divided in three sections or panes: The byte offset (extreme left), the hex pane (middle), and an ascii pane (right) which shows as printable characters those bytes in the hex pane. On an 80 column terminal there will be sixteen hex values and their ASCII val- ues on each screen line. Note that (as one would expect) the first byte has the offset 0 (zero). bmore sets the terminal to noecho mode, so that the output can be continuous. Commands that you type do not normally show up on your ter- minal, except for the / , and ! commands. If the standard output is not a terminal, more acts just like cat(1V), except that a header is printed before each file in a series. OPTIONS
-a ASCII mode: no hex representation of the contents. Non printable characters are displayed as a dot (.) -c Clear before displaying. Redrawing the screen instead of scrolling. -d Display error messages rather than ringing the terminal bell if an unrecognized command is used. This is helpful for inexperienced users. -i Ignore case for searching. -n lines Displays the indicated number of lines in each screenful, rather than the default (the number of lines in the terminal screen less two). -w cols Display number of cols in each line. +linenumber Start up at linenumber. +/ASCII-pattern Start up at the line containing the regular expression pattern. Note: unlike editors, this construct should not end with a `/'. If it does, then the trailing slash is taken as a character in the search pattern. USAGE Commands The commands take effect immediately; it is not necessary to type a carriage return. Up to the time when the command character itself is given, the user may type the line kill character to cancel the numerical argument being formed. In addition, the user may type the erase character to redisplay the `--More--(xx%)' message. In the following commands, i is a numerical argument (1 by default). iSPACE Display another screenful, or i more lines if i is specified. iRETURN Display another line, or i more lines, if specified. i^D (CTRL-D) Display (scroll down) 11 more lines. i is given, the scroll size is set to i. id Same as ^D. iz Same as SPACE, except that i, if present, becomes the new default number of lines per screenful. is Skip i lines and then print a screenful. if Skip i screenfuls and then print a screenful. i^B (CTRL-B) Skip back i screenfuls and then print a screenful. b Same as ^B (CTRL-D). q Q Exit from more. = Display the current line number. v Drop into the bvi(1) editor at the current offset of the current file. w Drop into the bvi(1) editor at the current offset of the current file. Only the portion of the file displayed on the screen will be loaded. h Help. Give a description of all the more commands. i/pattern Search for the ith occurrence of the regular expression pattern. Display the screenful starting at the file position that con- tains the ith match for the regular expression ASCII-pattern, or the end of a pipe, whichever comes first. If bmore is display- ing a file and there is no such match, its position in the file remains unchanged. Regular expressions can be edited using erase and kill characters. Erasing back past the first column cancels the search command. ' Single quote. Go to the point from which the last search started. If no search has been performed in the current file, go to the beginning of the file. !command Invoke a shell to execute command. The characters % and !, when used within command are replaced with the current filename and the previous shell command, respectively. If there is no current filename, % is not expanded. Prepend a backslash to these char- acters to escape expansion. i:n Skip to the ith next filename given in the command line, or to the last filename in the list if i is out of range. i:p Skip to the ith previous filename given in the command line, or to the first filename if i is out of range. If given while more is positioned within a file, go to the beginning of the file. If more is reading from a pipe, more simply rings the terminal bell. :f Display the current filename and offset number. :q :Q Exit from bmore (same as q or Q ). . Dot. Repeat the previous command. FILES /etc/termcap terminal data base /usr/local/share/bmore.help help file SEE ALSO
bvi(1), termcap(5) 3 Jan 2004 BMORE(1)
All times are GMT -4. The time now is 02:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy