Sponsored Content
Full Discussion: Remove blank lines
Top Forums UNIX for Dummies Questions & Answers Remove blank lines Post 82070 by Ygor on Saturday 27th of August 2005 06:41:53 AM
Old 08-27-2005
awk NF WrongFile.txt > CorrectFile.txt
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

remove blank lines in *.srt file :)

Hi all, I use translate web to get subtitle file in my langues . But in output file have bad blank lines . I need scrip (i use debian ) to remove this blank lines . szintax of my bad *.srt file : ------ number blank1 number:number ---> number:number blank2 text1 . textn blankS... (10 Replies)
Discussion started by: hungbp
10 Replies

2. UNIX for Advanced & Expert Users

How to Remove the unwanted Blank Lines

I have a file with the below data, i would like to remove the end blank lines with no data. I used the below commands but could not able to succeed, could you please shed some light. Commands Used: sed '/^$/d' input.txt > output.txt grep -v '^$' input.txt > output.txt input.txt file... (5 Replies)
Discussion started by: Ariean
5 Replies

3. Shell Programming and Scripting

remove blank lines

I have joined 2 files. Join command worked fine. but the result showing extra blank lines. I tried to remove blank spaces by using awk (-- -42 RS= ORS="\n\n" file.txt) and sed (sed '/^ *$/d' file.txt)commands but didn't remove any Any suggestions plz:D 123 tab ....... ......tab .......234... (3 Replies)
Discussion started by: repinementer
3 Replies

4. Shell Programming and Scripting

Can't remove blank lines from a file

Hi Guys, I have been trying to remove blank lines from a file with no success. I tried using all the following options on the file: tr -s '\n' < abc.txt grep -v "^$" abc.txt sed '/^$/d' abc.txt sed '/./!d' abc.txt awk '/./' abc.txt The file is a text file. (11 Replies)
Discussion started by: npatwardhan
11 Replies

5. Shell Programming and Scripting

Remove blank lines

I really hope someone can help me with this. I have several php files from a forum that I run, that now for some reason have blank lines after every line. Is there an easy way to make a script that does the following: * If there are consecutive blank lines, delete all of them except one. * If... (9 Replies)
Discussion started by: KidCactus
9 Replies

6. Shell Programming and Scripting

remove blank lines and merge lines in shell

Hi, I'm not a expert in shell programming, so i've come here to take help from u gurus. I'm trying to tailor a csv file that i got to make it work for the LOAD FROM command. I've a datatable csv of the below format - --in file format xx,xx,xx ,xx , , , , ,,xx, xxxx,, ,, xxx,... (11 Replies)
Discussion started by: dvah
11 Replies

7. Shell Programming and Scripting

How to remove blank lines

Hi, I am facing a problem related to removing blank lines from a text document. Input Error 17-05-2011 11:01:15 VisualSVN Server 2.1 1001 The following information was included with the event: line3 line4 Error 17-05-2011 11:00:25 VisualSVN Server 2.1 ... (13 Replies)
Discussion started by: mayursingru
13 Replies

8. UNIX and Linux Applications

remove all blank lines

When I 'vi' my test file I see some blank lines. However once I do :set list to display hidden characters, I see the empty lines literally like this: ^I$ How do I remove them? I cannot find a regex to match them. (3 Replies)
Discussion started by: alexsuv
3 Replies

9. Shell Programming and Scripting

Remove Blank lines in VI

Hi, Which option is used to remove blank lines in VI (AIX). ? Regards, Siva (6 Replies)
Discussion started by: ksgnathan
6 Replies

10. UNIX for Dummies Questions & Answers

Remove blank lines using cat command

plz help me to figure it out how i remove empty or blank files using cat command. i will be very thankful if u send me this answer... thanks (3 Replies)
Discussion started by: mushfiks1
3 Replies
lines(3U)						    InterViews Reference Manual 						 lines(3U)

NAME
Point, Line, MultiLine, S_MultiLine, SF_MultiLine - structured graphics classes for points, lines, and open polygons SYNOPSIS
#include <Unidraw/Graphic/lines.h> DESCRIPTION
Point and Line are subclasses of Graphic that draw a point and a line, respectively. MultiLine is a Vertices subclass that serves as an abstract base class for open polygons: S_MultiLine is a MultiLine subclass for stroked open polygons, while SF_MultiLine is a stroked- filled open polygon. Point, Line, and S_MultiLine store a PSBrush, while SF_MultiLine also stores a PSPattern. POINT PUBLIC OPERATIONS
Point(Coord x, Cord y, Graphic* = nil) Construct a Point object, optionally supplying a graphic from which to obtain an initial set of graphics state. void GetOriginal(Coord&, Coord&) Return the coordinates supplied in the constructor. LINE PUBLIC OPERATIONS
Line(Coord x0, Cord y0, Coord x1, Coord y1, Graphic* = nil) Construct a Line object, optionally supplying a graphic from which to obtain an initial set of graphics state. void GetOriginal(Coord& x0, Coord& y0, Coord& x1, Coord& y1) Return the line's endpoints as supplied in the constructor. MULTILINE PROTECTED OPERATIONS
MultiLine(Coord* x, Coord* y, int count, Graphic* = nil) MultiLine's constructor is protected to prevent instantiation of the abstract base class. The parameters are passed directly to the Vertices constructor. S_MULTILINE PUBLIC OPERATIONS S_MultiLine(Coord* x, Coord* y, int count, Graphic* = nil) Construct an S_MultiLine object, optionally supplying a graphic from which to obtain an initial set of graphics state. SF_MULTILINE PUBLIC OPERATIONS SF_MultiLine(Coord* x, Coord* y, int count, Graphic* = nil) Construct an SF_MultiLine object, optionally supplying a graphic from which to obtain an initial set of graphics state. SEE ALSO
Graphic(3U), Vertices(3U), pspaint(3U) Unidraw 2 February 1991 lines(3U)
All times are GMT -4. The time now is 03:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy