version problem in bash

Página superior
Adjuntos:
Obtener este mensaje como un correo
+ (text/plain)
Eliminar este mensaje
Responder a este mensaje
Autor: Jeremy C. Reed
Fecha:  
Asunto: version problem in bash
On Thu, 23 Oct 2003, Nathan England wrote:

> A bit more complicated than my 'ls | tail -n1' , but it works as well. lol
> And yours works with variables as well.


You asked for a "bash" way -- so no other tools (like ls or tail) are
needed.

> Thanks


You are welcome.

> > big="" ; for fn in * ; do [ "$fn" \> "$big" ] && big="$fn" ; done ; echo
> > $big


Jeremy C. Reed
http://bsd.reedmedia.net/