I have a file 'a.txt' which have a content:
How can i search for a string say "ML_" in the file and if it matches modify last 3 digit of that line with some random numbers using 'sed' command in bash script.
I am able to change the last 3 numbers to some fixed numbers with the command:
sed -i '/ML_/s/[0-9][0-9][0-9]$/012/' file_name
But not sure how to change with random numbers