home.social

#nonotthatgit — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #nonotthatgit, aggregated by home.social.

fetched live
  1. Excelsior:~$ manlength remind
       Pages   Lines   Words   Chars
       115.5   5543   36943  270815
    Excelsior:~$ manlength mksh
       Pages   Lines   Words   Chars
        74.5   3578   25623  195431
    

    Dear God, what have you done to me, @gumnos???

    The man page for #remind is longer than a programming language (#mksh)!!! 🤣

    #RTFM #GitErDone #NoNotThatGit #IWasSpeakingTexan

    — sent from ed ;)

    Also, in case anyone's curious:

    function manlength {    # Prints the length of manpages in pages, lines, words, chars
        local output lines pages
        #Depending how you count it, it can be anywhere from 44 to 66.
        # Abiword gave me 48 lines on a default page layout, and that seems
        # reasonable when compared to the results I got when converting
        # manpages to PDFs
        local linesperpage=48
        output=$(man "$@" 2>/dev/null |wc)
        echo "   Pages   Lines   Words   Chars"
        lines=$(echo "$output" |awk '{print $1}')
        pages=$(echo "$lines/$linesperpage" |bc -l)
        printf "%8.1f%s\n" "$pages" "$output"
    }
    
  2. Excelsior:~$ manlength remind
       Pages   Lines   Words   Chars
       115.5   5543   36943  270815
    Excelsior:~$ manlength mksh
       Pages   Lines   Words   Chars
        74.5   3578   25623  195431
    

    Dear God, what have you done to me, @gumnos???

    The man page for #remind is longer than a programming language (#mksh)!!! 🤣

    #RTFM #GitErDone #NoNotThatGit #IWasSpeakingTexan

    — sent from ed ;)

    Also, in case anyone's curious:

    function manlength {    # Prints the length of manpages in pages, lines, words, chars
        local output lines pages
        #Depending how you count it, it can be anywhere from 44 to 66.
        # Abiword gave me 48 lines on a default page layout, and that seems
        # reasonable when compared to the results I got when converting
        # manpages to PDFs
        local linesperpage=48
        output=$(man "$@" 2>/dev/null |wc)
        echo "   Pages   Lines   Words   Chars"
        lines=$(echo "$output" |awk '{print $1}')
        pages=$(echo "$lines/$linesperpage" |bc -l)
        printf "%8.1f%s\n" "$pages" "$output"
    }
    
  3. Excelsior:~$ manlength remind
       Pages   Lines   Words   Chars
       115.5   5543   36943  270815
    Excelsior:~$ manlength mksh
       Pages   Lines   Words   Chars
        74.5   3578   25623  195431
    

    Dear God, what have you done to me, @gumnos???

    The man page for #remind is longer than a programming language (#mksh)!!! 🤣

    #RTFM #GitErDone #NoNotThatGit #IWasSpeakingTexan

    — sent from ed ;)

    Also, in case anyone's curious:

    function manlength {    # Prints the length of manpages in pages, lines, words, chars
        local output lines pages
        #Depending how you count it, it can be anywhere from 44 to 66.
        # Abiword gave me 48 lines on a default page layout, and that seems
        # reasonable when compared to the results I got when converting
        # manpages to PDFs
        local linesperpage=48
        output=$(man "$@" 2>/dev/null |wc)
        echo "   Pages   Lines   Words   Chars"
        lines=$(echo "$output" |awk '{print $1}')
        pages=$(echo "$lines/$linesperpage" |bc -l)
        printf "%8.1f%s\n" "$pages" "$output"
    }
    
  4. Excelsior:~$ manlength remind
       Pages   Lines   Words   Chars
       115.5   5543   36943  270815
    Excelsior:~$ manlength mksh
       Pages   Lines   Words   Chars
        74.5   3578   25623  195431
    

    Dear God, what have you done to me, @gumnos???

    The man page for #remind is longer than a programming language (#mksh)!!! 🤣

    #RTFM #GitErDone #NoNotThatGit #IWasSpeakingTexan

    — sent from ed ;)

    Also, in case anyone's curious:

    function manlength {    # Prints the length of manpages in pages, lines, words, chars
        local output lines pages
        #Depending how you count it, it can be anywhere from 44 to 66.
        # Abiword gave me 48 lines on a default page layout, and that seems
        # reasonable when compared to the results I got when converting
        # manpages to PDFs
        local linesperpage=48
        output=$(man "$@" 2>/dev/null |wc)
        echo "   Pages   Lines   Words   Chars"
        lines=$(echo "$output" |awk '{print $1}')
        pages=$(echo "$lines/$linesperpage" |bc -l)
        printf "%8.1f%s\n" "$pages" "$output"
    }
    
  5. Excelsior:~$ manlength remind
       Pages   Lines   Words   Chars
       115.5   5543   36943  270815
    Excelsior:~$ manlength mksh
       Pages   Lines   Words   Chars
        74.5   3578   25623  195431
    

    Dear God, what have you done to me, @gumnos???

    The man page for #remind is longer than a programming language (#mksh)!!! 🤣

    #RTFM #GitErDone #NoNotThatGit #IWasSpeakingTexan

    — sent from ed ;)

    Also, in case anyone's curious:

    function manlength {    # Prints the length of manpages in pages, lines, words, chars
        local output lines pages
        #Depending how you count it, it can be anywhere from 44 to 66.
        # Abiword gave me 48 lines on a default page layout, and that seems
        # reasonable when compared to the results I got when converting
        # manpages to PDFs
        local linesperpage=48
        output=$(man "$@" 2>/dev/null |wc)
        echo "   Pages   Lines   Words   Chars"
        lines=$(echo "$output" |awk '{print $1}')
        pages=$(echo "$lines/$linesperpage" |bc -l)
        printf "%8.1f%s\n" "$pages" "$output"
    }