diff options
author | Senemu <10880819+Senemu@users.noreply.github.com> | 2023-05-24 06:16:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 09:16:22 +0300 |
commit | 1359b6aba55d5b0410f6adaa0aa2e49bbfd01d84 (patch) | |
tree | 5c7b20ca45d3cce5c2c16aaf45b8b0cab827b361 | |
parent | 7d873811f31d4d8c909015c946a862c0089cda7d (diff) |
chat-persistent.sh : use bracket expressions in grep (#1564)
-rwxr-xr-x | examples/chat-persistent.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/chat-persistent.sh b/examples/chat-persistent.sh index b32284b..e0c251e 100755 --- a/examples/chat-persistent.sh +++ b/examples/chat-persistent.sh @@ -23,8 +23,8 @@ CUR_PROMPT_CACHE="${CHAT_SAVE_DIR}/current-cache.bin" NEXT_PROMPT_FILE="${CHAT_SAVE_DIR}/next-prompt.txt" NEXT_PROMPT_CACHE="${CHAT_SAVE_DIR}/next-cache.bin" -SESSION_SIZE_MSG_PATTERN='main: session file matches \d+ / \d+' -SAMPLE_TIME_MSG_PATTERN='sample time =\s+\d+.\d+ ms /\s+\d+' +SESSION_SIZE_MSG_PATTERN='main: session file matches [[:digit:]]+ / [[:digit:]]+' +SAMPLE_TIME_MSG_PATTERN='sample time =[[:space:]]+[[:digit:]]+.[[:digit:]]+ ms /[[:space:]]+[[:digit:]]+' SED_DELETE_MESSAGES="/^(${USER_NAME}:|${AI_NAME}:|\\.\\.\\.)/,\$d" CTX_SIZE=2048 |