bashscript for file search and replace!

Posted by D3orn on Stack Overflow See other posts from Stack Overflow or by D3orn
Published on 2010-05-10T16:29:20Z Indexed on 2010/05/10 16:34 UTC
Read the original article Hit count: 104

Filed under:
|
|

Hey I try to write a littel bash script. This should copy a dir and all files in it. Then it should search each file and dir in this copied dir for a String (e.g @ForTestingOnly) and then this save the line number. Then it should go on and count each { and } as soon as the number is equals it should save againg the line number. => it should delete all the lines between this 2 numbers. I'm trying to make a script which searchs for all this annotations and then delete the method which is directly after this ano. Thx for help...

© Stack Overflow or respective owner

Related posts about bash

Related posts about script