Skip to content
Snippets Groups Projects
Commit aa051818 authored by Peter Alexander's avatar Peter Alexander
Browse files

Concat script change

parent f3bee41b
No related branches found
No related tags found
No related merge requests found
...@@ -7,12 +7,12 @@ fi ...@@ -7,12 +7,12 @@ fi
concatLcFile=$1/lc_concat.txt concatLcFile=$1/lc_concat.txt
concatPriceFile=$1/price_concat.txt concatPriceFile=$1/price_concat.txt
echo "Scenario,Year,Cropland,Pasture,Forest,Natural,Fert_crop,Fert_pasture,Irrig_crop,Irrig_pasture" > $concatLcFile echo "Scenario,Year,Cropland,Pasture,ManForest,UnmanForest,Natural,FertCrop,FertPasture,IrrigCrop,IrrigPasture" > $concatLcFile
echo "Scenario,Year,Crop,Imports,Exports,Price,Stocks" > $concatPriceFile echo "Scenario,Year,Crop,Imports,Exports,Price,Stocks" > $concatPriceFile
find . -name "*lc.txt"|while read fname; do find . -name "*lc.txt"|while read fname; do
scenarioDir="$(dirname $fname)" scenarioDir="$(dirname $fname)"
scenario="$(basename $scenarioDir)" scenario="$(echo $scenarioDir | sed 's,\.\/,,' | sed 's,\/,_,g')"
echo "$scenario: $fname" echo "$scenario: $fname"
i=1 i=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment