source: gs3-installations/intermuse/trunk/sites/intermuse/collect/performers/prepare/02-COPY-SPREADSHEET-TO-IMPORT-SMALL.sh@ 37071

Last change on this file since 37071 was 37071, checked in by davidb, 16 months ago

Changed to work with new of generating the CSV file directly from the XSLX file

  • Property svn:executable set to *
File size: 489 bytes
Line 
1#!/bin/bash
2
3if [ ! -d ../import-small ] ; then
4 echo ""
5 echo "Creating directory:"
6 echo " import-small"
7 echo ""
8 mkdir ../import-small
9fi
10
11#ifilename="HMS Catalogue.xlsx - Table.csv"
12#ofilename="../import-small/HMS Catalogue.xlsx - Table-SMALL.csv"
13
14
15ifilename="HMS-Catalogue.csv"
16ofilename="../import-small/HMS-Catalogue-SMALL.csv"
17
18echo ""
19echo "Copying first 300 lines of CSV '$ifilename' file to ../import-small/."
20
21head -n 301 "$ifilename" > "$ofilename"
22
23echo ""
Note: See TracBrowser for help on using the repository browser.