Find the answer to your Linux question:
Results 1 to 2 of 2
how can I use one command to search through boot scripts for commands (that are being used in the script). Preferably using grep....
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    1

    Exclamation reading commands in boot scripts

    how can I use one command to search through boot scripts for commands (that are being used in the script). Preferably using grep.

  2. #2
    Just Joined!
    Join Date
    Sep 2010
    Location
    Colombia
    Posts
    3
    Not sure what you are looking for... but...

    Custom boot commands are on /etc/rc.local

    And services boot scritps are on /etc/init.d/

    You have to close a bit your search because I don't think there's a general regular expression for "commands"...

    anyway to look for a word in all files from a folder you can use xargs...

    Think you can do it this way:
    find . -type f -name '*' | xargs grep text_to_find

Posting Permissions

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