Created
June 27, 2014 05:55
-
-
Save j-mcc1993/9716d5586b8940eb3b16 to your computer and use it in GitHub Desktop.
Short Shell Script that runs expect script to grab Ephemeris data and stores output into files with unique names.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
EPHEMFILE=Ephem_Data_$(date "+%Y-%m-%d|%H-%M-%S").txt | |
OUTFILE=Output_$(date "+%Y-%m-%d|%H-%M-%S").txt | |
./expect_ftp.sh >/dev/null | |
READ=$(ls|grep .*\.15) | |
cat $READ > $OUTFILE | |
cat $OUTFILE | sed -n '/$$SOE/,/$$EOE/p' | sed -e 's/\$.*//' -e '/^$/ d' > $EPHEMFILE | |
cat "$EPHEMFILE" | |
rm $READ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment