I need to touch a file with an absolute file name such as: /opt/test/test.txt, but I\'m not sure if there is /opt/test existed on the system. So the code should similar with thi
Perl from command line,
perl -MFile::Basename -MFile::Path=make_path -e' make_path(dirname($_)), open(F, ">>", $_) for pop; ' /opt/test/test.txt