I am writing a bash script in which I want to replace the first digit if 0 with 92 and if there is no 0 and 92 append 92 in front of that digit and save it in a new file.
Any help would be appreciated.
Below is my bash script:
scrap.sh
#!/bin/bash
file=test.txt
while IFS=, read -r field1
do
echo $field1 | awk '$0*=1'>> test2.txt
done < $file
test.txt
03333333333
3848123249
expected output
923333333333
923848123249