BASH

Binary to decimal

 

#! /bin/bash
D2B=({0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1})
echo $((10#${D2B[$1]}))

Perform a calculation in non-interactive mode:

calc -p '(145*5)'

Flac to MP3

Batch convert your flac files to mp3:


for i in *.flac; do ffmpeg -i "$i" "${i%%.*}.mp3" ; done

Paste

Combine two files, line by line, tab delimited

paste -d”\t” stardist.txt starname.txt