Tried to improve it by adding headers:
It can be enhanced by checking the file permissions and setting those too, instead of the hardcoded 600#!/bin/sh PATHFILE=$1 SHORTFILE=`basename "$PATHFILE"` perl -i.orig -ple 'BEGIN{$/=undef} $_= "begin 600 $ENV{SHORTFILE}\n". +(pack 'u', $_)."`\nend" if $_' $1
In reply to Re^2: OT: What happened to uuencode?
by Anonymous Monk
in thread OT: What happened to uuencode?
by kleucht
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |