per scrivere loutput di un comando ... +  

per scrivere l'output di un comando php dentro un file testo eseguire all'interno del terminale il comando nel formato

php script.php > output

L'esito dello script verra' scritto nel file output

sed How to replace multiple spaces ... +  

sed How to replace multiple spaces in a string from command line [GNU sed]


echo "one      two       three   four  " | sed "s/^ *//;s/ *$//;s/ \{1,\}/ /g"
OUTPUT: one two three four

+

Shops I can do without +  

Just for fun:
This page wants to be a sort of uncheck list, with shops I don't want to go in anymore:

sed replace every words beginning with ... +  

sed: replace every words beginning with

$ echo "some words removethisword removethiswordalso more words" |sed 's/remove.[a-zA-Z0-9]*//g'
OUTPUT: some words more words

+