Warning: Illegal string offset 'addMap' in /home/mhd-01/www.gabcicala.it/htdocs/wp-content/plugins/mygeopositioncom-geotags-geometatags/mygeopositioncom-geotags-geometatags.php on line 639
Warning: Illegal string offset 'position' in /home/mhd-01/www.gabcicala.it/htdocs/wp-content/plugins/mygeopositioncom-geotags-geometatags/mygeopositioncom-geotags-geometatags.php on line 561
Warning: Illegal string offset 'position' in /home/mhd-01/www.gabcicala.it/htdocs/wp-content/plugins/mygeopositioncom-geotags-geometatags/mygeopositioncom-geotags-geometatags.php on line 603
Utili riferimenti per ciò che riguarda la modifica all’interno di un file testuale utilizzando “sed“. Utile trick che mi preme ricordare è quello inerente la creazione automatica del “.bak” file in modo da avere sempre un backup del file antecedente la modifica.
Modificare e salvare lo stesso file con sed
Sed – save changes to same file
Ad esempio
sed -i.bak ‘s/stringa da sostituire/stringa scritta/opzioni’ file.txt
Warning: Declaration of Social_Walker_Comment::start_lvl(&$output, $depth, $args) should be compatible with Walker_Comment::start_lvl(&$output, $depth = 0, $args = Array) in /home/mhd-01/www.gabcicala.it/htdocs/wp-content/plugins/social/lib/social/walker/comment.php on line 0
Warning: Declaration of Social_Walker_Comment::end_lvl(&$output, $depth, $args) should be compatible with Walker_Comment::end_lvl(&$output, $depth = 0, $args = Array) in /home/mhd-01/www.gabcicala.it/htdocs/wp-content/plugins/social/lib/social/walker/comment.php on line 0
[…] sed e sostituzione all’interno di un file […]
[…] sed e sostituzione all’interno di un file […]