12-05-2001
thanks wizard,
It works for words.
I need to do the same with lines.
Could I have more info on the different options on this?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello everybody,
My question is: how to add /tmp/work at the end of line in vi editor.
my file looks like:
cp file1
cp file2
cp file3
****
I need to add " /tmp/work" at the end of each line.
I tried this
:%s/$/" /tmp/work"
and this
:%s/$/\ /tmp/work\/
but it does not work. (2 Replies)
Discussion started by: billy5
2 Replies
2. HP-UX
I'd like to find some editor for HP-UX, something like notepad, but not VI editor. Can someone have some ideas which one?
thx (6 Replies)
Discussion started by: diamond
6 Replies
3. UNIX for Advanced & Expert Users
Hi,
how can I add at the begining and at the end of all of the lines of my text file in VI editor ? Many thanks before.
for exemple if in my file i have
line 1
line 2
I want to have :
start line 1 end
start line 2 end (3 Replies)
Discussion started by: alain123456
3 Replies
4. HP-UX
I am new in hp ux and I want work with vi editor, but in hp ux vi editor the backspaes and del keys doesn't work.
how can I enable them.
thanks (3 Replies)
Discussion started by: hkoolivand
3 Replies
5. 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
6. 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
7. 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
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. Shell Programming and Scripting
Hello All,
Need one Help for one issue.
I am using a French Keyboard, so @ sign is on key 0 and i have to use right Alt + 0 to print it.
It is working everywhere but not inside Vi editor. I can type @ in shell, in notepad. But inside Vi editor it is not working, another problem is that if... (2 Replies)
Discussion started by: yadavricky
2 Replies
10. Open Source
I was looking through the topics and I wasn't sure if this was the best place to post this question:
I was wondering, out of curiosity, which software everyone was using to code their scripts in. I do mostly sh/ksh and my favorite has always been EditPlus because it is small, fast, yet powerful.... (409 Replies)
Discussion started by: yongho
409 Replies
LEARN ABOUT DEBIAN
whowatch
WHOWATCH(1) General Commands Manual WHOWATCH(1)
NAME
whowatch - console, interactive, process and users monitoring tool.
DESCRIPTION
Whowatch is an console, interactive users and process monitoring tool. It displays information about the users currently logged on to the
machine, in real-time. Besides standard informations (login name, tty, host, user's process), the type of the connection (ie. telnet or
ssh) is shown. Display of users command line can be switch to tty idle time. Certain user can be selected and his processes tree may be
viewed as well as tree of all system processes. Tree may be displayed with additional column that shows owner of each process. In the
process tree mode SIGINT and SIGKILL signals can be sent to the selected process. Killing processes is just as simple and fun as deleting
lines on the screen.
Whowatch has no command line options or configuration file. All actions are performed in real time by pressing following keys:
Users list mode:
'up' 'down'
cursor movement
'i' toggle between user command line and idle time
'c' full command line on/off. Disabling full command line can save CPU time. It can give you also some additional information about
process executable.
'enter'
view selected user's processes tree.
't' all system processes (init tree)
Tree mode:
'up' 'down'
cursor movement
'enter'
go back to users list
'o' show processes owners
'c' full command line on/off. Disabling full command line can save CPU time. It can give you also some additional information about
process executable.
'Ctrl-I'
send INT signal to selected process
'Ctrl-K'
send KILL signal to selected process
PLUGINS
Whowatch has ability to load plugin during program run. Plugin prints information inside details window. Plugins gives flexibility: if
some specific information about process, user or system is needed then separate program could be written to obtain such information. Since
there are three kinds of deatils window (process, user and system) maximum three plugins can be loaded. Whowatch has very simple API to
write plugins.
FILES
Program reads /var/log/wtmp, /var/run/utmp. Under Linux program also reads files from /proc directory. Without read access to these files
whowatch funcionality will be limited or program will not even start.
SEE ALSO
finger(1) ps(1), pstree(1), top(1), w(1), lsof(8), kill(1) killall(1)
BUGS
Because lack of ut_pid in utmp and wtmp structures in *BSD systems, program tries to obtain pid of a login shell by analizing processes
controlling terminal and processes names. Under some conditions it may lead to incorrect results ie. there will be incorrect processes tree
associated with user's session.
AUTHOR
Michal Suszycki <mike@wizard.ae.krakow.pl>,
http://wizard.ae.krakow.pl/~mike
Tree functions written by Jan Bobrowski <jb@wizard.ae.krakow.pl>,
http://wizard.ae.krakow.pl/~jb
27 Feb 2000 WHOWATCH(1)