0

In Aix when I am running a command to get a status it is showing but there is few lines blank above and few below apart from the actual output line. How to remove while generating the output.

RonyA
  • 585
  • 3
  • 11
  • 26
  • Possible duplicate of [Remove blank lines with grep](https://stackoverflow.com/questions/3432555/remove-blank-lines-with-grep) – Artem Barger Jun 26 '17 at 09:47

2 Answers2

0
tr -d '\r' < "$file" > t ; mv t "$file"
priya raj
  • 362
  • 2
  • 8
0

I just used sed to remove lines . I am not dealing with files. I am storing output to a variables. It worked . Thanks for the valuable time

RonyA
  • 585
  • 3
  • 11
  • 26