Search:

Type: Posts; User: alanwalterthomas; Keyword(s):

Search: Search took 0.01 seconds.

  1. Re: Rename ogg files depending on stream type

    Found a solution:
    Replace the
    find ... | while read -r line; do with


    for line in **/*(.); do
    FILEBASENAME=${line%.*}
    ORIGINALEXT=${line##*.}
    EXTRACT=false
    if [ $ORIGINALEXT = "webm" ]...
  2. Re: Rename ogg files depending on stream type

    Thanks, I changed each $line to "$line", and added the test for an error with $?, but I'm still having problems.

    My script isn't generating any errors, but I did notice this after I added this...
  3. Re: Rename ogg files depending on stream type

    Thanks, the file utility (almost) does what I need.

    I read a few select sections of a bash manual and put together the following code: (warning: total shell script amateur)



    #!/bin/zsh...
  4. Rename ogg files depending on stream type

    I have many .ogg files in nested directories that contain both vorbis and opus streams. I need to change the extension of all files that in fact contain opus data to .opus. I need to do that because...
Results 1 to 4 of 4