VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Hi, and however ok.

    I have a .txt source like this

    Code:
    
    file 'C:\Users\Administrator\Desktop\DJI 0054.MOV'
    I need to remove the 2 first blank lines to get

    Code:
    file 'C:\Users\Administrator\Desktop\DJI 0054.MOV'
    the source could be also

    Code:
    file 'C:\Users\Administrator\Desktop\DJI 0054.MOV'
    or

    Code:
    
    
    
    file 'C:\Users\Administrator\Desktop\DJI 0054.MOV'
    but in every case in need to get


    Code:
    file 'C:\Users\Administrator\Desktop\DJI 0054.MOV'
    is it possible? thanks
    Quote Quote  
  2. Get Notepad+ and google for Regular Expressions.
    Quote Quote  
  3. Anonymous19484
    Guest
    You do realize that .mov aint text right? and if it is text it shouldn't have a mov extension

    Edit: i misunderstand, it is about blank lines in your examples
    So yeah do what @Quint said
    Last edited by Anonymous19484; 9th Aug 2022 at 08:37.
    Quote Quote  
  4. Code:
    sed -i "/^$/d"  C:\Users\Administrator\Desktop\filename.txt
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!