I'm using a bash script to read in data from a text file.
Data:
04:31 Alex M.O.R.P.H. & Natalie Gioia - My Heaven https://www.facebook.com/alexmorph
[ARMADA MUSIC]
07:46 Fabio XB & Liuck feat. Christina Novelli - Back To You (Wach Remix)http://goo.gl /yGxqRX
[DIGITAL SOCIETY RECORDINGS]
code:
#!/bin/bash
file="/home/nexusfactor/Desktop/inputData(linux).txt"
while IFS= read -r line
do
# display $line or do somthing with $line
echo "$line"
done <"$file"
I would like to remove the white space between the two songs, then remove the time at the beginning of the song and the hyperlink/studio name from the end of the file. So my output would be:
Alex M.O.R.P.H. & Natalie Gioia - My Heaven
Fabio XB & Liuck feat. Christina Novelli
sedandawk. Those command will be useful here.