I have a shell script that's executing a sed command. Upon variable expansion, it quotes the filename.
sed -i "$3d" $filename
sed -i 1d '~/file'
as shown by the debugging flag
When ran, this produces
sed: can't read ~/file: No such file or directory
When I try to run the command manually, the same thing happens, unless I remove the quotes.
sed -i 1d ~/file
Running without quotes produces the desired output.