Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ml4ai/tomcat
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshp committed Jul 16, 2024
2 parents cbda7ad + 6892881 commit eeaee4f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tools/extract_logs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Script to extract all logs from study3 data
# Usage: ./extract_logs

echo "Decompressing and unarchiving the .tar.gz files in parallel..."

ls /media/mule/projects/tomcat/protected/study-3_2022/HSR*.tar.gz \
| parallel --plus --bar 'mkdir {/..} ; tar -xzf {} -C {/..}'

#echo "Amending the features.sql files to replace 'CREATE TABLE' with 'CREATE TABLE IF NOT EXISTS'"

#ls */*/features.sql | parallel --bar sed -i 's/CREATE TABLE/CREATE TABLE IF NOT EXISTS'

0 comments on commit eeaee4f

Please sign in to comment.