It seems yhat my mail didn't get through, so I resend it here:

I do not know if I'm all out off road here, but I were going to try to
read a .nfo-file inside lftp. It was a hell of a job. perhaps there is
an better way (the request is comming...)
My solution was to create a external script containing only:

    #!/bin/bash
    echo "cat $1 | recode cp437..utf-8 | less"

and there inside lftp call it like:

    alias wnfo "command source -e ~/.lftp/wnfo.sh"

What I want is a way to encapsulate it more like a function, instead
of be forced to call an external bougus-shell script that only echo,
perhaps like:

    function wnfo { cat $1 | recode cp437..utf-8 | less }


Another thing I would like to have is an option to reverse order in
ls, like when sorting on dates, I usualy want to see the latest
editied file at bottom so I won't need to scroll up.

/Carl

Reply via email to