09-16-2007
Use Ctrl-O to go back to an earlier cursor position.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need help for below scenario.I have a flat file which is having records seperated by delimiters which will represent each record for oracle table.My Control file will consider each line as one record for that table. Some of the lines are aligned in two/three lines so that records are... (4 Replies)
Discussion started by: kannansr621
4 Replies
2. Shell Programming and Scripting
Hi folks,
I've list of LDAP records in this format:
cat cmmac.export.tmp2
dn: deviceId=0a92746a54tbmd34b05758900131136a506,ou=devices,ou=customer,ou=nl,o=upc
cmmac: 00:13:11:36:a5:06
dn: deviceId=0a92746a62pbms4662299650015961cfa23,ou=devices,ou=customer,ou=nl,o=upc
cmmac:... (4 Replies)
Discussion started by: tomas.polak
4 Replies
3. UNIX for Dummies Questions & Answers
How would you do vim copy line and paste at the beginning, middle, and end of another line. I know yy copies the whole line and p pastes the whole line, but on its own separate line. Sometimes I would like to copy a line to the beginning, middle, or end of another line. I would think this would be... (3 Replies)
Discussion started by: cokedude
3 Replies
4. Shell Programming and Scripting
I am trying to delete lines in archived Apache httpd logs
Each line has the pattern:
<ip-address> - - <date-time> <document-request-URL> <http-response> <size-of-req'd-doc> <referring-document-URL>
This pattern is shown in the example of 6 lines from the log in the code box below. These 6... (1 Reply)
Discussion started by: Proteomist
1 Replies
5. Shell Programming and Scripting
I want to remove commands having no output. In below text file.
bash-3.2$ cat abc_do_it.txt
grpg10so>show trunk group all status
grpg11so>show trunk group all status
grpg12so>show trunk group all status
GCPKNYAIGT73IMO 1440 1345 0 0 94 0 0 INSERVICE 93% 0%... (4 Replies)
Discussion started by: Raza Ali
4 Replies
6. UNIX for Dummies Questions & Answers
awk 'BEGIN{FS = "Ç"}
NR == 1 {p = $0; next}
NF > 1 {print p; p = $0}
NF <= 1 {p = (p " " $0)}
END {print p}' input.txt > output.txt
This is what the input data file looks like with broken lines
Code:
29863 Ç890000000 Ç543209911 ÇCHNGOHG
Ç000000001 Ç055 ... (4 Replies)
Discussion started by: cumeh1624
4 Replies
7. UNIX for Advanced & Expert Users
Hi ,
i have a file with data as below.This is same file. But actual file contains to many rows.
i want to search for a string "Field 039 00" and delete that line and previous 3 lines in that file.. Can some body suggested me how can i do using either sed or awk command ?
Field 004... (7 Replies)
Discussion started by: vadlamudy
7 Replies
8. Shell Programming and Scripting
I have a shell script that looks something like the following:
mysql -uroot db1 < db1.sql
mysql -uroot db2 < db2.sql
mysql -uroot db3 < db3.sql
mysql -uroot db4 < db4.sql
....
different db names in more than 160 lines.
I want to run this script with nohup and have a status later.
So,... (6 Replies)
Discussion started by: MKH
6 Replies
9. Shell Programming and Scripting
Hello,
I have below format log file,
Comparing csv_converted_files/2201/9747.1012H67126.5077292103609547345.csv and csv_converted_files/22019/97447.1012H67126.5077292103609547345.csv
Comparing csv_converted_files/2559/9447.1012H67126.5077292103609547345.csv and... (6 Replies)
Discussion started by: arvindshukla81
6 Replies
10. Shell Programming and Scripting
Hi,
i have a file with multiple entries. After some tests with sed i managed to get the file output as follows:
lsn=X-LINK-IN0,apc=661:0,state=avail,avail/links=1/1,
00,2110597,2094790,0,81,529,75649011,56435363,
lsn=TM1ITP1-AM1ITP1-LS,apc=500:0,state=avail,avail/links=1/1,... (5 Replies)
Discussion started by: nms
5 Replies
LEARN ABOUT DEBIAN
diakonos
diakonos(1) diakonos diakonos(1)
NAME
diakonos - a customizable, usable console-based text editor
SYNOPSIS
diakonos [files]
Basic Commands
Following are some of the most common commands and their default key bindings. Not all commands are listed here. For a comprehensive list-
ing, see the configuration file.
Movement
Arrow keys Cursor movement
Home, End
Move cursor to beginning or end of current line
Page Up, Page Down
Pitch buffer view by one screenful of text
Alt-Up, Alt-Down
Scroll up, down
Editor Control
Ctrl-Q Quit
F1 List key bindings
F12 Edit user's configuration file
Alt-M Start/stop macro recording
F4 Play macro
F6 Repeat last command
File/Buffer Control
Ctrl-O Open a file
Ctrl-S Save current buffer
Alt-S Save current buffer to specific filename
Ctrl-W Close current buffer
Ctrl-N Create new empty buffer
Alt-Shift-T
Specify buffer content type
Alt-1 to Alt-9
Switch among first 9 buffers
Alt-minus, Alt-=
Switch buffers
Ctrl-Z Undo
Ctrl-Y Redo
Clipboard
Ctrl-space Anchor selection (like emacs)
Ctrl-C Copy selection to clipboard
Ctrl-X Copy selection to clipboard and delete (i.e. cut)
Ctrl-V Paste clipboard text
Alt-U Unselect (stop selecting)
Ctrl-K Cut current line (can collect multiple lines)
Searching
Ctrl-F Find
Ctrl-Alt-F
Find upwards
F3 Find again
Shift-F3
Find again upwards
Ctrl-R Search and replace
Ctrl-Alt-U
Clear match highlight
FURTHER INFORMATION
For more information on Diakonos see: http://purepistos.net/diakonos/
http://wiki.purepistos.net/doku.php?id=Diakonos:Getting-Started
http://wiki.purepistos.net/doku.php?id=Diakonos:Tips-and-Tricks
AUTHOR
Diakonos is by Pistos Christou
This package is maintained by Ralph Amissah
0.8.12 2010-02-18 diakonos(1)