07-06-2008
Ctrl-V means to interpret the next character entered literally, i.e. not attempt to perform any special functions such as tab-completion.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm using the following to insert lines into file:
sed ${rowNr}i'\
first row\
second row\
third row\
' file.txt
How can I add tab in front of each added line? "\t" or actual TAB does not seem to work?
Thanks! (2 Replies)
Discussion started by: Juha
2 Replies
2. UNIX for Dummies Questions & Answers
I try to remove empty lines from file and use next:
> cat fl.dat|grep -v '^*$'
or
cat fl.dat|sed '/^*$/d'
'grep' does not removes lines with tabs, 'sed' - lines with <tab> and with <spc>
Why it could be?
Is there any option/env-var should I check?
Thank you
Alex (5 Replies)
Discussion started by: alex_5161
5 Replies
3. UNIX for Dummies Questions & Answers
Anyone know how to represent tabs when doing subsitutions in sed? I have tried using \t but it doesn't seem to work. (11 Replies)
Discussion started by: handak9
11 Replies
4. Shell Programming and Scripting
Hi,
how to replace new line with tab in sed ...
i used
sed -e 's/\n/\t/g' <filename >
but its not working (1 Reply)
Discussion started by: mail2sant
1 Replies
5. Shell Programming and Scripting
Hi
I am struggling to find a solutions to this problem:
I have a directory full of files and I wish to:
read each line of each file and
if any one line in those files is longer than 72 characters I want to replace any tab characters with a space character.
Ive been... (3 Replies)
Discussion started by: benackland
3 Replies
6. Shell Programming and Scripting
Input:
gstreamer-plugins-good
gstreamer-plugins-bad
gstreamer-plugins-ugly
sed 's/\n/\t/g' infile
It's not working.
Output should be:
gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly (5 Replies)
Discussion started by: cola
5 Replies
7. Shell Programming and Scripting
Hi all,
I'm new to Unix and work primarily in bioinformatics. I am in need of a script which will allow me to replace "1" with "chr1" in only the first column of a file which looks like such:
1 10327 rs112750067 T C . PASS ASP;RSPOS=10327;... (4 Replies)
Discussion started by: Hkins552
4 Replies
8. Shell Programming and Scripting
i am using the default sed package that comes with solaris. (11 Replies)
Discussion started by: chidori
11 Replies
9. Shell Programming and Scripting
Hello,
I have this sentence :Pattern1 Pattern2 Pattern3 Pattern4-which-contains-HELLO-string-and-other-stuff-and-second-HELLO-and-third-HELLO
I want to delete everything between the 3rd tab (\t) and the FIRST pattern "HELLO" of the line.
Result expected is : Pattern1 ... (7 Replies)
Discussion started by: theclem35
7 Replies
10. Shell Programming and Scripting
Hello All,
I have this file with the below contents
1|2|3|4|
this|that|which|what|
when I use, sed 's/|/\t/g' infile
I get,
1t2t3t4t
thistthattwhichtwhatt
Why is this?? :confused: :wall: (13 Replies)
Discussion started by: PikK45
13 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)