Search Results

Search: Posts Made By: rxg
8,462
Posted By neutronscott
[ should include -r for readable and -w for...
[ should include -r for readable and -w for writable.
8,462
Posted By Corona688
There's probably better ways in more advanced...
There's probably better ways in more advanced shells than a basic bourne, but:

if ! cat filename > /dev/null
then
echo "filename can't be read'
exit 1
fi
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 12:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy