home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX Power Tools

UNIX Power ToolsSearch this book
Previous: 4.2 A bin Directory for Your Programs and Scripts Chapter 4
Organizing Your Home Directory
Next: 4.4 Directories for Emacs Hacks
 

4.3 Organizing Nonexecutable Scripts

Most UNIX users put their own shell scripts and compiled binary programs in a subdirectory called bin (4.2 ) , within their home directory. But what about other kinds of scripts, which aren't executable, but which might be handy to re-use?

For example, I use sed (34.24 ) for many complex editing tasks. I could run sed from a shell script to make the whole command executable, but more often than not, I just use the runsed (34.3 ) script, which looks for a file in the current directory called sedscr .

I keep my various sed scripts in a subdirectory of my home directory called sedlib , and then simply copy or link (18.3 ) them to sedscr whenever I want to use them with runsed .

- TOR


Previous: 4.2 A bin Directory for Your Programs and Scripts UNIX Power Tools Next: 4.4 Directories for Emacs Hacks
4.2 A bin Directory for Your Programs and Scripts Book Index 4.4 Directories for Emacs Hacks

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System