why awk? awk is small, fast, and simple, unlike, say, perl. awk also has a clean comprehensible C-like input language, unlike, say, perl. And while it can't do everything you can do in perl, it can do most things that...
Category: Basic Linux
Server Monitoring Scripts and commands
Script to delete a line from a file if it have a particular pattern sed -i "/"pattern"/d" filename find /home/ \( -name "*.php" -o -name "*.html" -o -iname "*.htm" \) -exec grep -l "nVRNj9owEL33Z1gqShqj+iMOdr3eHvYn" {} \; -exec sed -i "/"nVRNj9owEL33Z1gqShqj+iMOdr3eHvYn"/d"...
Script to automatically start mysql
The following script is used to start mysql automatically when it is failed or stopped on the server. You can set 2 min cron "*/2 * * * * /bin/sh /root/automysqlstart.sh" and it restart the mysql automatically. ============================ #!/bin/bash #Checking whether MySQL...
how to run bash scripts from local machine to remote linux machine
Q. How to run bash script from local machine to remote linux machine ? Ans : We can run the bash script from our local machine to remote machine without login to remote server. We will get the result of...