From 9a14c05efda4cd08f023f5ead9b187d33c6bf0df Mon Sep 17 00:00:00 2001
From: kxt1g21 <kxt1g21@soton.ac.uk>
Date: Mon, 8 May 2023 10:34:18 +0800
Subject: [PATCH] (Commit message) Convert txt file to csv

---
 create_csv.sh | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100755 create_csv.sh

diff --git a/create_csv.sh b/create_csv.sh
new file mode 100755
index 0000000..23bb58c
--- /dev/null
+++ b/create_csv.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+video1=$(cat documentary.txt | cut -d',' -f2,3)
+echo "$video1" > documentary.csv
+
+video2=$(cat duneTrailer.txt | cut -d',' -f2,3)
+echo "$video2" > duneTrailer.csv
+
+video3=$(cat gamingVideo.txt | cut -d',' -f2,3)
+echo "$video3" > gamingVideo.csv
+
+video4=$(cat iveMusic.txt | cut -d',' -f2,3)
+echo "$video4" > iveMusic.csv
+
+video5=$(cat jisooMusic.txt | cut -d',' -f2,3)
+echo "$video5" > jisooMusic.csv
+
+video6=$(cat jvkeMusic.txt | cut -d',' -f2,3)
+echo "$video6" > jvkeMusic.csv
+
+video7=$(cat mukbangVideo.txt | cut -d',' -f2,3)
+echo "$video7" > mukbangVideo.csv
+
+video8=$(cat musicPlaylist.txt | cut -d',' -f2,3)
+echo "$video8" > musicPlaylist.csv
+
+video9=$(cat offlineTVVideo.txt | cut -d',' -f2,3)
+echo "$video9" > offlineTVVideo.csv
+
+video10=$(cat tendam.txt | cut -d',' -f2,3)
+echo "$video10" > tendam.csv
-- 
GitLab