admin's blog

Search text in files in linux

Use the following command to search any text in the files using the command line in linux.

grep -i -n -r 'pagination' /home/sheetal/xyz

Above command will search pagination text in all files in xyz directory and its subdirectory.




Validate remote url using javascript

1. Read remote url. var url ='<!--#echo var="REMOTE_HOST"-->'; 2. Enter list of additional url var additional_url = [""]; 3. Create a regular expression string. var handleurl = additional_url.join("|");

Syndicate content