#!/bin/bash cat << EOF | awk '{ sub(/REPLACE/, ++i) } 1' text REPLACEtext REPLACEtext REPLACEtext REPLACEEOF
Standard input is empty
text 1 text 2 text 3 text 4
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!