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
by augusto on Mon, 24/10/2011 - 10:45
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
+
by augusto on Tue, 27/09/2011 - 12:53
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:
- Hairdresser: since I start using my http://himan.imetec.com/himanexpert/#/prodotti/tagliacapelli_hc7_100
- Petrol Station: Almost twice a week I go to work on my http://www.ciclilazzaretti.it/
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
+
by augusto on Tue, 27/09/2011 - 11:12
