use sed to change value in file code example Example: sed replace in file sed -i 's/foo/bar/g' hello.txt