Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Are there software that enables you to search files or string inside your sourcecode that's on the server?

The text editor I am currently using is Coda by Panic and the server I am using is Amazon EC2. I wanted to search a "string" inside a file and I also wanted to search a certain file (eg style.css).

Any ideas how can I achieve this?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You can simply use grep from terminal with -r recursive option.

$ grep -r "string" /folderToSearch/

Or search a single file

$ grep "string" /folder/filename.ext
share|improve this answer
    
Thanks man! this worked for me and this will be very handy! really appreciate it. –  Pennf0lio Jan 28 '12 at 20:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.