12
NuShell 0.88 (www.nushell.sh)
you are viewing a single comment's thread
view the rest of the comments
[-] Nundrum@yall.theatl.social 2 points 6 months ago

Hey Nu fans: is there some way to get compact ls output? Like a table of just names. No type, date, size, etc.

[-] starman@programming.dev 1 points 6 months ago* (last edited 6 months ago)
  • ls | select name: will return table
  • ls | get name: will return list

Source

[-] Nundrum@yall.theatl.social 1 points 6 months ago

Sadly that's still not a compact output. The listing is still just as long as before scrolls right off the terminal

[-] starman@programming.dev 1 points 6 months ago* (last edited 6 months ago)
[-] Nundrum@yall.theatl.social 1 points 6 months ago

Yes, that changes the borders. But it doesn't turn a column into a table. Compare ls /proc in both bash and nu. It's a simple kind of thing that I can't find a solution for in nu.

this post was submitted on 14 Dec 2023
12 points (100.0% liked)

Shell Scripting

1168 readers
1 users here now

From Ash, Bash and Csh to Xonsh, Ysh and Zsh; all shell languages are welcome here!

Rules:
  1. Follow Lemmy rules!
  2. Posts must relate to shell scripting. (See bottom of sidebar for more information.)
  3. Only make helpful replies to questions. This is not the place for low effort joke answers.
  4. No discussion about piracy or hacking.
  5. If you find a solution to your problem by other means, please take your time to write down the steps you used to solve your problem in the original post. You can potentially help others having the same problem!
  6. These rules will change as the community grows.

Keep posts about shell scripting! Here are some guidelines to help:


In general, if your submission text is primarily shell code, then it is welcome here!

founded 1 year ago
MODERATORS