Display file contents in columns with the "column" command

  Рет қаралды 19,644

DistroTube

DistroTube

Күн бұрын

Пікірлер
@terryhenyo9216
@terryhenyo9216 2 жыл бұрын
There are some distributions like ZorinOS that doesn't have the -T, -N, and -o flags. However they are available in distros like Manjaro.
@DistroTube
@DistroTube 2 жыл бұрын
Much like some of the GNU coreutils have alternative versions that sometimes distros ship with, some distros do ship a 'column' command that is not the one from util-linux. They ship a 'column' that is part of the bsdutils I think. It's annoying when distros veer from the norm because...yes, you're missing some cool flags.
@ehanneken
@ehanneken 2 жыл бұрын
Probably. In the BSDs, column(1) lacks those flags. The BSD and Linux man pages all agree that column was introduced in 4.3BSD-Reno. It is not in POSIX.
@corypollard
@corypollard 2 жыл бұрын
@@DistroTube can confirm this is the situation in Linux Mint, too. Thanks for the clarification, man page states it's from BSD too.
@mohammadrahat9759
@mohammadrahat9759 2 жыл бұрын
@@DistroTube If I have so many search result. What if I want to add a line only before or after the first result. without giving line number. Using sed. or other examples also please. Like. Server Server Server ----‐------------- to New line Server Server Server
@Not-THAT-ChrisPratt
@Not-THAT-ChrisPratt 2 жыл бұрын
Please keep these "Linux Basics" videos coming! I learn so much from your teaching and examples.
@DistroTube
@DistroTube 2 жыл бұрын
Thanks, Chris! :D
@zahimeen
@zahimeen 2 жыл бұрын
With every new video you post, I actually learn something that benefits me.
@corypollard
@corypollard 2 жыл бұрын
Another great video, Derek. I've been a hobby Linux user for over 20 years now and still learn more and more from your informative and always high quality content. I hadn't heard of the column command before and can think of lots of uses for it already.
@_..---
@_..--- 2 жыл бұрын
it's always surprising how many useful tools can be found on even a standard install, this is one of the best channels and I especially love it for highlighting them
@adrianteri
@adrianteri 2 жыл бұрын
Thanks @Distrotube now I can retire an old bash function to create tables -> header rows and the record rows from input. It's amazing what you learn about Linux whatever level/time you've been using it!
@RickRomig
@RickRomig 2 жыл бұрын
Thanks, DT! I have a script I use to view log files for many of my cron jobs and I'd been looking for an easy way to display a header when I view the logs in the script. The column command does the job.
@Hyperboid
@Hyperboid 2 жыл бұрын
Personally, I use tabs as my field separator, in case anyone wants to edit it as a spreadsheet. I also give the file a .tsv extension so the programs detect it.
@terrydaktyllus1320
@terrydaktyllus1320 2 жыл бұрын
Many thanks for this tutorial. I do remember someone else pointing out the existence of the "column" command some years ago, but I completely forgot about it - and it's now a command that I am going to go back and build into some of my recent shell scripts. I can't remember if it was you or "The Holy Church of Luke Smith" that did a video a few years ago about writing a script that just pulled up a random man page for you to read when you have a few minutes each day - I think I will have to look that up again and start using it so that I do remember that such commands are available.
@corypollard
@corypollard 2 жыл бұрын
random man command, That sounds like a useful script, any chance of a link?
@tudbut
@tudbut 2 жыл бұрын
thank you, somehow i never knew about this tool!
@justoneofwebcitizens
@justoneofwebcitizens 2 жыл бұрын
That's cool! Never heard before about this command. Will be use to it. Thanks.
@santiagonottoli
@santiagonottoli 2 жыл бұрын
Hey DT! 👍👍👍 Great tutorial... muchas gracias mi amigo!
@MasterHigure
@MasterHigure 2 жыл бұрын
Presumably things like ls use column under the hood to format their output. Cool little utility. Implementing it probably makes for a nice programming exercise too, depending on how many options you want to implement.
@anon_y_mousse
@anon_y_mousse 2 жыл бұрын
This is pretty neat. I was using awk to do a lot of table display stuff, maybe I'll see if column will work for me because awk is annoying to type, especially when you need a header above the columns.
@ygiagam
@ygiagam 2 жыл бұрын
Thank you - very useful tips.
@dasten123
@dasten123 2 жыл бұрын
Neat. Didn't know about this one
@Knight8365
@Knight8365 2 жыл бұрын
Great tutorial thanks for this!
@diepbuithingoc4121
@diepbuithingoc4121 Жыл бұрын
Your video is usefully!, thanks for your video.
@KevinBReynolds
@KevinBReynolds 2 жыл бұрын
Thanks DT!
@OpusFocus1968
@OpusFocus1968 2 жыл бұрын
Column -t -s ":" "Comment:Name :Thank You:Derek "
@vaisakh_km
@vaisakh_km 2 жыл бұрын
map vim keys as :map :'
@theodorealenas3171
@theodorealenas3171 2 жыл бұрын
Oh! Hey! What! Dude! I've been dreaming about this the last week
@cheshirrski
@cheshirrski 2 жыл бұрын
Thanks, very helpful
@uuu12343
@uuu12343 2 жыл бұрын
How the heck do I not know this?! It's been years and I'm a power user, wtf Clearly not power enough MORE POWER... *UNLIMITED* *POWAAAAAAAAAA*
@vaisakh_km
@vaisakh_km 2 жыл бұрын
you are a power user.. it's just linux's powers are endless
@vicmac3513
@vicmac3513 2 жыл бұрын
Does someone know why so many distros has enabled the annoying pcspkr in their kernels? I noticed it in Arch and Manjaro isos recently and now Ubuntu.
@SB-qm5wg
@SB-qm5wg 2 жыл бұрын
Pretty cool.
@vog964
@vog964 2 жыл бұрын
Hey DT, would you ever make a video talking about Linux from Scratch and it's use for learning linux, maybe your experiences with it and whether you would recommend taking the time to set the system up. Thanks!
@Drogobo
@Drogobo 2 жыл бұрын
take a look at soda linux for the next distro review.
@CarlosReyes-ku6ub
@CarlosReyes-ku6ub 2 жыл бұрын
Hi DT, can you share your thoughts about org-roam and maybe show us some tips and tricks? It'd be very useful
@paulw4487
@paulw4487 2 жыл бұрын
dammit this beats awk printf
@Pakrohk
@Pakrohk 2 жыл бұрын
hay man plz test Penrose 0.2.1 Penrose: a library for building your very own tiling window manager
@speedyfox9080
@speedyfox9080 2 жыл бұрын
Column? Never heard of that, although I read some books about Linux and shell!
@mohammadrahat9759
@mohammadrahat9759 2 жыл бұрын
If I have so many search result. What if I want to add a line only before or after the first result. without giving line number. Using sed. or other examples also please. Like. Server Server Server ----‐------------- to New line Server Server Server
@linuxmeow
@linuxmeow 2 жыл бұрын
Kinda reminds of top or htop or something like that layout. Hmmm. o.o
@synthsyndicate
@synthsyndicate 2 жыл бұрын
Interesting
@safi164
@safi164 2 жыл бұрын
thats cool never knew about it
@guilherme5094
@guilherme5094 2 жыл бұрын
👍
@elizabeththompson4424
@elizabeththompson4424 2 жыл бұрын
WOW! My Mint Mate 20 'column' command has NONE of those neat options. It just does columns & table with NO headings or whatever. If I want nice tables with headings I'd have to pipe it into an awk script as I do with many things - AWK! cat something | column | some.awk Well, anyway, the Mint repository has been deplorable of late.
@itsfish8672
@itsfish8672 2 жыл бұрын
GVDT.
@yuke...
@yuke... 2 жыл бұрын
hey dt!
@DistroTube
@DistroTube 2 жыл бұрын
hey hey!
@leviticus8930
@leviticus8930 2 жыл бұрын
Early bird
@DistroTube
@DistroTube 2 жыл бұрын
Indeed!
@xntumrfo9ivrnwf
@xntumrfo9ivrnwf 2 жыл бұрын
OMG you just showed your passwords someone is going to hack you!
@terrydaktyllus1320
@terrydaktyllus1320 2 жыл бұрын
The /etc/passwd file has not contained passwords for some years now. Encrypted passwords are held in /etc/shadow only.
Why Use The Terminal Instead of GUI Apps?
23:40
DistroTube
Рет қаралды 47 М.
Two Powerful Command Line Utilities 'cut' And 'tr'
15:18
DistroTube
Рет қаралды 34 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 49 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 22 МЛН
Essential Linux Commands - Cat, Tac and Tee
21:07
DistroTube
Рет қаралды 24 М.
EVERYONE Needs to Learn a Little Bit of AWK!
16:29
Gary Explains
Рет қаралды 399 М.
The 5 Things That Taught Me The Most About Linux
18:41
DistroTube
Рет қаралды 96 М.
Command Line Tools Setfont, Write, and Wall
11:11
DistroTube
Рет қаралды 15 М.
Shell Aliases Every Linux User Needs
29:03
DistroTube
Рет қаралды 38 М.
Three Amazingly Useful Linux Commands (cmp, diff, tput)
17:52
DistroTube
Рет қаралды 15 М.
We finally have a simple solution for backing up files on Linux
12:24
Dreams of Autonomy
Рет қаралды 202 М.
Essential Keybindings For Bash, Fish and Zsh
16:41
DistroTube
Рет қаралды 29 М.
18 Commands That Will Change The Way You Use Linux Forever
29:50
Akamai Developer
Рет қаралды 1,2 МЛН
ThePrimeagen On Running Linux
9:40
Tech Over Tea
Рет қаралды 287 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 49 МЛН