|
Last change
on this file since 13926 was 12750, checked in by lyard, 14 years ago |
|
added ingest stuff
|
-
Property svn:executable
set to
*
|
|
File size:
416 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 |
|
|---|
| 3 | filename=$1
|
|---|
| 4 |
|
|---|
| 5 | filenameonly=${filename##*/}
|
|---|
| 6 |
|
|---|
| 7 | filenameonly=${filenameonly%%.fits}
|
|---|
| 8 |
|
|---|
| 9 | echo $filenameonly
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 | #first construct the correct file name
|
|---|
| 13 | # filenameonly=${entry##*/}
|
|---|
| 14 | # year="2011"
|
|---|
| 15 | # month=${filenameonly}
|
|---|
| 16 | #second construct the destination path.
|
|---|
| 17 | # filenameonly=${entry##*/}
|
|---|
| 18 | # pathonly=${entry%$filenameonly}
|
|---|
| 19 | # extrapathonly=${pathonly#$sourceFolder/}
|
|---|
| 20 | # targetFolder=$destFolder"/"$extrapathonly
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.