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 -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -