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....
- 09-13-2010 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 1
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.
- 09-15-2010 #2Just 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


Reply With Quote