Results 1 to 10 of 11

Thread: Simplifying the find command

Threaded View

  1. #1
    Join Date
    Oct 2010
    Location
    Sweden
    Beans
    821
    Distro
    Ubuntu 16.04 Xenial Xerus

    Simplifying the find command

    Hi Folks,

    I recently learned how to use:

    Code:
    find / -name *Whatever I'm looking for* -print 2> /dev/null
    to find things on my system.

    My question is, is there a way to set this as a bash alias that will allow me to put whatever I want to search for between the *s before running the command?

    Ideally I'd type the alias in the terminal and then be able to edit the command before it launches. It seems that when whenever I use an alias, the command is executed right then.
    Last edited by GrouchyGaijin; March 10th, 2013 at 11:20 AM.
    Thank you,
    GG -----------
    GUI we don't need no stinking GUI: A collection of Bash scripts
    Mutt (email), cmus (music),Google Calendar and Google Tasks cli

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
  •