Thank you for looking into my concern!
I have developed a script run.sh which is creating a output.txt file and storing output in that file. But the output has multiple unwanted lines.. I want script to ignore those lines and only paste the required lines-
Output-
*
*
*
adhkjhajsdkjhas
asdjkakjdhajskh
HSHDKJ
jdkjadjk
sajkdhakjh
ajhdjs
*
*
*
A565253662 Value
1. abc 01Nov2019
2. cde 03Dec2019
3. def 04Feb2020
4. hij 16Aug2021
5. klm 07Dec2021
*
*
*
A565253665 Value
1. abc 23Sep2019
2. cde 24Sep2019
3. def 01Aug2020
4. hij 09Sep2021
5. klm 23Sep2021
*
*
*
But I want output.txt to only print following output instead of above output-
A565253662 Value
1. abc 01Nov2019
2. cde 03Dec2019
3. def 04Feb2020
4. hij 16Aug2021
5. klm 07Dec2021
A565253665 Value
1. abc 23Sep2019
2. cde 24Sep2019
3. def 01Aug2020
4. hij 09Sep2021
5. klm 23Sep2021
Note- Column names are not same always, and
*
*
*
adhkjhajsdkjhas
asdjkakjdhajskh
HSHDKJ
jdkjadjk
sajkdhakjh
ajhdjs
*
*
*
these lines are sometimes capital too.
I have tried read, foreach and line, but maybe using them wrong as I am new to shell.. If anyone has any solution over it.. please help.. PS Thanks in advance :)