Skip to main content
The 2024 Developer Survey results are live! See the results
4 events
when toggle format what by license comment
Feb 6 at 16:37 history edited Chris Davies CC BY-SA 4.0
$NF+0 not the same as $NF!=0
Feb 6 at 15:12 comment added Stéphane Chazelas $NF+0 is not the same as $NF != 0. It would fail to return lines that end in foo for instance. as by applying an arithmetic operation, you're converting $NF to a number
Feb 6 at 14:55 comment added steeldriver GNU date has an "upper case if possible" format flag ^ so you could use %^b in that case I think
Feb 6 at 14:37 history answered Chris Davies CC BY-SA 4.0