Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add two more options to "less" command #208

Open
DelilahYM opened this issue Aug 15, 2022 · 1 comment
Open

Add two more options to "less" command #208

DelilahYM opened this issue Aug 15, 2022 · 1 comment
Labels
question Further information is requested

Comments

@DelilahYM
Copy link

DelilahYM commented Aug 15, 2022

In https://librarycarpentry.org/lc-shell/03-working-with-files-and-folders/index.html, when we mentioned "less" command in
"Reading files" session, I found it would be very useful to introduce the following two items with "less":

  1. (Display line numbers)The "-N" option with less to display the file with line numbers, which is extremely useful when looking at log/error files, and
  2. (Pattern search) "$ less -pPATTERN filename", OR, once inside less, use "/" followed by your pattern to do interactive searching (forwards). "n" and "N" repeat the search in the forward and reverse direction, respectively.
@jmjamison
Copy link
Contributor

Question. If this is an introduction to the shell I'm not sure if isn't throwing too much at the participants. I have to go back through the lesson and see if wildcards had been introduced yet. Other opinions?

@jmjamison jmjamison added the question Further information is requested label Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants