For instance, if I have this as input:
F:\my\path\to\File.TXT
I want to get this as output
/f/my/path/to/File.TXT
This should work even if the path doesn't exist, so I can't simply call
cd $P && pwd -P
Edit: I'd like to avoid using sed and awk, since there are simpler commands to achieve this, like tr and Bash built-ins.