Results 1 to 2 of 2

Thread: Displaying Letter-only files from /usr/bin file

  1. #1
    Join Date
    Sep 2009
    Beans
    2

    Post Displaying Letter-only files from /usr/bin file

    I'm exploring the Ubuntu terminal commands and I was wondering how to get an output of the /usr/bin files that don't contain any digits in the file name.

  2. #2
    Join Date
    Apr 2009
    Beans
    1,173

    Re: Displaying Letter-only files from /usr/bin file

    Quote Originally Posted by shutchis View Post
    I'm exploring the Ubuntu terminal commands and I was wondering how to get an output of the /usr/bin files that don't contain any digits in the file name.
    You can use ls +([[:alpha:]]) or ls +([a-z]) which means print any file with at least one, and with any additional number of, the alphabetic characters ([:alpha:]) or any character in the ranges a-z or A-Z (a-z is expanded to a-z and A-Z according to locale).

    Other options are: alnum alpha ascii blank cntrl digit graph lower print punct space upper xdigit

    So you could also use ls +([!0-9]) or ls +([![:digit]).

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •