[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gcmd-usr] Passing multiple file pathes to shell scripts
From: |
mi |
Subject: |
Re: [gcmd-usr] Passing multiple file pathes to shell scripts |
Date: |
Tue, 12 Jul 2022 17:04:12 +0200 |
thx
I still need some sed magic to convert this into a list with ending newlines \n
and whitespace as $@ list seperator is a bit unfortunate here.
It seems to be a little complicated when we have to deal with whitespaced
filenames. Right now, i 'sed' the filetype suffix (like .mp4) but i don't want
to assume it's always 3 chars or even always there at all. For example, there
are .ts videos, or .ps files.
Does anyone know a safe and simple (!) method to convert $@ into seperate lines
?
It would be nice if gcmd could just spit it out like this, with a new %
expansion ^^