![]() |
|||||||||||
|
#10
|
|||
|
|||
|
concise shell script examples
(The shell script code fragments below are untested since I don't have any AFP volumes, but people developing shell scripts might find the techniques useful.)
Here are some variations that I find a bit more natural for shell scripting: Code:
mount | awk '/^afp_/ {print $3}' | xargs -n 1 umount -f
Of course, if you really want to always unmount all AFP volumes, something like this might work, too: Code:
umount -Aft afp BTW, head -1 has the same result as sed -n '1p;1q', and is usually much easier to understand for those not versed in sed/ex/vi. |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Smart Update copying files that haven't been changed? | salparadi | General | 3 | 11-05-2006 11:40 AM |
| Copying newer files across volumes. | chip | General | 1 | 08-09-2006 08:07 PM |
| Long Hang While Copying | BackerUpper | General | 4 | 06-12-2006 08:26 AM |
| SuperDuper! Erasing Audio Files? | Emerson | General | 3 | 06-22-2005 01:41 PM |
| Smart update copying all files each time | fabius | General | 15 | 05-29-2005 09:29 PM |