Hello,
I actually have two issues. First, here is the file the way it is now.
someword someword:1
new-word new-word abcd
someword someword:10
new-word new-word abcd
thisis whatIneed:3
someword someword:5
new-word new-word abcd
I need to get the line before the 2 blanks and move it to a different file. I've tried using
sed, but keep getting error messages. Also, there may be none, one, or several instances of this within the file.
I should probably also mention that this is part of a larger
perl script I'm working on. I have everything else done, the file above is actually generated by the script. I also have everything below it complete, but am completely stuck at this point.
Any help with either would be appreciated.