Simon 'corecode' Schubert wrote:
Bill Hacker wrote:
After all, if use of find or xargs accomplishes the task w/o ill effects on memory, then what prevents creation of a compiled utility that has that same sort of 'flavor' of approach - just hard-wired from the get-go?
    It would have to be a shell builtin
An assumption based on legacy.

rm() {
        args=rm
        while [ "$#" -lt 0 ]
        do
                case "$1" in
                -*) args="$args $1"; shift ;;
                *) break ;;
                esac
        done

        echo "$@" | xargs $args
}


Thanks,

I (think) I understand what it is expected to do, but have missed something, as a cut n' paste hasn't (done that) yet.

Not in ksh anyway.

Example of syntax 'in use'? i.e. what to feed it...

Bill

Reply via email to