Tag archives for linux - Page 2

Could not resolve host: mirrorlist.centos.org Centos 7

I have installed Centos 7 in Vmware WorkStation. I tried to install few new packages using yum install. However, I was getting error "Could not resolve host: Centos 7" [root@localhost ~]# yum install dos2unix Loaded plugins: fastestmirror Could not retrieve mirrorlist ;arch=x86_64&repo=os&infra=stock error was 14: curl#6 - "Could not resolve…
Continue Reading
Linux

Deleting Lines Containing Specific string from multiple files

Deleting Lines Containing Specific string from multiple files Deleting Lines Containing Specific string from multiple files recursively Syntax: grep -Rl "STRING" /directory/path/ | xargs sed -i "/STRING/d" Example: Below example delete lines containing @license tag from src/main/php directory all files recursively grep -Rl "@license" src/main/php | xargs sed -i "/@license/d"…
Continue Reading
Verified by MonsterInsights