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 |
|
---|
3 | if [ ! -d ../import-small ] ; then
|
---|
4 | echo ""
|
---|
5 | echo "Creating directory:"
|
---|
6 | echo " import-small"
|
---|
7 | echo ""
|
---|
8 | mkdir ../import-small
|
---|
9 | fi
|
---|
10 |
|
---|
11 | #ifilename="HMS Catalogue.xlsx - Table.csv"
|
---|
12 | #ofilename="../import-small/HMS Catalogue.xlsx - Table-SMALL.csv"
|
---|
13 |
|
---|
14 |
|
---|
15 | ifilename="HMS-Catalogue.csv"
|
---|
16 | ofilename="../import-small/HMS-Catalogue-SMALL.csv"
|
---|
17 |
|
---|
18 | echo ""
|
---|
19 | echo "Copying first 300 lines of CSV '$ifilename' file to ../import-small/."
|
---|
20 |
|
---|
21 | head -n 301 "$ifilename" > "$ofilename"
|
---|
22 |
|
---|
23 | echo ""
|
---|
Note:
See
TracBrowser
for help on using the repository browser.