For example:
hello1.jpg
hello2.jpg
hello3.jpg
I would like to edit it so that it is like this:
hello1.jpg 0
hello2.jpg 0
hello3.jpg 0
I have tried:
sed -i '/(hello*)/ s/$/ 0/' hello.txt
perl -ipe 's/$/ 0/ if /hello/' hello.txt
sed -i '/^hello*/ s/$/ 0/' hello.txt