#!/bin/bash sed -i 's/\\type{publication/\\type{publication}\\-\\type{/' "$1" sed -i 's/\\type{sourceAuthor},/\\type{source}\\-\\type{Au}\\-\\hbox{\\type{thor},}/' "$1"