I have this in file.txt
: DISK: [01/08]
, I want to replace the 01
with another variable. I want it with wildcard because there are always other numbers
new=05
sed -i "s/DISK: [**/08]/DISK: [$new/08]/" file.txt
error is this
sed: -e expression #1, char 29: unknown option to `s'