This repository contains some use useful scripts I've been creating.
git clone https://github.com/maxgonzaga/bash-scripts
cd bash-scripts
./snake file...
This scripts performs the following actions on each file it is given:
- Replace parenthesis, underscores, spaces, commas and periods with a single dash;
- Replace a lowercase letter followed by an uppercase letter with the same letters separated by a dash.
- Remove single quotes;
- Change the filename to lowercase;
- Replace characters with diacritics with the corresponding ASCII ones. If a character can not be represented in the ASCII set, it will be replaced with a similar looking character.
./geminus.sh <file1> <file2> <outfile>
Remove words found in file2
from file1
and save output to outfile
.