ed - $i << 'EOF'
1,$s/^[spacetab]*//
w
q
'EOF'
The notation << 'EOF' means that the standard input for the ed command is to come from the text in the shell script file up to the
next line consisting of exactly EOF.
http://docs.hp.com/en/B2355-90046/ch14s03.html
shell 스크립트 에서는 'EOF' 를 사용해서
실행파일(ed)에 입력을 전달해 줄 수 가 있는데요,
이걸 C(혹은 C++) 에서도 할 수 있나요?
즉, C에서 실행 파일을 실행하고
이 실행 파일에 입력(다이나믹한)을 전달해 주고 싶은데,
이것이 가능한지 알고 싶습니다.
키워드나 간단한 예제 알려 주시면 고맙겠습니다.
미리 감사 드립니다.