in reply to Just a quickie about FH:s
Here's one way if you know the line numbers are 7 and 11:
The (<FH>)[6,10] construct is a slice over the array of lines in the file. They are offset to allow for the usual convention for line counting in a file.$ perl -e 'open FH,"soversions.mk";print( (<FH>)[6,10])' all-sonames+=libdl=libdl.so$(libdl.so-version) all-sonames+=libresolv=libresolv.so$(libresolv.so-version)
After Compline,
Zaxo
|
|---|