I have a zip file that contains a CSV and I would like to unzip that into a specific folder and rename the file the same as the zip file name. For example.,
I have a zip file named: youtube_videos.csv.zip and I would like to unzip it to a certain folder called target and rename the file in that folder to youtube-videos.csv. I have it, but in two lines as below:
unzip datasets/youtube_videos.csv.zip -d target
mv target/videos_data.csv target/youtube_videos.csv
Is there a one liner that could be used?