Within your .profile make sure that you have the $HISTFILE environment variable set and exported (see above) and one or both of these two possible lines:
Then you can use the keystroke sequence <esc>/k to present the last command typed for editing. Move backwards or forwards through the command history using the "-" or "+" keys respectively. If you find a command you want to edit, type "v" which will invoke "vi". Then after editing, use the usual ":wq!" to exit vi and the edited command will execute.
Tip: If you decide to not execute any command (edited or not), blank the command in vi (eg. the "dd" vi command) and then ":wq!".
Last edited by methyl; 07-22-2011 at 07:11 PM..
Reason: more typos than usual
Is there a way to slowly scroll the output of a file instead of page or cat ?
Instead of one page at a time, I would like to slowly scroll the displayed output of the file. (12 Replies)
on a AIX sys i have been trying to get the mouse scroll wheel to page the terminal for about 2 yrs now on aixterm. any ideas. the below syntax does not work in aixterm but does work in xterm.
------------------------- this does not work in aixterm but does work in xterm,, with a cat Xdefult |... (2 Replies)
I'm using top to view processes. But, I do not know how to scroll down the list to view what is not showed in the terminal window. Anyone know how to do this? (1 Reply)
Hi,
I need to come up with a site that will display all the records in the database, but one at a time.
Not sure how to go about it.
Please pour in your suggestions.
Thanks
---------- Post updated at 04:38 AM ---------- Previous update was at 12:52 AM ----------
Can... (3 Replies)
Hey All,
I generally login to the Solaris box using Putty. But when I read a man page, I am not being able to scroll line by line using traditional 'j' or 'k' keys.
Any idea about how can we scroll through line by line while reading a manage page over Putty (2 Replies)
In ksh is there a was to scroll thru all matching commands? For example I executed several commands over several days. Is there a way to scroll thru all the matching 'find' commands only that was executed?
No messing with the .history file. Anyway to do this from the command prompt? TIA. (3 Replies)
I don't have my SysV bible with me currently and I can't remember how to change the amount of lines visible in my shell. Currently I can only scroll back to see the last 100 lines of stdout.
Any help is greatly appreciated.
blessings,
Tony <>< (2 Replies)
this is kinda solved
Hi
I need to program an ordinary text field which scrolls to the right when it gets filled. It must be in Xaw3d. I cannot get the asciiTextWidget to do it.
Which resource do you need to set in asciiTextWidget to allow the widget to scroll to the right when typing text... (1 Reply)
The ad for UZoo disables scrolling. Very annoying (0 Replies)
Discussion started by: Unregistered
0 Replies
LEARN ABOUT NETBSD
sdiff
SDIFF(1) BSD General Commands Manual SDIFF(1)NAME
sdiff -- side-by-side diff
SYNOPSIS
sdiff [-abdilstW] [-I regexp] [-o outfile] [-w width] file1 file2
DESCRIPTION
sdiff displays two files side by side, with any differences between the two highlighted as follows: new lines are marked with '>'; deleted
lines are marked with '<'; and changed lines are marked with '|'.
sdiff can also be used to interactively merge two files, prompting at each set of differences. See the -o option for an explanation.
The options are:
-l Only print the left column for identical lines.
-o outfile
Interactively merge file1 and file2 into outfile. In this mode, the user is prompted for each set of differences. See EDITOR and
VISUAL, below, for details of which editor, if any, is invoked.
The commands are as follows:
l Choose left set of diffs.
r Choose right set of diffs.
s Silent mode - identical lines are not printed.
v Verbose mode - identical lines are printed.
e Start editing an empty file, which will be merged into outfile upon exiting the editor.
e l Start editing file with left set of diffs.
e r Start editing file with right set of diffs.
e b Start editing file with both sets of diffs.
q Quit sdiff.
-s Skip identical lines.
-w width
Print a maximum of width characters on each line. The default is 130 characters.
Options passed to diff(1) are:
-a Treat file1 and file2 as text files.
-b Ignore trailing blank spaces.
-d Minimize diff size.
-I regexp
Ignore line changes matching regexp. All lines in the change must match regexp for the change to be ignored.
-i Do a case-insensitive comparison.
-t Expand tabs to spaces.
-W Ignore all spaces (the -w flag is passed to diff(1)).
ENVIRONMENT
EDITOR, VISUAL
Specifies an editor to use with the -o option. If both EDITOR and VISUAL are set, VISUAL takes precedence. If neither EDITOR nor
VISUAL are set, the default is vi(1).
TMPDIR Specifies a directory for temporary files to be created. The default is /tmp.
SEE ALSO diff(1), diff3(1), vi(1), re_format(7)AUTHORS
sdiff was written from scratch for the public domain by Ray Lai <ray@cyth.net>.
CAVEATS
Although undocumented, sdiff supports all options supported by GNU sdiff. Some options require GNU diff.
Tabs are treated as anywhere from one to eight characters wide, depending on the current column. Terminals that treat tabs as eight charac-
ters wide will look best.
BUGS
sdiff may not work with binary data.
BSD February 21, 2007 BSD