Announcement

Collapse
No announcement yet.

Help with a script to modify text files

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with a script to modify text files

    Hi, I wanted to create a script to do simple RegExpression text replace of srt subtitle files.


    I wanted to use the for example the following command:
    Code:
    sed 's/<i>//g;s/<\/i>//g' file.srt > file_new.srt
    What I would like is that the script modifies all the *.srt files of a folder. By "modify" I mean replace the old file with the resulting one (I haven't been able to do that from the terminal using sed).

    Regards,
    Mguel

    PS: On windows I used SubtitleWorkshop which had regexp files for modifying the subtitles easily. I haven't been able to make it run using wine since it seems it depends on DirectX
Working...
X