This repository has been archived on 2020-12-10. You can view files and clone it, but cannot push or open issues or pull requests.
IRProject/scraped/before_solr.sh
Claudio Maggioni (maggicl) 3d201a52cf ui mvp done
2020-11-18 23:44:51 +01:00

6 lines
347 B
Bash
Executable file

#!/bin/sh
rm tosolr.csv
touch tosolr.csv
pv 123rf.csv | awk '{print NR-1 "," $0}' | tail -n +2 | awk 'BEGIN {print "id,t_author,t_title,t_description,date,img_url,tags"} {print}' >> tosolr.csv
pv photos.csv | awk '{print NR-1 "," $0}' | tail -n +2 | awk 'BEGIN {print "id,t_author,t_title,t_description,date,img_url,tags"} {print}' >> tosolr.csv