1

I need to read each line of a file in BASH one at a time and perform an operation on each line.

Here's some pseudo-code outlining what I need to have happen:

while( fileIsNotEmpty )
{
   line = ReadNextLine()

   SomeOperation(line)
}

How do I do this?

Deep Blue
  • 193
  • 2
  • 10

0 Answers0