twat/startup/setup/setup_likedFrom.sh

6 lines
229 B
Bash
Raw Normal View History

2024-06-29 11:29:35 +02:00
#!/bin/bash
LIKED_FROM_FILES="/tmp/startup/data/tweet_liked/*"
for f in $LIKED_FROM_FILES; do
cqlsh cass1 -e "COPY twitter.tweet_liked_from (tweet_id,liked_from,date_time) FROM '$f' WITH DELIMITER=',' AND HEADER=TRUE;"
done