Posts Tagged ‘ sed ’

How to find incremental numbers in a file and increase them by a certain amount with perl and SED

Mar 7th, 2014 | By

So let’s say you have a file and in it is ton of field ID’s, something like this  <field id=”68″ size=”medium” type=”checkbox”> What you want to do is take the first 68 of these fields as well as all of their code and then append these new 68 fields and all of their code onto
[continue reading…]



Renaming multiple filenames using find and sed

Jun 16th, 2012 | By

You thought you knew how to do this didn’t you?  For me my brain thought ‘oh that’s easy I just do..err wait.. Ok I have to think about this.. ok how about.. errr’ and then I went through this mental contortion act of how to get a variable declared using find and then I echo
[continue reading…]