Given a shell script, is there an easy way to extract what files it manipulates explicitly (so not like concatenating some command and than eval-ing it)? E.g.
#!/bin/bash . /etc/someconfig.cfg cat /somedir/somefile.txt cp /otherdir/file1.txt /tmp/fileABC.txt rm -f ~/stupidfile.txt #EOF
Is there a command that would extract the explicit dependencies so that I don't have to parse the script or do it manually and get output like:
/etc/someconfig.cfg /somedir/somefile.txt /otherdir/file1.txt /tmp/fileABC.txt ~/stupidfile.txt