4.3 Organizing Nonexecutable ScriptsMost 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 . - |
|