source: gs3-installations/intermuse/trunk/sites/intermuse/collect/programmes-and-performers/prepare/03-COPY-SPREADSHEET-TO-IMPORT-SMALL.sh@ 37222

Last change on this file since 37222 was 37222, checked in by davidb, 15 months ago

Expansion and rearrangement of PREPARE scripts

  • 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.