I should do a script with sed command to replace any extensions of a file with the extension .bak.
hello.txt -> hello.bak
How can I do? I'm trying from command line with
echo hello.txt | sed -e s/\.[0-9a-b]+$/\.bak
But it doesn't change anything.