projects
/
pdt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1bed5f3
)
minor: docs
master
author
Ian Kelling
<iank@fsf.org>
Tue, 5 Mar 2024 10:10:53 +0000
(
05:10
-0500)
committer
Ian Kelling
<iank@fsf.org>
Tue, 5 Mar 2024 10:10:53 +0000
(
05:10
-0500)
pdt.sh
patch
|
blob
|
blame
|
history
diff --git
a/pdt.sh
b/pdt.sh
index d8fd978f733d4dbd32d73b4c75201fed2a795d75..9ac3107c44d137fbb4cabd32cd73ff62dddba53e 100644
(file)
--- a/
pdt.sh
+++ b/
pdt.sh
@@
-231,6
+231,9
@@
toot() {
#
# sed -r 's,/teof/.*,,;s/ *-(m|a|-dbd) [^ ]*//;s,https?://[^ ]*,https://xxxxxxxxxxxxxxx,g' FILE | awk '$0 !~ /\/tnt\// && length > 280 {print length, $0}'
#
#
# sed -r 's,/teof/.*,,;s/ *-(m|a|-dbd) [^ ]*//;s,https?://[^ ]*,https://xxxxxxxxxxxxxxx,g' FILE | awk '$0 !~ /\/tnt\// && length > 280 {print length, $0}'
#
+# That will print the length of the post as twitter sees it (with 23
+# characters per url).
+#
# broken usage:
# pdt [-v VIDEO_PATH] [POST]
#
# broken usage:
# pdt [-v VIDEO_PATH] [POST]
#