Title: Determine if a file is writable by a Bourne script user Post by: Mark David on March 16, 2007, 01:36:21 PM Determine if a file is writable by a Bourne script user
From a Bourne shell script (sh, ksh, bash, ...), it is possible to test if a file exists and is writable by the user running the script. Code: if [ -w testfile ] |