I'd like to populate a shell variable with the file contents of the file that follow the # (but leave the file as-is) from beginning of one single-line file
I tried
file=$(head -n1 $another_filename | sed 's/^#//')
but output is the same. I don't want to delete the whole line, just hash.