script for title extraction

This commit is contained in:
nate smith 2024-02-02 12:12:03 -08:00
parent 0472c3766f
commit 0972186c85

8
ingest.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
p="/home/vilmibm/pg_plaintext/files/"
while read book; do
title=`grep "*** START OF THE PROJECT GUTENBERG" $p$book | sed 's/^\*\*\* START OF THE PROJECT GUTENBERG EBOOK //' | sed 's/\*\*\*//'`
echo $book,$title
done