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

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -