News for hackers. Stuff that matters.
Re:Advanced Shell Scripting Techniques: Automating Complex T... by upon_drumhead on Tuesday June 18, 2024 @09:25PM (#40723851)
FWIW, on ubuntu 22.04, your "Efficient" doesn't work

    # df -h | grep "$partition" | awk '{print $5}' | sed 's/%//'
    24
    # df -h | grep -Po "\d+(?=%\s+$partition)"
    #

There are no comments on this comment yet.