We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84e7d59 commit b74ddfbCopy full SHA for b74ddfb
packages/srtcpy.sh
@@ -18,9 +18,15 @@ if [ ! -f "$filename" ]; then
18
exit 1
19
fi
20
21
-# Process the file
22
-echo "summarize this --- $(tr -d '\r' < "$filename" | \
23
- sed -e '/^[[:space:]]*$/d' -e '/^[0-9]/d' | \
24
- uniq)"
+instructions="Instructions: Summarize the following article."
+start_tag="[START ARTICLE]"
+end_tag="[END ARTICLE]"
+
25
26
+output=$(tr -d '\r' < "$filename" | \
27
+ sed -e '/^[[:space:]]*$/d' -e '/^[0-9]/d' | \
28
+ uniq)
29
30
+printf "%s\n\n%s\n%s\n\n%s\n" "${instructions}" "${start_tag}" "${output}" "${end_tag}"
31
32
exit 0
0 commit comments