[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: trimmare le stringhe in bash



Alle 00:20, martedì 10 ottobre 2006, Lucio Crusca ha scritto:
> sapete se esiste un modo per passare dalla stringa  "    abc def      "
> alla stringa "abc def" usando solo bash ed eventualmente sed o awk?
> (ok, se proprio insistete digerisco anche perl).

Python proprio non lo digerisci? ;)

$ python -c "print '    abc def    '.strip()" 

-- 
 Eriol - *p = NULL; - EIBTI 
 GPG Key ID 297BE0CA



Reply to: