27 lines
		
	
	
		
			418 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			418 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
# call me from the parent directory
 | 
						|
 | 
						|
echo "This script performs the complete analysis steps"
 | 
						|
 | 
						|
function prepare(){
 | 
						|
  pushd datasets
 | 
						|
  ./decompress.sh
 | 
						|
  popd
 | 
						|
 | 
						|
  for I in datasets/*.csv ; do
 | 
						|
    ln -s $I
 | 
						|
  done
 | 
						|
}
 | 
						|
 | 
						|
# prepare
 | 
						|
 | 
						|
for I in job_similarities_*.csv ; do
 | 
						|
  rm *.png *.pdf
 | 
						|
  ./scripts/plot.R $I > description.txt
 | 
						|
  OUT=${I%%.csv}-out
 | 
						|
  mkdir $OUT
 | 
						|
  rm $OUT/*
 | 
						|
  mv *.png *.pdf description.txt $OUT
 | 
						|
done
 |