mirror of https://github.com/OISF/suricata
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			27 lines
		
	
	
		
			479 B
		
	
	
	
		
			Bash
		
	
		
		
			
		
	
	
			27 lines
		
	
	
		
			479 B
		
	
	
	
		
			Bash
		
	
| 
								 
											14 years ago
										 
									 | 
							
								#!/bin/bash
							 | 
						||
| 
								 | 
							
								#
							 | 
						||
| 
								 | 
							
								#
							 | 
						||
| 
								 | 
							
								if [ "$1" = "" ]; then
							 | 
						||
| 
								 | 
							
								    echo "call with location of csv file."
							 | 
						||
| 
								 | 
							
								    exit 1;
							 | 
						||
| 
								 | 
							
								fi
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								DRAW="boxes"
							 | 
						||
| 
								 | 
							
								gnuplot << EOF
							 | 
						||
| 
								 | 
							
								set datafile separator ","
							 | 
						||
| 
								 | 
							
								set terminal png size 1024,768
							 | 
						||
| 
								 | 
							
								set output "$1.png"
							 | 
						||
| 
								 | 
							
								set title "$1 ticks"
							 | 
						||
| 
								 | 
							
								set key autotitle columnhead
							 | 
						||
| 
								 | 
							
								set yrange [:]
							 | 
						||
| 
								 | 
							
								set xrange [:]
							 | 
						||
| 
								 | 
							
								set logscale y
							 | 
						||
| 
								 | 
							
								plot "$1" using :32 with $DRAW, \
							 | 
						||
| 
								 | 
							
								         "" using :54 with $DRAW, \
							 | 
						||
| 
								 | 
							
								         "" using :42 with points
							 | 
						||
| 
								 | 
							
								EOF
							 | 
						||
| 
								 | 
							
								RESULT=$?
							 | 
						||
| 
								 | 
							
								if [ "$RESULT" = "0" ]; then
							 | 
						||
| 
								 | 
							
								    echo "PNG $1.png written"
							 | 
						||
| 
								 | 
							
								fi
							 |