Author Archives: LinuxTech

Repair table in Virtualizor

Facing issues in Virtualizor for database crash ? The mysql library is not located in normal  /var/lib/mysql it located in /usr/local/emps/bin/

To repair database you need to use below command

[root@hostabc.virtualizor]# /usr/local/emps/bin/myisamchk -r *.MYI

Once completed all things should back to normal 🙂

 

Remove spaces between words

You may have comes across situation where you have to manually edit a single file using excel or words to remove the space between words which is taking consuming and Boring 🙂

The below command can do the trick in one command to save your day

 

cat 116.txt | sed -e ‘s/[\t ]//g;/^$/d’  > test12

116.txt is the input file which has spaces between words

sed -e ‘s/[\t ]//g;/^$/d’  is the command to clear space in words