¿How can i remove blank lines between all lines in a long text file?
Example
WrongFile.txt :
Line 1
Line 2
Line 3
CorrectFile.txt :
Line 1
Line 2
Line 3
Thanks in advance
:confused: (4 Replies)
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)
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)
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)
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)
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)
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)
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)
I have a text file which has blank lines. I want them to be removed before upload it to DB using SQL *Loader. Below is the command line, i use to remove blank lines.
sed '/^ *$/d' /loc/test.txt
If i use the below command to replace the file after removing the blank lines, it replace the... (6 Replies)
Hi,
Which option is used to remove blank lines in VI (AIX). ?
Regards,
Siva (6 Replies)
Discussion started by: ksgnathan
6 Replies
LEARN ABOUT NETBSD
scroll
CURSES_SCROLL(3) BSD Library Functions Manual CURSES_SCROLL(3)NAME
curses_scroll, scrl, wscrl scroll, scrollok, setscrreg, wsetscrreg -- curses window scrolling routines
LIBRARY
Curses Library (libcurses, -lcurses)
SYNOPSIS
#include <curses.h>
int
scrl(int n);
int
wscrl(WINDOW *win, int n);
int
scroll(WINDOW *win);
int
scrollok(WINDOW *win, boolf flag);
int
setscrreg(int top, int bottom);
int
wsetscrreg(WINDOW *win, int top, int bottom);
DESCRIPTION
These functions scroll areas on stdscr or on the specified window.
The scrl() function scrolls stdscr by n lines. If n is positive then then stdscr is scrolled up. n lines are lost from the top of stdscr
and n blank lines are inserted at the bottom. If n is negative then stdscr is scrolled down. n blank lines are inserted at the top of
stdscr and n lines are lost from the bottom.
The wscrl() function is the same as the scrl() function, excepting that it scrolls the window specified by win.
The scroll() function scrolls the window win up by one line.
The scrolling behaviour of a window can be controlled by using the scrollok() function. If the flag argument is TRUE then a line wrap at the
bottom of the window will cause the window to be scrolled up one line, if flag is FALSE then lines that would force a scroll will be trun-
cated.
The setscrreg() function sets up a software scrolling region on stdscr which will define a region of the screen that will be scrolled. The
scrolling of this region is also controlled by the scrollok() function.
The wsetscrreg() function does the same as the setscrreg() function, except that the scrolling region is set on the window specified by win.
If a scrolling region has been set with the setscrreg() or wsetscrreg() functions and the current cursor position is inside the scrolling
region, then only the area inside the scrolling region is scrolled.
RETURN VALUES
Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following
values:
OK The function completed successfully.
ERR An error occurred in the function.
SEE ALSO curses_deleteln(3), curses_insdelln(3), curses_insertln(3)STANDARDS
The NetBSD Curses library complies with the X/Open Curses specification, part of the Single Unix Specification.
HISTORY
The Curses package appeared in 4.0BSD.
BSD August 12, 2002 BSD