Skip to content
Snippets Groups Projects
Select Git revision
  • 5216d1980f0c8b9795b044c1bf8e0c8f6a39aaea
  • master default protected
  • Binary
  • add-version-information
  • os-path-join
  • develop-GA
  • timeFstatmap
  • add-higher-spindown-components
  • develop-DK
  • adds-header-to-grid-search
  • v1.3
  • v1.2
  • v1.1.2
  • v1.1.0
  • v1.0.1
15 results

twoF_cumulative.py

Blame
  • Forked from Gregory Ashton / PyFstat
    Source project has a limited visibility.
    script 575 B
    #! /bin/bash
    
    # This is a script to wrap smartctl output into http:// displayable form
    # It requires a filename as input, and produces an file with a .html extension as output
    
    if [ $# -ne 1 ] ; then
    	echo This script requires one a file as input
    	exit 1
    fi
    
    model=`grep "Device Model"  $1  | awk '{print $3}' `
    
    # see if file name in use
    let i=0
    while [ -f $model-$i.html ] ; do
    	let i+=1
    done
    
    filename=$model-$i
    echo -e "<pre><tt>\n"    > $filename.html
    cat $1                  >> $filename.html
    echo -e "</tt></pre>\n" >> $filename.html
    
    echo created file $filename.html