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
Post a Comment