Re:PowerShell is open sourced and is available on Linux
by qwertyuiop924 on Friday August 19, 2016 @11:56AM
(#12320945)
First off, readelf shouldn't switch between hex and base10. Secondly, that's DSV, so you shouldn't have written a regex for it. You should have either cut, or awk, both tools SPECIFICALLY DESIGNED to do what you want.
[ Parent
| on HN ]
Re:PowerShell is open sourced and is available on Linux
by Rapidwire on Friday August 19, 2016 @03:42PM
(#12322909)
What's DSV?
Re:PowerShell is open sourced and is available on Linux
by qwertyuiop924 on Friday August 19, 2016 @05:46PM
(#12323749)
DSV: Delimiter Separated values. readelf uses a delimiter matching the regex /\w+/. In AWK, this is $FS by default, so AWK will parse this by default. Or you can pipe
tr -s [:blank:]
To cut, which will give you the row you want.