Hi All,
I want to extract the text between some pattern which occurs repeatedly in a file. For example my input is like,
[javac] [checking .....
[javac] [checking .....
[javac] [checking .....
[javac] [checking .....
[javac] /home/.....
..........java:25: cannot find symbol
[javac]
[javac]............
[javac] /home/......
[javac] [loading java/lang/Math.class(java/lang:Math.class)]
[javac] /home/.......
[javac] [checking.......
[javac] [checking.......
[javac] [checking.......
I want to display text between "[javac] /home" upto "[javac] [" including these lines.
My output should look like..
[javac] /home/.....
..........java:25: cannot find symbol
[javac]
[javac]............
[javac] /home/......
[javac] [loading ...
[javac] /home/.......
[javac] [checking.......
Please help me to do that in shell script.