This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import re | |
import sys | |
from tabulate import tabulate | |
comments_re = re.compile(r'/\*.*\/') | |
in_chain, eof = False, False | |
headers, table = [], [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Usage example: ./convmp3 *.wma | |
while [ ! $# -eq 0 ] | |
do | |
affix=`echo $1|perl -pe 's|(.*)(\..*?)$|\2|'` | |
echo $affix | |
inTmpFile=`cat /dev/urandom | strings -n 5 | head -n 1`$affix | |
outTmpFile=`cat /dev/urandom | sed 's/[^a-zA-Z0-9]//g' | strings -n 5 | head -n 1`.mp3 | |
ln -s "$1" $inTmpFile | |
outputFile=`echo $1 | perl -pe 's|(.*\.).*?$|\1mp3|'` |