can't figure out a way to delete multiple empty lines but keep single empty lines in a file, file is like this
#cat file
1
2
3
4
5
6
-
What I want is
1
2 (6 Replies)
I am attempting to delete blank lines in my file and I've used this command:
sed '/^$/d' $file > $file.fixed
all this seems to do is copy the file and not delete the blank lines located at the end of the file. Any assistance would be greatly appreciated. (3 Replies)
I have a file which contains blocks of text - each block is a multi-lines text delimited by blank lines eg.
<blank line>
several lines of text
...
pattern found on this line
several more lines of text
...
<blank line>
How do you delete the block of text (including the blank lines) when... (17 Replies)
Hi,
I am using BASH. How can I remove any lines in a text file that are either blank or begin with a # (ie. comments)? Thanks in advance.
Mike (3 Replies)
Hi,
I want to use diff to compare two files in a Perl file. But one of the files has some blank lines at the end. So I want to delete the blank lines from the file firstly and then use diff to compare them. But I dont know how to delete the blank lines from the files. Meanwhile, the system is... (5 Replies)
Hi,
Consider a file named "testfile"
The contents of file are as below
first line added for test
second line added for test
third line added for test
fourth line added for test
fifth line added for test (5 Replies)
Hi All,
I have a file.txt which seems like having three lines.
wc -l file.txt
3 file.txt
In fact, once it is open in text editor, this file has four lines where the last line is empty. how can i delete this last empty line of the file.txt? I tried the codes below so far but they... (6 Replies)
Hi All,
I have a file and I need to delete the lines that are blank and is starting with some characters below. Something like below:
Regular Ascii File:
Line1: AGODA1 BUSAN||SK Lord Beach 4/6/2012 4/7/2012 68060
Line2: AGODA2 BUSAN||SK Beach Hotel 4/6/2012 4/7/2012 610200
Line3: ... (4 Replies)
Hi Gurus,
Somebody can say me how to delete blank spaces and blank lines in a file unix, please.
Thank you for advanced. (10 Replies)
Discussion started by: systemoper
10 Replies
LEARN ABOUT DEBIAN
fahash
FAHASH(1) User Commands FAHASH(1)NAME
fahash - sequence hash builder for reverse e-PCR
SYNOPSIS
fahash [-hV] -b hash-file [-w wdsize] [-f period] [-F fragment_min,fragment_max] [-k] [-c cachesize] [-v 1|2] famap-file ...
fahash [-hV] -T hash-file [-o outfile]
DESCRIPTION
The program fahash is part of the e-PCR suite and is used to build hash-files, and output word usage statistics for reverse e-PCR searches.
OPTIONS -b hash-file
Build hash tables (hash-file) from sequence files,
-T hash-file
Print word usage statistics for hash-file
-o outfile
Write output to file `outfile'
build-options:
-w wordsize
Set word size when building hash tables
-f period
Set discontiguity when building hash tables
-k Skip repeats when building hash-file
-F min,max
Set watermarks for fragment size (in Mb) (version 1 only)
-c cachesize
Set cache size (version 2 only)
-v ver Use format version (1|2, 2 is default)
EXAMPLE
famap -tN -b genome.famap org/chr_*.fa
fahash -b genome.hash -w 12 -f3 ${PWD}/genome.famap
re-PCR -s genome.hash -n1 -g1 ACTATTGATGATGA AGGTAGATGTTTTT 120-200
See famap(1) and re-pcr(1)SEE ALSO
/usr/share/doc/ncbi-epcr/README.txt
bioperl(1), e-pcr(1), famap(1) and re-pcr(1)AUTHORS
This manual page was written by Andreas Tille <tille@debian.org> for the Debian system (but may be used by others). Permission is granted
to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by
the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
Reverse e-PCR: sequence hash builder version 2.3.9 April 2008 FAHASH(1)