Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
SRE!

Neel Thomas neeltom92

👨‍💻
SRE!
View GitHub Profile
View backup of all files changed in the last day
#!/bin/bash
n=domain_name;
#REPLACE HERE WITH THE DOMAIN NAME
dn=(/scripts/whoowns $n)
cd /home/$dn/public_html;
archive_directory="/home/$dn/public_html/archive"
View script to convert the format of files(txt to html)
#!/bin/bash
#Author : Neel
#Purpose : Convert a file to another format
for i in `find . -iname "*.txt"`; do mv $i ${i%.txt}.html; done