UNIX shell scripting tutorials
Determine if a file is readable by current Bourne shell script user
contributed by Rex on under Bourne shell scriptingA well contructed shell script, like any good program, should handle error conditions gracefully. Checking if a file is readable before attempting to read it allows a script to branch instead of abort or display an error message.
Determine if a file is writable by a Bourne script user
contributed by Rex on under Bourne shell scriptingFrom 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.
Determine if file exists in a Bourne/bash shell script
contributed by Rex on under Bourne shell scriptingSending multiple lines of input to a program
contributed by Rex on under UNIX shell scriptingUsing a ‘here document’ it is possible to send multiple lines of input to a program from a shell script.
RECENT POPULAR RECIPES
- Sending multiple lines of input to a program
- View our Top Tens
TECH-RECIPES BLOGS
- Symfony Propel 1.4: New Project Workflow
- quickie: video on adding 3G modem to a Thinkpad Tablet
- modding: adding 3G to my Lenovo Thinkpad Tablet
- quick look: Lenovo Thinkpad Tablet (Honeycomb) and Pen (pics)
- design: my geek lair
- How to Delete Your Twitter Account
- Flash Error May Slow Down OS X Lion
- Mass Effect: Cannot See Mouse Pointer





