I want to run this command on all of the files that I have in a directory
twarc hydrate "FileInputName" > "FileOutput_Num.json"
I wrote this bash script, but I get a lot of errors.
#!/bin/bash
num=0
for FILE in /Users/Chase/Desktop/twitter_hydration/Beyond the Hashtags/*.txt ; do
twarc hydrate $file tweets$(num).jsonl
$num = $num + $num
done
I'm new to this so any help is appreciated.
edit.
#!/bin/bash
num=0
for file in *.txt ; do
twarc hydrate "$(file)" > tweets"$(num)".jsonl
num=$(( num + num ))
done