Merge pull request 'main' (#1) from g1n/twtxt-c:main into main

Reviewed-on: #1
This commit is contained in:
r1k 2021-07-05 15:17:38 +00:00
commit 2c9b5bd6a7
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,9 @@ case $1 in
export config=/home/$USER/.config/twtxt-c/config
printf "%s\t%s\n" "$(date +'%FT%T%:z')" "$2" >> $(awk '/twtfile/ {print $3}' $config)
;;
view)
curl $2 2>/dev/null | grep -v "#" | awk 'BEGIN { FS = "\t" } ; {print $2}'
;;
*)
printf "Work in progress\n" ;;
esac