• Re: Terminal just hangs (Was: I can't cut fields from "fdisk -l")

    From Janis Papanagnou@21:1/5 to Kenny McCormack on Fri Mar 18 14:05:40 2022
    On 18.03.2022 13:57, Kenny McCormack wrote:
    In article <t11v5e$1kf$1@dont-email.me>,
    Janis Papanagnou <janis_papanagnou@hotmail.com> wrote:
    ...
    You are using the wrong tool; ignore cut, use awk.

    awk '{print $1,$5,$6}'

    When I do that, my terminal just hangs and I have to reboot.

    What? - I suppose you know that this is just a replacement for the
    cut process, and there's some pipeline commands (as given in the OP's
    post) to prepend? sudo fdisk -l | ... | awk '{print $1,$5,$6}'
    If that hangs on your system something on your system must be defect.

    Janis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenny McCormack@21:1/5 to janis_papanagnou@hotmail.com on Fri Mar 18 12:57:50 2022
    In article <t11v5e$1kf$1@dont-email.me>,
    Janis Papanagnou <janis_papanagnou@hotmail.com> wrote:
    ...
    You are using the wrong tool; ignore cut, use awk.

    awk '{print $1,$5,$6}'

    When I do that, my terminal just hangs and I have to reboot.

    --
    Faith doesn't give you the answers; it just stops you from asking the questions.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenny McCormack@21:1/5 to janis_papanagnou@hotmail.com on Fri Mar 18 14:59:55 2022
    In article <t12035$kvs$1@dont-email.me>,
    Janis Papanagnou <janis_papanagnou@hotmail.com> wrote:
    ...
    sudo fdisk -l | ... | awk '{print $1,$5,$6}'

    -bash: ...: command not found

    Well, at least we are making progress. At least I don't have to reboot.

    --
    If you ask a Trumper who is to blame for the debacle of Jan 6, they will almost certainly say
    something about Antifa/BLM/something/whatever. This shows just how screwed up they are; they can't
    even get their narrative straight. What they *should* say is "Eugene Goodman". If not for him, the plot
    would probably have succeeded, so he (Eugene) is clearly to blame for the failure.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Taylor@21:1/5 to Kenny McCormack on Fri Mar 18 09:57:35 2022
    On 3/18/22 8:59 AM, Kenny McCormack wrote:
    Well, at least we are making progress. At least I don't have to reboot.

    sudo fdisk -l |tail -n 10|head -n 8|awk '{print $1,$5,$6}'



    --
    Grant. . . .
    unix || die

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Janis Papanagnou@21:1/5 to Kenny McCormack on Fri Mar 18 23:22:04 2022
    On 18.03.2022 15:59, Kenny McCormack wrote:
    In article <t12035$kvs$1@dont-email.me>,
    Janis Papanagnou <janis_papanagnou@hotmail.com> wrote:
    ...
    sudo fdisk -l | ... | awk '{print $1,$5,$6}'

    -bash: ...: command not found

    Well, at least we are making progress. At least I don't have to reboot.

    Your replies to my posts here are pathologic in several ways.

    Foremost you know enough about awk and Unix that there's no need at
    all to play the fool in the first place.

    Then you seem to deliberately play the stupid to not understand that
    my "You are using the wrong tool; ignore cut, use awk." was meant as
    a suggestion to replace the cut part by the posted awk part, the one
    I posted.

    Finally if you really would reboot when entering a command that waits
    for standard input you're hopelessly lost.

    Have you forgotten to take your medicine or why are you unnecessarily
    in sociopathic mode again?

    Janis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)