bash - How to print a script's source in unix? -
i have custom script in 1 of $path folders. know plaintext python script , not compiled binary. there way print source?
i have tried whereis <scriptname>, doesn't return anything.
$>ls -lrt `echo $path | sed "s/:/\n /g"` | grep <scriptname> lrwxrwxrwx 1 root eng 30 oct 16 2011 <scriptname> -> ../depot/dcs-scripts/bin/<scriptname> what ../ mean in ../depot/dcs-scripts/bin/<scriptname>?
cat `which scriptname` usually trick
Comments
Post a Comment