My input file contains some series of commands for a number for eg.
13287
13288
13289
I want the following output in all the file.
13281
13282
13283
I am using the following command saved in a script file as I pass the first four digits as argument in the script file.
#!/bin/bash
cat $1_final.txt | tr "$17" "$11" > $1.tmp
Instead of the desired output I am getting the following output. I have checked again the argument passed it 1328 else it will not be able to get the file because the file in the directory is 1328_final.txt
13221
Where I am doing this wrong?