Tag Info

Hot answers tagged

2

I'd like to add a solution for the Z shell, unfortunately I know almost nothing about fish, so that I could adapt this for fish syntax. Sorry! I define a funcion c: function c { echo $@ | bc } And I set an alias for c, so that no file globbing takes place (and I can omit the quotes around expressions especially including a star: alias c="noglob c" ...


2

I suspect it's based on the single/double quote positioning tripping up find. Typically I always use something like this in a script file (say conv.sh) for more complex operations: find . -type f -name "*.mp4" | while read FILE do ffmpeg -i "$FILE" -c:v copy -c:a libfaac -af "volume=23dB" "fix/$FILE" done Now run this file with debugging: bash -xv ...


1

I am presuming from your phrasing that you were expecting one result to be returned: # ls ?tc etc but you actually got several results. The question mark is a globbing character, as defined by: ? wild card. The ? character serves as a single-character "wild card" for filename expansion in globbing, as well as representing one character in an ...



Only top voted, non community-wiki answers of a minimum length are eligible