ls(1p) analogue #74

Open
opened 2024-02-24 21:47:37 +00:00 by emma · 3 comments
Owner

An idea i had for a name was entr(1) (entries) but that’s quite long for a command being run all the time. Another possibility is le(1) (list entries).

An idea i had for a name was `entr(1)` (entries) but that’s quite long for a command being run all the time. Another possibility is `le(1)` (list entries).
emma added the
enhancement
question
labels 2024-02-24 21:47:37 +00:00
emma added a new dependency 2024-02-24 21:48:02 +00:00
Author
Owner

The output of the command should use ASV to separate fields.

The output of the command should use ASV to separate fields.
silt was assigned by emma 2024-02-24 21:48:24 +00:00
Owner

What if we did this:

  • lf(1) ("list files") is a shell script that streams given files to readdir(1) and then a sorting program.
  • readdir(1) is a program that reads the file content of a directory from standard input and prints the names of the files within to standard output, unsorted. If the file isn't a directory, it prints the name of the file itself.

So ls /bin becomes mm -i /bin | readdir | sort or lf /bin.

What if we did this: - lf(1) ("list files") is a shell script that streams given files to readdir(1) and then a sorting program. - readdir(1) is a program that reads the file content of a directory from standard input and prints the names of the files within to standard output, unsorted. If the file isn't a directory, it prints the name of the file itself. So `ls /bin` becomes `mm -i /bin | readdir | sort` or `lf /bin`.
Author
Owner

What if we did this:

  • lf(1) ("list files") is a shell script that streams given files to readdir(1) and then a sorting program.
  • readdir(1) is a program that reads the file content of a directory from standard input and prints the names of the files within to standard output, unsorted. If the file isn't a directory, it prints the name of the file itself.

So ls /bin becomes mm -i /bin | readdir | sort or lf /bin.

I like this idea.

> What if we did this: > > - lf(1) ("list files") is a shell script that streams given files to readdir(1) and then a sorting program. > - readdir(1) is a program that reads the file content of a directory from standard input and prints the names of the files within to standard output, unsorted. If the file isn't a directory, it prints the name of the file itself. > > So `ls /bin` becomes `mm -i /bin | readdir | sort` or `lf /bin`. I like this idea.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Depends on
#19 ASV in Bonsai
bonsai/coreutils
Reference: bonsai/coreutils#74
No description provided.