Results 1 to 3 of 3

Thread: column command returns badly aligned columns

  1. #1
    Join Date
    Mar 2012
    Location
    Germany
    Beans
    87

    column command returns badly aligned columns

    I have recently loaded the latest Ubuntu software, which is version 21.04. And now I have problems with the column command in terminal. When I do the following command, then the columns, which should be nicely aligned, are instead severely scrambled. In fact, it is only the rows containing the directory names that are giving problems.
    Code:
    $ pass | column
    On the other hand, when I do the following command, then the columns appear to be aligned as they should be.
    Code:
    $ tree ~/.password-store | column
    Until very recently I had Ubuntu Mate 18.04, and on that operating system there was no problem with scrambled columns. Likewise, when I run the command
    Code:
    pass | column
    on the Raspberry Pi with Raspbian, there is no problem of scrambled columns.

    How to resolve it?

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: column command returns badly aligned columns

    column -t?

    There is a manpage for column with many other options.

  3. #3
    Join Date
    Mar 2012
    Location
    Germany
    Beans
    87

    Re: column command returns badly aligned columns

    Here are four examples of the output I am getting for various commands. The first three are on Ubuntu 21.04, the last one is on a Raspberry Pi; the last one is equivalent to how
    Code:
    pass | column
    behaved on Ubuntu 18.04. If I can figure out how to get Ubuntu 21.04 to behave like the last example, then I will mark this thread as solved.
    Code:
    keW3P@aL9doo:~$ pass | column -t
    Password  Store                
    ├──       pheeph3Y             
    │         ├──                  kshdkfhal         
    │         ├──                  gjye              
    │         ├──                  Eeghoozoongo1vahde
    ...
    │         ├──                  fht7c5
    ├──       feofohCoi7phij           
    │         ├──                  audaiJiu8ienge
    │         ├──                  Ahpai9ieludae9
    
    keW3P@aL9doo:~$ pass 
    Password Store
    ├── pheeph3Y
    │   ├── kshdkfhal         
    │   ├── gjye              
    │   ├── Eeghoozoongo1vahde
    ...
    │   ├── fht7c5
    ├── feofohCoi7phij
    │   ├── audaiJiu8ienge
    │   ├── Ahpai9ieludae9
    
    keW3P@aL9doo:~$ pass | column
    Password Store                │   ├── woh8ailig6UWoh1eequi        │   ├── ahdkfha                │   ├── hadfhvba
    ├── pheeph3Y            │   └── le5Oi8c                │   ├── jlfdsf                │   ├── hfdkage
    │   ├── kshdkfhal            ├── jafldja            │   ├── jdfhdahfkdakfhak        │   ├── dkafjdaljfajds
    │   ├── gjye                │   ├── Ufagei2wi            ├── xe2eif6ohTh        │   ├── fht7c5
    │   ├── Eeghoozoongo1vahde        │   ├── r4f                │   ├── ii4Aipo7k            ├── feofohCoi7phij
    │   ├── fj5usM                ├── Ang3doye            │   ├── ji5Na7pa            │   ├── audaiJiu8iengeuwoyooLa
    │   ├── zoekoch6oSh            │   ├── Ucoe5xahcah            │   ├── fhV3F7                │   ├── Ahpai9ieludae9
    
    pi@raspberrypi:~$ pass | column
    Password Store                │   ├── woh8ailig6UWoh1eequi        │   ├── ahdkfha                │   ├── hadfhvba
    ├── pheeph3Y                  │   └── le5Oi8c                     │   ├── jlfdsf                 │   ├── hfdkage
    │   ├── kshdkfhal             ├── jafldja                         │   ├── jdfhdahfkdakfhak       │   ├── dkafjdaljfajds
    │   ├── gjye                  │   ├── Ufagei2wi                   ├── xe2eif6ohTh                │   ├── fht7c5
    │   ├── Eeghoozoongo1vahde    │   ├── r4f                         │   ├── ii4Aipo7k              ├── feofohCoi7phij
    │   ├── fj5usM                ├── Ang3doye                        │   ├── ji5Na7pa               │   ├── audaiJiu8iengeuwoyooLa
    │   ├── zoekoch6oSh           │   ├── Ucoe5xahcah                 │   ├── fhV3F7                 │   ├── Ahpai9ieludae9

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •