News for hackers. Stuff that matters.
Re:Dwarf Fortress starting during apt-get upgrade by glandium on Wednesday August 16, 2017 @07:15AM (#15026565)
That doesn't make it much better though. Parsing the output of df (with a useless tail -1) is kind of awful when you can use something like stat -f -c %a.
Re:Dwarf Fortress starting during apt-get upgrade by MichaelBurge on Wednesday August 16, 2017 @08:31AM (#15026932)
That has the same problem, just with a different name. So your solution solves a style complaint, not an actual functional problem.
Re:Dwarf Fortress starting during apt-get upgrade by sslayer on Wednesday August 16, 2017 @11:49AM (#15028428)
I agree with your comment about it being functional. But wouldn't removing tail from the pipe remove complexity and speed up the processing(Arguably, most likely only by a small fraction)
Re:Dwarf Fortress starting during apt-get upgrade by linsomniac on Wednesday August 16, 2017 @09:36AM (#15027311)
How is the "tail -1" useless? The output of that df command is two lines, one contains the column headers and the next contains the data.
Re:Dwarf Fortress starting during apt-get upgrade by glandium on Wednesday August 16, 2017 @09:37AM (#15027315)
because `... | tail -n -1 | awk '{...}'` is the same as `... | awk 'END {...}'`.