Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
inp
7y ago
0 comments
Save
Share
You can apply the awk command on a pipe, and so it is applies on each line of the file/stream.
0 comments
1 comments · 1 top-level
top
newest
oldest
darrenf
7y ago
Right - though that's solvable with xargs:
$ echo "0005" | xargs printf '%d\n' 5
That said, my suggestion doesn't work anyway since the leading 0 marks it as octal, d'oh (as mentioned elsewhere in the thread).
j
/
k
navigate · click thread line to collapse