BASIS  version 1.2.3 (revision 2104)
make_html_verbatim.sh
Go to the documentation of this file.
00001 ##############################################################################
00002 # @file  make_html_verbatim.sh
00003 # @brief Auxiliary script used to convert plain text file such that the
00004 #        content can be pasted into the body of a HTML <verbatim> tag.
00005 #
00006 # Copyright (c) 2011 University of Pennsylvania. All rights reserved.<br />
00007 # See https://www.cbica.upenn.edu/sbia/software/license.html or COPYING file.
00008 #
00009 # Contact: SBIA Group <sbia-software at uphs.upenn.edu>
00010 ##############################################################################
00011 
00012 if [ $# -eq 0 -o "$1" == "--help" -o "$1" == "--helpshort" -o "$1" == "-h" ]; then
00013     echo "Usage: make_html_verbatim <text file>"
00014     exit 1
00015 fi
00016 
00017 sed 's/</\&lt;/g;s/>/\&gt;/g' "$1"