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

Re: trimmare le stringhe in bash



Andrea Ganduglia wrote:

echo  '   abc def      ' | sed 's/^\s*//g;s/\s*$//g';

le 'g' non servono in questo caso
echo  '   abc def      ' | sed 's/^\s*//;s/\s*$//';

Ciao
Davide

--
Dizionari: http://linguistico.sourceforge.net/wiki
Database: http://www.postgresql.org
GNU/Linux User: 302090: http://counter.li.org
Non autorizzo la memorizzazione del mio indirizzo su outlook



Reply to: