#!/bin/bash # remove extra tab characters to creat a consistent file format for seltag in "\t" "\t<\/actionvalue>" "\t\t" "\t\t<\/identity>" "\t\t" "\t\t<\/param>" "\t\t\t<" "<\/operationDB>" do # remove one tab to get to desired indentation find . -name "*.oprn" | sed -e's/ /\\ /g' | xargs sed -i -r "s/\t${seltag}/${seltag}/" #echo ${seltag} done