Skip to content

Conversation

jimcat8
Copy link
Contributor

@jimcat8 jimcat8 commented Dec 24, 2022

Author checklist (Completed by original Author)

  • Good fit for the Rocky Linux project? Title and Author Metatags inserted ?
  • If applicable, steps and instructions have been tested to work
  • Initial self-review to fix basic typos and grammar completed

Rocky Documentation checklist (Completed by Rocky team)

  • 1st Pass (Document is good fit for project and author checklist completed)
  • 2nd Pass (Technical Review - check for technical correctness)
  • 3rd Pass (Detailed Editorial Review and Peer Review)
  • Final approval (Final Review)

@alemorvan
Copy link
Contributor

Sorry @jimcat8
It's toi early in the admin guide for this example.
We did not introduce at this step the regexp, but only the wildcards.
This example would be beter in the advanced commands. Or as an extended example in supplement to the actual one, not to replace.

@sspencerwire
Copy link
Contributor

@jimcat8 I tend to agree with @alemorvan on this. The goal of the admin guide is to gradually step people up in their understanding of commands and syntax. I would suggest that you write either another chapter or a supplemental section to include some more advanced commands that include regexp.

@jimcat8
Copy link
Contributor Author

jimcat8 commented Dec 26, 2022

@sspencerwire @alemorvan I am infected with COVID-19, and now it is the fifth day. I don't have the energy to write another tutorial on regular expressions yet.

@alemorvan
Copy link
Contributor

I hope you are OK @jimcat8.
Let's wait you are better to move forward.
Keep safe.

We can imagine something like this :

* List `/var` files larger than 1 megabyte but less than 1 gigabyte:
ls -lhR /var | grep \- | grep [1-9]*M

Note that it exists something we call "regexp" that permits more advanced search. The regexp will be coverd in the advanced command chapter, but try to understand if you can this advanced sample:

$ ls -lhR /var/ | grep ^\- | grep -E "[1-9]*\.[0-9]*M" 

What do you think about it ?

@jimcat8
Copy link
Contributor Author

jimcat8 commented Dec 26, 2022

I hope you are OK @jimcat8. Let's wait you are better to move forward. Keep safe.

We can imagine something like this :

* List `/var` files larger than 1 megabyte but less than 1 gigabyte:
ls -lhR /var | grep \- | grep [1-9]*M

Note that it exists something we call "regexp" that permits more advanced search. The regexp will be coverd in the advanced command chapter, but try to understand if you can this advanced sample:

$ ls -lhR /var/ | grep ^\- | grep -E "[1-9]*\.[0-9]*M" 

What do you think about it ?

It should be noted that the files filtered by these two commands are different.

Just eliminates doubling of "use, uses" for better clarity.
@github-actions
Copy link

Test results for e2ace99:

Number of broken URLs: 3

URL,RESULT,FILENAME
 https://dl.rockylinux.org/pub/rocky/9.0/live/x86_64/,failed,guides/desktop/mate_installation.md
 https://dl.rockylinux.org/pub/rocky/9.0/live/x86_64/,failed,guides/desktop/xfce_installation.md
 https://dl.rockylinux.org/pub/rocky/9.0/live/x86_64/,failed,guides/desktop/kde_installation.md

@sspencerwire sspencerwire merged commit d2dc6d3 into rocky-linux:main Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants