User:Yiorgos Bagakis/prototyping/assignment1
I AM THAT I AM
After Brion Gysin's permutation poem
Description
Input example
iamthatiam.txt
I AM THAT I AM
I AM AM I THAT
I AM THAT AM I
I AM I THAT AM
I THAT AM I AM
I AM I AM THAT
I AM AM THAT I
I THAT AM AM I
THAT I I AM AM
AM THAT I I AM
AM AM THAT I I
AM I AM THAT I
AM AM I THAT I
AM AM I I THAT
AM THAT I AM I
AM I I THAT AM
AM I AM I THAT
AM I I AM THAT
THAT AM I I AM
AM I THAT AM I
THAT I AM AM I
AM I THAT I AM
AM THAT AM I I
THAT AM AM I I
THAT I AM I AM
I I AM AM THAT
I THAT I AM AM
I I THAT AM AM
THAT AM I AM I
I I AM THAT AM
iamthatiam.sed
s/I/c /g
s/AM/d /g
s/THAT/e /g
Then I executed the iamthatiam.sed on the terminal and with pipeline I created a txt file
sed -f iamthatiam.sed iamthatiam.txt > iati-out.txt
iata-out.txt output:
c d e c d
c d d c e
c d e d c
c d c e d
c e d c d
c d c d e
c d d e c
c e d d c
e c c d d
d e c c d
d d e c c
d c d e c
d d c e c
d d c c e
d e c d c
d c c e d
d c d c e
d c c d e
e d c c d
d c e d c
e c d d c
d c e c d
d e d c c
e d d c c
e c d c d
c c d d e
c e c d d
c c e d d
e d c d c
c c d e d
wrap.sh
cat << END
@head {
\$time_sig 4/4
\$tempo 120
}
@body {
@channel 1 {
\$patch 14
\$octave 4
\$length 64
END
cat << END
}
}
END