# Translate from Shoebox format into one with percent signs instead of backslashes # since backslashes are such a pain with UNIX tools. { gsub(/\015/,""); #Delete carriage returns in case this file is coming from Windows. # gsub(/\015/,"\012"); #Convert carriage returns to newlines. (For Mac files.) gsub(/\\/,"%"); #Globally substitute % for backslash. printf("%s\n",$0); }