Skip to content
proseLA edited this page Aug 24, 2021 · 3 revisions

notes:

wholesale changes based on date:

find -mtime -9 -type f | xargs perl -pi -e 's/ version 2.0/ version 2.1/g'

from bitbucket changes:

grep -rl 'script language=' ./ | xargs perl -pi -e 's/<script language=\"javascript\"/<script type=\"text\/javascript\"/g'

grep -rli illegal.acc | xargs perl -pi -e 's/\"Illegal Access\"/__FILE__ . \' :IllegalAccess: \' . __LINE__/g'

using sed for replace newline \n with ")\n(" into new file (i like this one the most).

sed ':a;N;$!ba;s/\n/")\n("/g' count_01_2020.txt > temp.txt

another option:

grepp -rl 'fdxd_' ./ | xargs perl -pi -e 's/fdxd_/shpd_/g'
Clone this wiki locally