Command Functionality

Hi everyone, today i need that someone help to understand this particular line of command.
So you can explain to me step by step, it will be great.

---------- Post updated at 11:53 AM ---------- Previous update was at 11:51 AM ----------

Is your post not missing something? (the command line perhaps... :rolleyes: )

Yeaph but i really don't know where to put it, cause the moderator, told me that i can't put inside this area, so i put in the next field to this one, but obviously, it doesn't work, i guess i'm a little dummie, don't you think? jajaaja

---------- Post updated at 12:24 PM ---------- Previous update was at 12:22 PM ----------

Well never mind, could tell me what's the meaning of pr -124?

Answer about how: use icode instead of code (in square braquets...)

about the command itself, its difficult to say.. because there it seems out of context..
Where does it come from?
(clues I understand pr as pr "print" the formatting command, look at the man pages...)

This may not be clear if you're not used to man pages, -124 is a weird-looking option :slight_smile: It appears that a number, by itself, just refers to the number of columns you want in pr's output here...

But you agree corona I imagine the command behind a pipe, or I am myself a bit lost... :wink:

You right guys the pr -124 it's behind a pipe like this....

ls -lr $1 2>/dev/null  | grep '^d' | pr -l24 | more -24

You first posted -124, as in one.

Now you've posted -l24, as in the letter L.

That completely changes the meaning!

Your command:
1) lists whatever $1 is, presumably a folder, with long-style output
2) excludes directories from the listing(since they'll start with the letter d)
3) Puts it in pages of 24 lines
4) Displays it with more in pages of 24 lines

Hi Corona668 I have committed a mistake, the right way it's pr -l24 with L not numer 1. Sorry