shell - Looping through file lines in bash -


how can loop through each line of file , use line in command in bash ${/'#include "'/"a"} ? (i'm trying replace includes else in line)

use sed or awk replace want. example bellow #include string found in filea replaced customtext. no need of loop in case.

 sed -i  's/\#include/customtext/g' filea 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -