The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-08-2008
hungbp hungbp is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 6
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
number
blank1
number:number--->number:number
blank2
text1
.
textn
blankS
..and again...
.....
-----------
can do : remove blank1 and blank2 lines, blankS lines are stay !
thx

Last edited by hungbp; 02-08-2008 at 06:02 PM..