29
submitted 1 week ago by merompetehla@lemmy.ml to c/linux@lemmy.ml

file title is an option present on mkvtoolnix (92.0 eyeglow on debian 12.11)

I could single open every file, remove the file title and save, but that's gonna take ages. almost 100 files.

you are viewing a single comment's thread
view the rest of the comments
[-] IsoKiero@sopuli.xyz 1 points 1 week ago

Someone with more experience on sed or awk should chime in, but out of memory something like this (which MOST LIKELY WONT WORK, verify it before running it on anything important):

find -name *mkv -exec sed -e's/file=.*/file=' > {}.changed \;

That, at least in theory, reads every .mkv file recursively in a current working directory, finds lines that contain "file=" and replace that with "file=" and stores the output to .changed.

[-] DaPorkchop_@lemmy.ml 2 points 1 week ago

I would be very hesitant to run sed on a bunch of files consisting primarily of highly compressed binary data.

this post was submitted on 29 May 2025
29 points (100.0% liked)

Linux

55009 readers
616 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS