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

Shell Scripting

1348 readers
4 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
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 11 months ago (4 children)

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

[–] [email protected] 2 points 11 months ago* (last edited 11 months ago) (3 children)
  • ls | select name: will return table
  • ls | get name: will return list

Source

[–] [email protected] 2 points 11 months ago (1 children)

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

[–] [email protected] 2 points 11 months ago* (last edited 11 months ago) (1 children)
[–] [email protected] 2 points 11 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.

load more comments (1 replies)
load more comments (1 replies)