Search Results

Search: Posts Made By: MadeInGermany
9,861
Posted By MadeInGermany
Yout can do this with two commands awk 'NR==23;...
Yout can do this with two commands
awk 'NR==23; NR==89'
or with a logical or
awk 'NR==23 || NR==89'
This is the short condition{action} form where the default action is print.
9,861
Posted By MadeInGermany
So it's actually not home work for a course... ...
So it's actually not home work for a course...

Did you read the man pages for awk?
man awk
The record number (usually the line number) is NR. Also because the main code is a loop, you can simply...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 01:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy