I have some video files in
source/ to encode and I want the output to be saved in the local directory, therefore removing
source/ in the filename.
I accomplished this by using the following command in fish shell:
$ for file in source/*.mkv ffmpeg -i "$file" -c:v copy -c:a copy (echo "$file" | sed -e "s/source\///") end
Although, I find piping the output of
sed a bit rudimentary, is there a function that just processes the strings of local variables? Like a
sed but just for local variables or filenames.