#!/bin/bash SOH=$'\001' STX=$'\002' for f in File{1..3}.cpp; do sed "s/^/$f: /" $f echo done echo File1.cpp with STXs for LFs: