I have a file with a bunch of repeating words going down the list (500k +). They all start out with a g. I need to get rid of that g.
From what I've learned so far, that seems to be a 'foreach' job. however, after that, I don't know what to do. Do I chomp the g?...I was thinking about passing the loop through to a system()...but I want to learn other ways.
I need a basic syntax outline for constructing that script, (specifically what to do after <FH>, foreach part)or a link for help (I've looked, but since I'm learning, and this is a very specific deal, I can't seem to adjust other examples based on context).
Sorry for the overly basic question.