Skip to content

Instantly share code, notes, and snippets.

@helix84
Created August 13, 2013 09:01
Show Gist options
  • Save helix84/6219252 to your computer and use it in GitHub Desktop.
Save helix84/6219252 to your computer and use it in GitHub Desktop.
copy an ID3v1 tag from input.mp3 to output.mp3 (which has no tag) * find out the size of input.mp3 * subtract 128 bytes * dd the last 128 bytes and append them to output.mp3
i=input.mp3; dd bs=1 count=128 if=$i of=output.mp3 skip=$((`ls -l $i | cut -d ' ' -f 5` - 128)) oflag=append conv=notrunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment