try:
The first one works for blank lines made of a newline character only.
Thank you for answer.
'\t' doesn't work for some reason, too!
That what I try to figured out: why it could be?
Removing empty lines works fine.
The [ \t] was my original attempt to do that and after that I start to search for different way to patterning the tab and found those macros: <spc>,<tab>, but that does not work for me for some reason.
I perfectly removing all 'blank' line with
Any advices why the tab specifiers could doesn't work for me?
Old versions of sed don't recognize "\t" as a tab, type between the brackets a <space> followed by <Ctrl-v> <TAB> to delete the lines with spaces or/and tabs:
The blank lines have other non-printing characters - not tabs.
try
to see what other stuff is in there.
Thank you, jim: the 'od' is new for me and usefull command.
I have checked the file, but nothing extra is not found in the file
It seems our system grep and sed just old, as said Franklin52:
Quote:
Originally Posted by Franklin52
Old versions of sed don't recognize "\t" as a tab, type between the brackets a <space> followed by <Ctrl-v> <TAB> to delete the lines with spaces or/and tabs:
Regards
Thank you, Franclin52.
It works in the way you show.
So, I make a note for myself that our system do not know those macros and I need to use Ctrl/v for that.
Hello, I am trying to find a solution to problem that's proving to be beyond my newbie skills. The below files comes from a genetics study. File 1 describes a position on the genome and file 2 does the same but is formatted differently and has more information. I am trying to match all lines in... (5 Replies)
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)
I'm using OpenBSD 4.3 & ksh (pdksh) default shell.
I'm trying to use sed to insert a tab into a text file with no luck.
$ sed 's/SusanAppleton/Susan\o011Appleton/' myFile.txt
Susano011Appleton
$ sed 's/SusanAppleton/Susan\tAppleton/' myFile.txt
SusantAppletonI'm close to suicide here. Please... (9 Replies)
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)
I want to exclude (-v) blank records from a file before analysing it.
I know I can use '^]$' for spaces and tabs but how do you look for lines that have nothing (/n or line feed) ? (2 Replies)
I want to grep "xxx(tab)iii" but dunno the way to do it.
I've tried : grep "xxx\tiii" * , but it dont works.
Is there anyone that can help me? :) (3 Replies)