Deep Water | w1-command line generated poem

One of the movies that I really love is the Big Blue by Luc Besson, so I found the quotes from the movie which is also the source text for my first computer generated poem here.

>>>>>>>>>> PROCESS OF MAKING <<<<<<<<<<<<


//TO TAKE OUT THE NAME: IN EACH LINE IN THEBIGBLUEQUOTES.TXT
cut -d : -f2- <theBigBlueQuotes.txt
//only take the lines that contain Don't - You - About
grep "Don't " <1.txt >>2.txt
grep "You " <1.txt >>2.txt
grep "About " <1.txt >>2.txt

//take the line that has word "water"
grep water <2.txt >water.txt

//fold the line
fold -bs -w 24 <water.txt >waterFolded.txt

//sort the folded line
sort <waterFolded.txt >waterSorted.txt

The following are the wrong code for this time

>>>>>>EXPLORATIONS>>>>>>>>>>>

To find all lines in a file which do not contain the words `foo’ or `bar’:
$ grep -v -e ‘foo’ -e ‘bar’ myfile

In this example, delete foo word from input:
echo ‘This is a foo test’ | sed -e ‘s/\<foo\>//g’

To delete all words ending with a letter ‘g’ in each line, enter:
sed -e ‘s/\<[a-zA-Z0-9]*[g|G]\>//g’ input

In this example, delete bar word from input:
awk ‘{gsub(“bar”, “”);print}’ <<< “This is a bar test”

awk ‘{gsub(“Johanna:”,””);print}’ <theBigBlueQuotes.txt | awk ‘{gsub(“Jacques:”,””);print}’ <theBigBlueQuotes.txt | awk ‘{gsub(“Noireuter:”,””);print}’ <theBigBlueQuotes.txt | awk ‘{gsub(“Enzo:”,””);print}’ <theBigBlueQuotes.txt | awk ‘{gsub(“Roberto:”,””);print}’ <theBigBlueQuotes.txt | awk ‘{gsub(“Dr. Laurence:”,””);print}’ <theBigBlueQuotes.txt | awk ‘{gsub(“Supervisor:”,””);print}’ <theBigBlueQuotes.txt | awk ‘{gsub(“Uncle Louis:”,””);print}’ <theBigBlueQuotes.txt | awk ‘{gsub(“Sally:”,””);print}’ <theBigBlueQuotes.txt | awk ‘{gsub(“Young Jacques:”,””);print}’ <theBigBlueQuotes.txt

Leave a Reply

Your email address will not be published. Required fields are marked *