Sponsored Content
Full Discussion: sed imbed a tab
Top Forums Shell Programming and Scripting sed imbed a tab Post 302212174 by Annihilannic on Sunday 6th of July 2008 07:32:39 PM
Old 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

sed: how to insert tab?

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

why the <tab> could be not recognized in grep and sed?

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

Tab spaces with sed

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

how to replace new line ( \n ) with space or Tab in Sed

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

Conditional tab replacement sed/awk

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

sed newline to tab ,problem

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

Using sed on 1st column of tab delimited file

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

How to remove tab space and new line from a file using sed?

i am using the default sed package that comes with solaris. (11 Replies)
Discussion started by: chidori
11 Replies

9. Shell Programming and Scripting

Delete string between 3rd tab and first pattern with SED

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

SED - Unable to replace with <tab>

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
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)
All times are GMT -4. The time now is 08:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy