=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== dicom3tools-1.00~20190724083540/appsrc/misc/binpatch.test.sh-2- dicom3tools-1.00~20190724083540/appsrc/misc/binpatch.test.sh:3:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/misc/binpatch.test.sh-4- ############################################## dicom3tools-1.00~20190724083540/appsrc/misc/binpatch.test.sh-79- dicom3tools-1.00~20190724083540/appsrc/misc/binpatch.test.sh:80: length=`echo "$v" | sed 's/^\([0-9]*\)[.].*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/misc/binpatch.test.sh:81: value=`echo "$v" | sed 's/^[0-9]*[.]\(.*\)$/ \1/'` dicom3tools-1.00~20190724083540/appsrc/misc/binpatch.test.sh-82- ############################################## dicom3tools-1.00~20190724083540/appsrc/misc/gethttp.test.sh-7- dicom3tools-1.00~20190724083540/appsrc/misc/gethttp.test.sh:8:for i in `(cd $LOCALPATH; find $HTTPPATH -type f -print)` dicom3tools-1.00~20190724083540/appsrc/misc/gethttp.test.sh-9-do ############################################## dicom3tools-1.00~20190724083540/appsrc/acrnema/andiff.script-6-then dicom3tools-1.00~20190724083540/appsrc/acrnema/andiff.script:7: echo "usage: `basename $0` file1 file2" dicom3tools-1.00~20190724083540/appsrc/acrnema/andiff.script-8- exit 1 ############################################## dicom3tools-1.00~20190724083540/appsrc/acrnema/andiff.script-10- dicom3tools-1.00~20190724083540/appsrc/acrnema/andiff.script:11:TMPFILE1=/tmp/`basename $0`.$$.tmp1 dicom3tools-1.00~20190724083540/appsrc/acrnema/andiff.script:12:TMPFILE2=/tmp/`basename $0`.$$.tmp2 dicom3tools-1.00~20190724083540/appsrc/acrnema/andiff.script-13- ############################################## dicom3tools-1.00~20190724083540/appsrc/acrnema/Imakefile-62-testcompareandcwithoriginal: dicom3tools-1.00~20190724083540/appsrc/acrnema/Imakefile:63: for i in `cat $(TOP)/images/acrnema/testlist` ; \ dicom3tools-1.00~20190724083540/appsrc/acrnema/Imakefile-64- do \ dicom3tools-1.00~20190724083540/appsrc/acrnema/Imakefile-65- echo "acrnema/$$i"; \ dicom3tools-1.00~20190724083540/appsrc/acrnema/Imakefile:66: andiff $(TOP)/images/acrnema/$$i $(TOP)/test/$(CURRENT_DIR)/`echo $$i | sed 's:/:.:g'`.ancp.ancp.outfile; \ dicom3tools-1.00~20190724083540/appsrc/acrnema/Imakefile-67- done dicom3tools-1.00~20190724083540/appsrc/acrnema/Imakefile:68: for i in `cat $(TOP)/images/dicom/testlist`; \ dicom3tools-1.00~20190724083540/appsrc/acrnema/Imakefile-69- do \ dicom3tools-1.00~20190724083540/appsrc/acrnema/Imakefile-70- echo "dicom/$$i"; \ dicom3tools-1.00~20190724083540/appsrc/acrnema/Imakefile:71: andiff $(TOP)/images/dicom/$$i $(TOP)/test/$(CURRENT_DIR)/`echo $$i | sed 's:/:.:g'`.ancp.ancp.outfile; \ dicom3tools-1.00~20190724083540/appsrc/acrnema/Imakefile-72- done ############################################## dicom3tools-1.00~20190724083540/appsrc/acrnema/test.create.ut.sh-4- dicom3tools-1.00~20190724083540/appsrc/acrnema/test.create.ut.sh:5:TMPROOT="/tmp/`basename $0`.$$" dicom3tools-1.00~20190724083540/appsrc/acrnema/test.create.ut.sh-6- ############################################## dicom3tools-1.00~20190724083540/appsrc/acrnema/test.create.private.un.sh-4- dicom3tools-1.00~20190724083540/appsrc/acrnema/test.create.private.un.sh:5:TMPROOT="/tmp/`basename $0`.$$" dicom3tools-1.00~20190724083540/appsrc/acrnema/test.create.private.un.sh-6- ############################################## dicom3tools-1.00~20190724083540/appsrc/simple/README-17- out="$2" dicom3tools-1.00~20190724083540/appsrc/simple/README:18: maxval=`pgmhist <$in | tail -1 | awk '{print $1}'` dicom3tools-1.00~20190724083540/appsrc/simple/README-19- if [ "$maxval" -le 255 ] ; then maxval=256; fi ############################################## dicom3tools-1.00~20190724083540/appsrc/simple/README-25- out="$2" dicom3tools-1.00~20190724083540/appsrc/simple/README:26: maxval=`pgmhist <$in | tail -1 | awk '{print $1}'` dicom3tools-1.00~20190724083540/appsrc/simple/README-27- if [ "$maxval" -gt 255 ] dicom3tools-1.00~20190724083540/appsrc/simple/README-28- then dicom3tools-1.00~20190724083540/appsrc/simple/README:29: maxval=`expr "$maxval" + 1` dicom3tools-1.00~20190724083540/appsrc/simple/README:30: gamma=`expr "$maxval" / 256` dicom3tools-1.00~20190724083540/appsrc/simple/README-31- pnmgamma "$gamma" <"$in" | pnmdepth 255 >"$out" ############################################## dicom3tools-1.00~20190724083540/appsrc/simple/README-40- grepstring="[ ]$percent[.%][0-9]*[%]*\$" dicom3tools-1.00~20190724083540/appsrc/simple/README:41: maxval=`pgmhist <$in | grep "$grepstring" | tail -1 | awk '{print $1}'` dicom3tools-1.00~20190724083540/appsrc/simple/README-42- if [ "$maxval" -gt 255 ] dicom3tools-1.00~20190724083540/appsrc/simple/README-43- then dicom3tools-1.00~20190724083540/appsrc/simple/README:44: maxval=`expr "$maxval" + 1` dicom3tools-1.00~20190724083540/appsrc/simple/README:45: gamma=`expr "$maxval" / 256` dicom3tools-1.00~20190724083540/appsrc/simple/README-46- pnmgamma "$gamma" <"$in" | pnmdepth 255 >"$out" ############################################## dicom3tools-1.00~20190724083540/appsrc/dconvert/toshiba/toshtodc.script-4- dicom3tools-1.00~20190724083540/appsrc/dconvert/toshiba/toshtodc.script:5:#TMPFILE="/tmp/`basename $0`.$$.tmp" dicom3tools-1.00~20190724083540/appsrc/dconvert/toshiba/toshtodc.script-6-STAMP=`date +%Y%m%d%H%M%S`.$$ ############################################## dicom3tools-1.00~20190724083540/appsrc/dconvert/toshiba/toshtodc.script-9-do dicom3tools-1.00~20190724083540/appsrc/dconvert/toshiba/toshtodc.script:10: #basefilename=`basename "${i}" "${rawpixeldataextension}"` dicom3tools-1.00~20190724083540/appsrc/dconvert/toshiba/toshtodc.script:11: basefilename=`echo "${i}" | sed -e 's/[.][Ii][Mm][Gg]$//'` dicom3tools-1.00~20190724083540/appsrc/dconvert/toshiba/toshtodc.script-12- rawpixeldatafile="${i}" ############################################## dicom3tools-1.00~20190724083540/appsrc/dconvert/toshiba/toshtodc.script-27- dicom3tools-1.00~20190724083540/appsrc/dconvert/toshiba/toshtodc.script:28: rawfilelength=`ls -l "${i}" | awk '{print $5}'` dicom3tools-1.00~20190724083540/appsrc/dconvert/toshiba/toshtodc.script-29- #echo "rawfilelength=${rawfilelength}" ############################################## dicom3tools-1.00~20190724083540/appsrc/dconvert/pace/paceunid.script-8-then dicom3tools-1.00~20190724083540/appsrc/dconvert/pace/paceunid.script:9: echo "Usage: `basename $0` infile outfile" 1>&2 dicom3tools-1.00~20190724083540/appsrc/dconvert/pace/paceunid.script-10- exit 1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh-8- dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh:9:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh-10- ############################################## dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh-12- dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh:13: unixdate=`$MKTIME "$3" "$4" "$5" "$6" "$7" "$8" | awk '{print $4;}'` dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh-14- ############################################## dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh-27- dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh:28: unixdate=`$MKTIME "$3" "$4" "$5" "$6" "$7" "$8" | awk '{print $4;}'` dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh-29- ############################################## dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh-135- echo "$datea" >>"$dst" dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh:136: yyyy=`echo "$datea" | sed 's/^\([0-9][0-9][0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh:137: mm=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh:138: dd=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh:139: hh=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh:140: min=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh:141: ss=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.][0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/testy2k.sh-142- ############################################## dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/gentodc.dat.all.script-18-then dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/gentodc.dat.all.script:19: echo 1>&2 "Usage: `basename $0` dirname" dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/gentodc.dat.all.script-20- exit 1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/gentodc.dat.all.script-22- dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/gentodc.dat.all.script:23:for i in `find "$1" -type f -print` dicom3tools-1.00~20190724083540/appsrc/dconvert/gen/gentodc.dat.all.script-24-do ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcrmsfx.all.script-8- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcrmsfx.all.script:9:for i in `find "$1" -name '*.dcm' -print` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcrmsfx.all.script-10-do dicom3tools-1.00~20190724083540/appsrc/dcfile/dcrmsfx.all.script:11: newname=`echo "$i" | sed 's/[.]dcm$//'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcrmsfx.all.script-12- echo "Moving $i to $newname" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcswab.script-5- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcswab.script:6:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dcfile/dcswab.script-7- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.20000802:1:#!/bin/sh# usage: dcunjpeg infile outfile## only works for 16 not 8 bits due to hardwired OWTMPROOT=/tmp/`basename $0`.$$ANCREATE=ancreateDCCP=dccpDCDUMP=dcdumpDCTORAW=dctorawJPEG=jpegbitsallocatedhex=`dckey -k BitsAllocated "$1" 2>&1`bitsallocatedhigh=`echo "$bitsallocatedhex" | sed -e 's/0[xX][0-9aAbBcCdDeEfF]*\([0-9aAbBcCdDeEfF]\)[0-9aAbBcCdDeEfF]$/\1/' | sed -e 's/[aA]/10/' -e 's/[bB]/11/' -e 's/[cC]/12/' -e 's/[dD]/13/' -e 's/[eE]/14/' -e 's/[fF]/15/'`bitsallocatedlow=`echo "$bitsallocatedhex" | sed -e 's/0[xX][0-9aAbBcCdDeEfF]*\([0-9aAbBcCdDeEfF]\)$/\1/' | sed -e 's/[aA]/10/' -e 's/[bB]/11/' -e 's/[cC]/12/' -e 's/[dD]/13/' -e 's/[eE]/14/' -e 's/[fF]/15/'`bitsallocated=`expr "$bitsallocatedhigh" '*' 16 + "$bitsallocatedlow"`if [ "$bitsallocated" -le 8 ]then oborowsed='s/VR=<O[BW]>/VR=<OB>/'else oborowsed='s/VR=<O[BW]>/VR=<OW>/'fi$DCDUMP $1 2>&1 | grep '10) OX Pixel Data' | sed -e 's/$/ []/' -e "$oborowsed" | $ANCREATE -e > $TMPROOT.pixelhead$DCTORAW -quiet $1 $TMPROOT.jpg$JPEG -d $TMPROOTdd if=$TMPROOT of=$TMPROOT.raw.littleendian conv=swab$DCCP $1 $TMPROOT.nopixels -d PixelDatacat $TMPROOT.nopixels $TMPROOT.pixelhead $TMPROOT.raw.littleendian > $2rm -f $TMPROOT*exit 0 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script-13- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script:14:TMPFILE="/tmp/`basename $0`.$$.tmp" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script-15- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script-21- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script:22: patientid=`$DCKEY -k PatientID "$i" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9a-zA-Z_.-]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script:23: patientname=`$DCKEY -k PatientName "$i" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9a-zA-Z_.-]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script-24- patientlabel=$patientid$patientname ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script-30- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script:31: studyid=`$DCKEY -k StudyID "$i" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9a-zA-Z_.-]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script-32- if [ -z "$studyid" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script-36- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script:37: seriesnum=`$DCKEY -k SeriesNumber "$i" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9a-zA-Z_.-]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script-38- if [ -z "$seriesnum" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script-42- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script:43: imagenum=`$DCKEY -k InstanceNumber "$i" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9a-zA-Z_.-]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script-44- if [ -z "$imagenum" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script-69- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script:70: counter=`expr $counter '+' 1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.script-71-done ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.all.script-13-then dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.all.script:14: echo 1>&2 "Usage: `basename $0` dirname" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.all.script-15- exit 1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.all.script-19- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.all.script:20:"$DCMVHIER" `find "$1" -name "$FINDARG" -print` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.all.script-21- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script-25- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script:26: patientid=`$DCKEY -k PatientID "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Za-z0-9 ]/_/g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script-27- if [ -z "$patientid" ]; then patientid="NOID"; fi dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script:28: patientname=`$DCKEY -k PatientName "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Za-z0-9 ^=,.]/_/g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g' -e 's/^[.]/_/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script-29- if [ -z "$patientname" ]; then patientname="NONAME"; fi ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script-31- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script:32: studydate=`$DCKEY -k StudyDate "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Za-z0-9 ]/_/g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script-33- if [ -z "$studydate" ]; then studydate="19000101"; fi dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script:34: studytime=`$DCKEY -k StudyTime "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Za-z0-9 ]/_/g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g' -e 's/^\([0-9][0-9][0-9][0-9][0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script-35- if [ -z "$studytime" ]; then studytime="000000"; fi dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script:36: studyid=`$DCKEY -k StudyID "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Za-z0-9 ]/_/g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script:37: studydesc=`$DCKEY -k StudyDescription "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Za-z0-9 ]/_/g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script-38- if [ -z "$studydesc" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script-44- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script:45: seriesnum=`$DCKEY -k SeriesNumber "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9]//g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g' -e 's/^\([0-9]\)$/00\1/' -e 's/^\([0-9][0-9]\)$/0\1/' ` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script-46- if [ -z "$seriesnum" ]; then seriesnum="000"; fi dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script:47: seriesdesc=`$DCKEY -k SeriesDescription "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Za-z0-9 ]/_/g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script:48: modality=`$DCKEY -k Modality "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Za-z0-9 ]/_/g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script-49- serieslabel="Series $seriesnum [$modality - $seriesdesc]" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script-50- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script:51: instanceuid=`$DCKEY -k SOPInstanceUID "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9a-zA-Z_.-]//g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script-52- if [ -z "$instanceuid" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script-69- else dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script:70: if [ `ls -i "$srcfile" | awk '{print $1}'` = `ls -i "$newfile" | awk '{print $1}'` ] dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedesc.script-71- then ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcbzip2.script-5-# dicom3tools-1.00~20190724083540/appsrc/dcfile/dcbzip2.script:6:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dcfile/dcbzip2.script-7- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcsrdiff.script-10-then dicom3tools-1.00~20190724083540/appsrc/dcfile/dcsrdiff.script:11: echo "usage: `basename $0` [-identifier] file1 file2" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcsrdiff.script-12- exit 1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcsrdiff.script-14- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcsrdiff.script:15:TMPFILE1=/tmp/`basename $0`.$$.tmp1 dicom3tools-1.00~20190724083540/appsrc/dcfile/dcsrdiff.script:16:TMPFILE2=/tmp/`basename $0`.$$.tmp2 dicom3tools-1.00~20190724083540/appsrc/dcfile/dcsrdiff.script-17- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script-5- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script:6:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script-7- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script-24- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script:25:transfersyntaxuid=`"$DCKEY" -noerror -ignorereaderrors -ignoreoutofordertags -k TransferSyntaxUID "$1" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script-26- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script-32- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script:33:bits=`"$DCKEY" -noerror -ignorereaderrors -ignoreoutofordertags -decimal -k BitsAllocated "$1" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script-34- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script-40- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script:41:samplesperpixel=`"$DCKEY" -noerror -ignorereaderrors -ignoreoutofordertags -decimal -k SamplesPerPixel "$1" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script-42- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script-48- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script:49:rows=`"$DCKEY" -noerror -ignorereaderrors -ignoreoutofordertags -decimal -k Rows "$1" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script:50:columns=`"$DCKEY" -noerror -ignorereaderrors -ignoreoutofordertags -decimal -k Columns "$1" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script:51:frames=`"$DCKEY" -noerror -ignorereaderrors -ignoreoutofordertags -decimal -k NumberOfFrames "$1" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunrgb.script-52-if [ -z "$frames" ]; then frames=1; fi ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjls.script-6- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjls.script:7:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjls.script-8- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjls.script-30- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjls.script:31:components=`$DCKEY -d -k SamplesPerPixel "$infile" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjls.script-32-if [ "$components" != 1 ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjls.script-37- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjls.script:38:precision=`$DCKEY -d -k BitsStored "$infile" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjls.script-39-if [ $precision -gt 16 ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjls.script-44- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjls.script:45:width=`$DCKEY -d -k Columns "$infile" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjls.script:46:height=`$DCKEY -d -k Rows "$infile" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjls.script-47- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcdiff.script-6-then dicom3tools-1.00~20190724083540/appsrc/dcfile/dcdiff.script:7: echo "usage: `basename $0` file1 file2" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcdiff.script-8- exit 1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcdiff.script-10- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcdiff.script:11:TMPFILE1=/tmp/`basename $0`.$$.tmp1 dicom3tools-1.00~20190724083540/appsrc/dcfile/dcdiff.script:12:TMPFILE2=/tmp/`basename $0`.$$.tmp2 dicom3tools-1.00~20190724083540/appsrc/dcfile/dcdiff.script-13- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcpatmpl.script-5- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcpatmpl.script:6:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dcfile/dcpatmpl.script-7- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcpatmpl.script-42- else dicom3tools-1.00~20190724083540/appsrc/dcfile/dcpatmpl.script:43: usage `basename $0` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcpatmpl.script-44- exit 1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcpatmpl.script-46-else dicom3tools-1.00~20190724083540/appsrc/dcfile/dcpatmpl.script:47: usage `basename $0` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcpatmpl.script-48- exit 1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dccmp.script-6-then dicom3tools-1.00~20190724083540/appsrc/dcfile/dccmp.script:7: echo "usage: `basename $0` file1 file2" dicom3tools-1.00~20190724083540/appsrc/dcfile/dccmp.script-8- exit 1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dccmp.script-10- dicom3tools-1.00~20190724083540/appsrc/dcfile/dccmp.script:11:TMPFILE1=/tmp/`basename $0`.$$.tmp1 dicom3tools-1.00~20190724083540/appsrc/dcfile/dccmp.script:12:TMPFILE2=/tmp/`basename $0`.$$.tmp2 dicom3tools-1.00~20190724083540/appsrc/dcfile/dccmp.script-13- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/antodc.all.script-22-then dicom3tools-1.00~20190724083540/appsrc/dcfile/antodc.all.script:23: echo 1>&2 "Usage: `basename $0` dirname" dicom3tools-1.00~20190724083540/appsrc/dcfile/antodc.all.script-24- exit 1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/antodc.all.script-26- dicom3tools-1.00~20190724083540/appsrc/dcfile/antodc.all.script:27:for i in `find "$1" -type f -a ! -name '.*' -print` dicom3tools-1.00~20190724083540/appsrc/dcfile/antodc.all.script-28-do ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.all.script-17-then dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.all.script:18: echo 1>&2 "Usage: `basename $0` dirname" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.all.script-19- exit 1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.all.script-21- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.all.script:22:for i in `find "$1" -type f -print` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.all.script-23-do ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjls.script-5- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjls.script:6:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjls.script-7- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjls.script-21- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjls.script:22:transfersyntaxuid=`"$DCKEY" -k TransferSyntaxUID "$infile" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjls.script-23- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjls.script:24:bits=`"$DCKEY" -decimal -k BitsAllocated "$infile" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjls.script-25-#echo "bits=$bits" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh-18- dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:19:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh-20- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh-109- echo "$datea" >>"$dst" dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:110: yyyy=`echo "$datea" | sed 's/^\([0-9][0-9][0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:111: mm=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:112: dd=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:113: hh=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:114: min=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:115: ss=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.][0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh-116- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh-179- echo "$datea" >>"$dst" dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:180: yyyy=`echo "$datea" | sed 's/^\([0-9][0-9][0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:181: mm=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:182: dd=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:183: hh=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:184: min=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:185: ss=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.][0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh-186- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh-246- echo "$datea" >>"$dst" dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:247: yyyy=`echo "$datea" | sed 's/^\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:248: mm=`echo "$datea" | sed 's/^[0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:249: dd=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:250: hh=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][.]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:251: min=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][.][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh:252: ss=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][.][0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.antodc.sh-253- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-61- else dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:62: usage `basename $0` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-63- exit 1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-72-then dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:73: usage `basename $0` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-74- exit 1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-94- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:95:TMPROOT=/tmp/`basename $0`.$$. dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-96- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-111-then dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:112: dcsort -index -show -k "${POSITIONPARAMETER}" `cat "${FILENAMESFILE}"` >"${SORTEDBYPOSITION}" 2>&1 dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-113-else dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:114: dcsort -index -show -k "${POSITIONPARAMETER}" `cat "${FILENAMESFILE}"` 2>&1 | awk -v locationtolerance="${LOCATIONTOLERANCE}" '{print $1 "\t" $2 "\t" (int($3*locationtolerance+0.5)/locationtolerance)}' >"${SORTEDBYPOSITION}" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-115-fi ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-122-rm -f "${PARAMETERSBYFILE}" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:123:for i in `cat "${FILENAMESFILE}"` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-124-do ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-126- then dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:127: useTitle=`dckey -noerror -k PatientName "$i" 2>&1 | egrep -iv '(error|warning)' | head -1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-128- fi ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-131-#cat "${SUBKEYS}" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:132: sopInstanceUID=`grep SOPInstanceUID "${SUBKEYS}"| sed -e 's/^SOPInstanceUID=//'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-133- if [ ! -f "${FQICONSDIR}/${sopInstanceUID}.jpg" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-137- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:138: sliceThickness=`grep SliceThickness "${SUBKEYS}"| sed -e 's/^SliceThickness=//'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-139- if [ -z "${sliceThickness}" ]; then sliceThickness="0.0"; fi dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:140: convolutionKernel=`grep ConvolutionKernel "${SUBKEYS}"| sed -e 's/^ConvolutionKernel=//' -e 's/[^A-Za-z0-9_]/_/g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-141- if [ -z "${convolutionKernel}" ]; then convolutionKernel="NONE"; fi dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:142: acquisitionParameter=`grep "${ACQUISITIONPARAMETER}" "${SUBKEYS}"| sed -e "s/^${ACQUISITIONPARAMETER}=//" -e 's/ $//g' -e 's/^ //g' -e 's/[^0-9a-zA-Z+-]/_/g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-143-#echo "${acquisitionParameter}" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-155-#cat 1>&2 "${UNIQUESUBKEYS}" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:156:numberofuniquekeys=`wc -l "${UNIQUESUBKEYS}" | awk '{print $1}'` # is the number of html columns we will need dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-157-#echo 1>&2 "numberofuniquekeys = ${numberofuniquekeys}" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-193-countForFileName=0 dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:194:for position in `cat "${POSITIONLIST}"` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-195-do ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-197- echo >>"${FQHTMLFILE}" "<tr><td>${position}</td>" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:198: positionWithPeriodEscaped=`echo "${position}" | sed -e 's/[.]/[.]/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-199- grepstring="[^0-9-.]${positionWithPeriodEscaped}\$" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-202- rm -f "${ROWFILE}" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:203: for i in `cat "${CURRENTPOSITIONFILES}"` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-204- do dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-205-#echo 1>&2 "i = $i" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:206: whichfileentry=`grep "$i" "${PARAMETERSBYFILE}" | head -1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-207-#echo 1>&2 "whichfileentry = ${whichfileentry}" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:208: parameters=`echo "${whichfileentry}" | awk '{print $1 " " $2 " " $3}'` # awk is to get spaces same as in UNIQUESUBKEYS (see grep later) dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-209-#echo 1>&2 "parameters = ${parameters}" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:210: sopInstanceUID=`echo "${whichfileentry}" | awk '{print $4}'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-211-#echo 1>&2 "sopInstanceUID = ${sopInstanceUID}" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:212: whichuniquesubkey=`grep -n "${parameters}" "${UNIQUESUBKEYS}" | sed -e 's/:.*$//'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-213-#echo 1>&2 "whichuniquesubkey = ${whichuniquesubkey}" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-219- do dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:220: row=`egrep "^$count: " "${ROWFILE}" | head -1 | sed -e 's/^[0-9]*:[ ]*//'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-221- if [ -z "${row}" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-225-#echo 1>&2 "Got row = ${row}" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:226: sopInstanceUID=`echo "${row}" | sed -e 's/^\([0-9][0-9.]*\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-227-#echo 1>&2 "Got sopInstanceUID = ${sopInstanceUID}" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-238- else dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:239: fileName=`echo "${row}" | sed -e 's/^[^ ]*[ ]*\(.*\)$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-240-#echo 1>&2 "Got fileName = ${fileName}" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-252- fi dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:253: count=`expr ${count} + 1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script:254: countForFileName=`expr ${countForFileName} + 1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcacqmap.script-255- done ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script-25- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script:26: patientid=`$DCKEY -k PatientID "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Za-z0-9 ]/_/g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script-27- if [ -z "$patientid" ]; then patientid="NOID"; fi dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script:28: patientname=`$DCKEY -k PatientName "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Za-z0-9 ^=,.]/_/g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g' -e 's/^[.]/_/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script-29- if [ -z "$patientname" ]; then patientname="NONAME"; fi ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script-31- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script:32: studydate=`$DCKEY -k StudyDate "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Za-z0-9 ]/_/g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script-33- if [ -z "$studydate" ]; then studydate="19000101"; fi dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script:34: studytime=`$DCKEY -k StudyTime "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Za-z0-9 ]/_/g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g' -e 's/^\([0-9][0-9][0-9][0-9][0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script-35- if [ -z "$studytime" ]; then studytime="000000"; fi ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script-37- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script:38: seriesnum=`$DCKEY -k SeriesNumber "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9]//g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g' -e 's/^\([0-9]\)$/00\1/' -e 's/^\([0-9][0-9]\)$/0\1/' ` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script-39- if [ -z "$seriesnum" ]; then seriesnum="000"; fi dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script:40: seriesdesc=`$DCKEY -k SeriesDescription "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Za-z0-9 ]/_/g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script-41- serieslabel="Series $seriesnum [$seriesdesc]" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script-42- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script:43: instanceuid=`$DCKEY -k SOPInstanceUID "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9a-zA-Z_.-]//g' -e 's/^[ _]*//g' -e 's/[ _]*$//g' -e 's/[ ][ ]*/ /g' -e 's/[_][_]*/_/g' -e 's/[_][ ]/ /g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script-44- if [ -z "$instanceuid" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script-61- else dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script:62: if [ `ls -i "$srcfile" | awk '{print $1}'` = `ls -i "$newfile" | awk '{print $1}'` ] dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.datedescnoid.script-63- then ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script-7- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script:8:TMPFILE="/tmp/`basename $0`.$$.tmp" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script-9- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script-13- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script:14:isEncapsulated=`dcfile "$1" 2>&1 | grep 'Data: Encapsulated' | awk '{print $3}'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script-15-if [ -z "${isEncapsulated}" -o "${isEncapsulated}" = "No" ] dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script-16-then dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script:17: bitsStored=`dckey -noerror -decimal -k BitsStored "$1" 2>&1 | egrep -iv '(warning|error)'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script:18: bitsAllocated=`dckey -noerror -decimal -k BitsAllocated "$1" 2>&1 | egrep -iv '(warning|error)'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script-19- #echo "bitsStored = <${bitsStored}>" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script-27- dcarith -maskhighbits "${bitsStored}" "$1" "${TMPFILE}" 2>&1 | egrep -iv '(warning|error)' dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script:28: comparison=`dccmp "$1" "${TMPFILE}" 2>&1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script-29- if [ ! -z "${comparison}" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script-41- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script:42:overlaydataattributesarepresent=`dcdump -ignoreoutofordertags "$1" 2>&1 | egrep -iv '(warning|error)' | egrep '^[(]0x60[0-9a-fA-F][0-9a-fA-F],0x3000[)]'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcckovly.script-43-if [ ! -z "${overlaydataattributesarepresent}" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script-13- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script:14:TMPFILE="/tmp/`basename $0`.$$.tmp" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script-15- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script-21- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script:22: patientid=`$DCKEY -k PatientID "$i" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9a-zA-Z_.-]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script:23: patientname=`$DCKEY -k PatientName "$i" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9a-zA-Z_.-]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script-24- patientlabel=$patientid$patientname ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script-30- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script:31: studyid=`$DCKEY -k StudyInstanceUID "$i" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script-32- if [ -z "$studyid" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script-36- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script:37: seriesnum=`$DCKEY -k SeriesInstanceUID "$i" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script-38- if [ -z "$seriesnum" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script-42- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script:43: imagenum=`$DCKEY -k InstanceNumber "$i" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9a-zA-Z_.-]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script-44- if [ -z "$imagenum" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script-69- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script:70: counter=`expr $counter '+' 1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.uid.script-71-done ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-50- newpatientid="$5" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:51: TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-52- uidmapfile="$TMPROOT.uids.tmp" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-55- $DCSMPTE "$TMPROOT.tmp" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:56: newuidbase=`$DCKEY -noerror -k SOPInstanceUID "$TMPROOT.tmp" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-57- rm "$TMPROOT.tmp" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-60- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:61: nomove=`echo "$options" | grep -i nomove` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-62- if [ -z "$nomove" ] dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-63- then dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:64: mv8only=`echo "$options" | grep -i mv8only` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:65: mvid=`echo "$options" | grep -i mvid` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:66: mvdatedesc=`echo "$options" | grep -i mvdatedesc` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-67- if [ ! -z "$mv8only" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-102- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:103: nodescriptions=`echo "$options" | grep -i nodesc` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:104: nopatientdesc=`echo "$options" | grep -i nopatientdesc` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:105: nostudydesc=`echo "$options" | grep -i nostudydesc` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:106: noseriesdesc=`echo "$options" | grep -i noseriesdesc` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:107: noimagedesc=`echo "$options" | grep -i noimagedesc` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-108- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:109: nomanufacturer=`echo "$options" | grep -i nomanuf` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:110: noretired=`echo "$options" | grep -i noretired` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:111: noclinicaltrial=`echo "$options" | grep -i noclinicaltrial` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:112: keepprivate=`echo "$options" | grep -i keepprivate` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:113: keepuids=`echo "$options" | grep -i keepuids` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:114: keeppet=`echo "$options" | grep -i keeppet` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:115: keepsafeprivate=`echo "$options" | grep -i keepsafeprivate` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:116: verify=`echo "$options" | grep -i verify` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:117: diff=`echo "$options" | grep -i diff` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-118- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:119: deidMethod=`basename "$0"` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-120- deidMethod="${deidMethod}\\no identifiers" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-191- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:192: srcstudyinstanceuid=`$DCKEY -noerror -k StudyInstanceUID "$srcfile" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:193: srcseriesinstanceuid=`$DCKEY -noerror -k SeriesInstanceUID "$srcfile" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:194: srcsopinstanceuid=`$DCKEY -noerror -k SOPInstanceUID "$srcfile" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:195: srcframeofreferenceuid=`$DCKEY -noerror -k FrameOfReferenceUID "$srcfile" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:196: srcsyncframeofreferenceuid=`$DCKEY -noerror -k SynchronizationFrameOfReferenceUID "$srcfile" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-197- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-201- else dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:202: countervalue=`head -1 "$counterfile" | awk '{print $1}'` # safer than just cat ? dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-203- counterfiledirty=0 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-205- sedstring='^'"$srcstudyinstanceuid"'[^0-9.]' dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:206: newstudyinstanceuid=`egrep "$sedstring" "$uidmapfile" | awk '{print $2}'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-207- if [ -z "$newstudyinstanceuid" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-209- newstudyinstanceuid="$newuidbase.$countervalue" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:210: countervalue=`expr $countervalue + 1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-211- counterfiledirty=1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-215- sedstring='^'"$srcstudyinstanceuid"'[^0-9.]' dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:216: newstudyid=`egrep "$sedstring" "$uidmapfile" | awk '{print $3}'` # use counter value for new Study ID dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-217- #echo "Replacing StudyID with $newstudyid" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-219- sedstring='^'"$srcseriesinstanceuid"'[^0-9.]' dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:220: newseriesinstanceuid=`egrep "$sedstring" "$uidmapfile" | awk '{print $2}'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-221- if [ -z "$newseriesinstanceuid" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-223- newseriesinstanceuid="$newuidbase.$countervalue" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:224: countervalue=`expr $countervalue + 1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-225- counterfiledirty=1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-230- sedstring='^'"$srcsopinstanceuid"'[^0-9.]' dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:231: newsopinstanceuid=`egrep "$sedstring" "$uidmapfile" | awk '{print $2}'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-232- if [ -z "$newsopinstanceuid" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-234- newsopinstanceuid="$newuidbase.$countervalue" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:235: countervalue=`expr $countervalue + 1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-236- counterfiledirty=1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-243- sedstring='^'"$srcframeofreferenceuid"'[^0-9.]' dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:244: newframeofreferenceuid=`egrep "$sedstring" "$uidmapfile" | awk '{print $2}'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-245- if [ -z "$newframeofreferenceuid" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-247- newframeofreferenceuid="$newuidbase.$countervalue" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:248: countervalue=`expr $countervalue + 1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-249- counterfiledirty=1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-259- sedstring='^'"$srcsyncframeofreferenceuid"'[^0-9.]' dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:260: newsyncframeofreferenceuid=`egrep "$sedstring" "$uidmapfile" | awk '{print $2}'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-261- if [ -z "$newsyncframeofreferenceuid" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-263- newsyncframeofreferenceuid="$newuidbase.$countervalue" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:264: countervalue=`expr $countervalue + 1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-265- counterfiledirty=1 ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-426- then dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:427: philipsPETPrivateCreator=`$DCKEY -noerror -k '(0x7053,0x0010)' "$srcfile" 2>&1 | egrep -v 'Error|Warning' | grep 'Philips PET Private Group'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:428: philipsPETSUVFactor=`$DCKEY -noerror -k '(0x7053,0x1000)' "$srcfile" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script:429: philipsPETActivityConcentrationFactor=`$DCKEY -noerror -k '(0x7053,0x1009)' "$srcfile" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcanon.script-430- if [ ! -z "${philipsPETSUVFactor}" -a ! -z "${philipsPETPrivateCreator}" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunbzip2.script-5-# dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunbzip2.script:6:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunbzip2.script-7- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh-18- dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:19:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh-20- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh-109- echo "$datea" >>"$dst" dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:110: yyyy=`echo "$datea" | sed 's/^\([0-9][0-9][0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:111: mm=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:112: dd=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:113: hh=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:114: min=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:115: ss=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.][0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh-116- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh-179- echo "$datea" >>"$dst" dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:180: yyyy=`echo "$datea" | sed 's/^\([0-9][0-9][0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:181: mm=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:182: dd=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:183: hh=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:184: min=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:185: ss=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][.][0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh-186- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh-246- echo "$datea" >>"$dst" dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:247: yyyy=`echo "$datea" | sed 's/^\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:248: mm=`echo "$datea" | sed 's/^[0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:249: dd=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:250: hh=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][.]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:251: min=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][.][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh:252: ss=`echo "$datea" | sed 's/^[0-9][0-9][0-9][0-9][0-9][0-9][.][0-9][0-9][0-9][0-9]\([0-9][0-9]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/testy2k.sh-253- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcinflate.script-5-# dicom3tools-1.00~20190724083540/appsrc/dcfile/dcinflate.script:6:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dcfile/dcinflate.script-7- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-27- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script:28: patientid=`$DCKEY -k PatientID "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Z0-9_]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-29- patientlabel="$patientid" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-30- if [ -z "$patientlabel" ]; then patientlabel="NONAME"; fi dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script:31: patientlabel=`echo "$patientlabel" | sed 's/^\([A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-32- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script:33: studydate=`$DCKEY -k StudyDate "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-34- if [ -z "$studydate" ] dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-35- then dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script:36: studyid=`$DCKEY -k StudyID "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Z0-9_]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-37- studylabel="$studyid" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-41- if [ -z "$studylabel" ]; then studylabel="NOSTUDY"; fi dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script:42: studylabel=`echo "$studylabel" | sed 's/^\([A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-43- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script:44: seriesnum=`$DCKEY -k SeriesNumber "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script:45: modality=`$DCKEY -k Modality "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^A-Z0-9_]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-46- serieslabel="$modality$seriesnum" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-47- if [ -z "$serieslabel" ]; then serieslabel="NOSERIES"; fi dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script:48: serieslabel=`echo "$serieslabel" | sed 's/^\([A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-49- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script:50: #instancenum=`$DCKEY -k InstanceNumber "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-51- #if [ -z "$instancenum" ] dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-52- #then dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script:53: # acqnum=`$DCKEY -k AcquisitionNumber "$srcfile" 2>&1 | egrep -v 'Error|Warning' | sed -e 's/[^0-9]//g'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-54- # instancelabel="$acqnum" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-58- if [ -z "$instancelabel" ]; then instancelabel="$$"; fi dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script:59: instancelabel=`echo "$instancelabel" | sed 's/^\([A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_][A-Z0-9_]\).*$/\1/'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-60- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-74- else dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script:75: if [ `ls -i "$srcfile" | awk '{print $1}'` = `ls -i "$newfile" | awk '{print $1}'` ] dicom3tools-1.00~20190724083540/appsrc/dcfile/dcmvhier.8only.script-76- then ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script-9- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script:10:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script-11- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script-28- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script:29:reversible=`echo "${j2koptions}" | grep "reversible=yes"` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script-30-if [ -z "${reversible}" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script-38- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script:39:components=`$DCKEY -noerror -d -k SamplesPerPixel "${infile}" 2>&1 | grep -iv '(warning|error)'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script-40-if [ "${components}" != 1 ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script-45- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script:46:precision=`$DCKEY -noerror -d -k BitsStored "${infile}" 2>&1 | grep -iv '(warning|error)'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script:47:signed=`$DCKEY -noerror -d -k PixelRepresentation "${infile}" 2>&1 | grep -iv '(warning|error)'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script-48-if [ -z "${signed}" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script-57- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script:58:width=`$DCKEY -noerror -d -k Columns "${infile}" 2>&1 | grep -iv '(warning|error)'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script:59:height=`$DCKEY -noerror -d -k Rows "${infile}" 2>&1 | grep -iv '(warning|error)'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script-60- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script-67-then dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script:68: uncompressedfilesize=`ls -l "${TMPROOT}.big.raw" | awk '{print $5}'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script-69- #echo 1>&2 "============== uncompressedfilesize = ${uncompressedfilesize}" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script:70: compressedfilesize=`ls -l "${TMPROOT}.j2c" | awk '{print $5}'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script-71- #echo 1>&2 "============== compressedfilesize = ${compressedfilesize}" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script:72: compressionratio=`echo "scale=2; ${uncompressedfilesize}/${compressedfilesize}" | bc -l` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcj2k.script-73- #echo 1>&2 "============== compressionratio = ${compressionratio}" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjpeg.script-9- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjpeg.script:10:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjpeg.script-11- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjpeg.script-24- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjpeg.script:25:components=`$DCKEY -d -k SamplesPerPixel "$infile" 2>&1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjpeg.script-26-if [ "$components" != 1 ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjpeg.script-31- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjpeg.script:32:precision=`$DCKEY -d -k BitsStored "$infile" 2>&1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjpeg.script-33-if [ $precision -gt 12 ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjpeg.script-45- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjpeg.script:46:width=`$DCKEY -d -k Columns "$infile" 2>&1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjpeg.script:47:height=`$DCKEY -d -k Rows "$infile" 2>&1` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcjpeg.script-48- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script-5- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script:6:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script-7- ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script-25- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script:26:transfersyntaxuid=`"$DCKEY" -noerror -ignorereaderrors -ignoreoutofordertags -k TransferSyntaxUID "$1" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script-27- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script:28:bits=`"$DCKEY" -noerror -ignorereaderrors -ignoreoutofordertags -decimal -k BitsAllocated "$1" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script-29-#echo "bits=$bits" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script-31- dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script:32:samplesperpixel=`"$DCKEY" -noerror -ignorereaderrors -ignoreoutofordertags -decimal -k SamplesPerPixel "$1" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script-33-#echo "samplesperpixel=$samplesperpixel" ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script-84- # the component naming can be wierd, and may start from 0 or 1, and increment by 1, or increment in odd ways ... we have already sorted it in case not encoded in component number order dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script:85: filefornextcomponent=`head -1 "$TMPROOT.stdout"` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script-86- while [ ! -z "${filefornextcomponent}" ] ############################################## dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script-101- rm "${filefornextcomponent}" dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script:102: filefornextcomponent=`head -1 "$TMPROOT.stdout"` dicom3tools-1.00~20190724083540/appsrc/dcfile/dcunjpeg.script-103- done ############################################## dicom3tools-1.00~20190724083540/config/Configure-90- -e 's/^.*[^0-9.]\([0-9][.][0-9]\)/\1/'` dicom3tools-1.00~20190724083540/config/Configure:91: sunpromajorversion=`echo "$sunproversion" | sed 's/[^0-9].*$//'` dicom3tools-1.00~20190724083540/config/Configure-92- ############################################## dicom3tools-1.00~20190724083540/config/Configure-235-leftover=`uname -r` dicom3tools-1.00~20190724083540/config/Configure:236:osmajorversion=`echo "$leftover" | sed 's/[^0-9a-zA-Z].*$//'` dicom3tools-1.00~20190724083540/config/Configure:237:leftover=`echo "$leftover" | sed 's/^[0-9a-zA-Z][0-9a-zA-Z]*[^0-9a-zA-Z]//'` dicom3tools-1.00~20190724083540/config/Configure:238:osminorversion=`echo "$leftover" | sed 's/[^0-9a-zA-Z].*$//'` dicom3tools-1.00~20190724083540/config/Configure:239:leftover=`echo "$leftover" | sed 's/^[0-9a-zA-Z][0-9a-zA-Z]*[^0-9a-zA-Z]//'` dicom3tools-1.00~20190724083540/config/Configure:240:osteenyversion=`echo "$leftover" | sed 's/[^0-9a-zA-Z].*$//'` dicom3tools-1.00~20190724083540/config/Configure-241- ############################################## dicom3tools-1.00~20190724083540/config/Configure-252- dicom3tools-1.00~20190724083540/config/Configure:253:platformnameforinstallpath=`echo "$osname.$osmajorversion.$osminorversion.$osteenyversion.$hardware" | tr -d -c '[0-9][a-z][A-Z].' | tr '[A-Z]' '[a-z]'` dicom3tools-1.00~20190724083540/config/Configure-254- ############################################## dicom3tools-1.00~20190724083540/config/Configure-353- usegpp="g++" dicom3tools-1.00~20190724083540/config/Configure:354: if gccversion=`getVersion "$usegcc -v" | grep -v 'Configured with:' | grep -i version` dicom3tools-1.00~20190724083540/config/Configure-355- then dicom3tools-1.00~20190724083540/config/Configure-356- echo 1>&2 "Configure: using $usegcc version $gccversion" dicom3tools-1.00~20190724083540/config/Configure:357: if gplusplusversion=`getVersion "$usegpp -v" | grep -v 'Configured with:' | grep -i version` dicom3tools-1.00~20190724083540/config/Configure-358- then dicom3tools-1.00~20190724083540/config/Configure:359: gplusplussubversion=`echo "$gplusplusversion" | sed -e 's/egcs-//' -e 's/Apple Computer.* based on //' -e 's/Apple LLVM version/LLVM version/'` dicom3tools-1.00~20190724083540/config/Configure:360: gplusplusmajorversion=`echo "$gplusplussubversion" | awk '{print $3}' | sed 's/[.]/ /g' | awk '{print $1}'` dicom3tools-1.00~20190724083540/config/Configure:361: gplusplusminorversion=`echo "$gplusplussubversion" | awk '{print $3}' | sed 's/[.]/ /g' | awk '{print $2}'` dicom3tools-1.00~20190724083540/config/Configure:362: gplusplustinyversion=` echo "$gplusplussubversion" | awk '{print $3}' | sed 's/[.]/ /g' | awk '{print $3}'` dicom3tools-1.00~20190724083540/config/Configure-363- ############################################## dicom3tools-1.00~20190724083540/config/Configure-784- dicom3tools-1.00~20190724083540/config/Configure:785:isCygwin=`echo "$osname" | egrep -i '^cygwin_nt'` dicom3tools-1.00~20190724083540/config/Configure-786-if [ ! -z "${isCygwin}" ] ############################################## dicom3tools-1.00~20190724083540/libsrc/support/inserttagumberbeforekeyword.sh-10-srcLine="$*" dicom3tools-1.00~20190724083540/libsrc/support/inserttagumberbeforekeyword.sh:11:keyword=`echo "${srcLine}" | awk -F, '{print $1}'` dicom3tools-1.00~20190724083540/libsrc/support/inserttagumberbeforekeyword.sh:12:dictionaryLine=`grep Keyword=\"${keyword}\" ${DICTIONARY} | head -1` dicom3tools-1.00~20190724083540/libsrc/support/inserttagumberbeforekeyword.sh:13:tag=`echo "${dictionaryLine}" | awk '{print $1}'` dicom3tools-1.00~20190724083540/libsrc/support/inserttagumberbeforekeyword.sh:14:#vm=`echo "${srcLine}" | awk -F, '{print $7}'` dicom3tools-1.00~20190724083540/libsrc/support/inserttagumberbeforekeyword.sh-15-#if [ -z "${vm}" ] dicom3tools-1.00~20190724083540/libsrc/support/inserttagumberbeforekeyword.sh-16-#then dicom3tools-1.00~20190724083540/libsrc/support/inserttagumberbeforekeyword.sh:17:# vm=`echo "${dictionaryLine}" | sed -e 's/^.*VM="\([^"]*\)".*$/\1/'` dicom3tools-1.00~20190724083540/libsrc/support/inserttagumberbeforekeyword.sh-18-# echo "\"${tag}\",${srcLine}${vm}" ############################################## dicom3tools-1.00~20190724083540/libsrc/src/generic/ntstream.cc-22- dicom3tools-1.00~20190724083540/libsrc/src/generic/ntstream.cc:23:#include <arpa/inet.h> // for inet_addr() dicom3tools-1.00~20190724083540/libsrc/src/generic/ntstream.cc-24- // NB. g++ on sun doesn't have prototypes ############################################## dicom3tools-1.00~20190724083540/libsrc/src/generic/ntstream.cc-27-extern "C" { dicom3tools-1.00~20190724083540/libsrc/src/generic/ntstream.cc:28:unsigned long inet_addr(const char*); dicom3tools-1.00~20190724083540/libsrc/src/generic/ntstream.cc-29-} ############################################## dicom3tools-1.00~20190724083540/libsrc/src/generic/ntstream.cc-78- if ((host=::gethostbyname(h)) == 0) { dicom3tools-1.00~20190724083540/libsrc/src/generic/ntstream.cc:79: if ((address.sin_addr.s_addr=inet_addr(h)) == INADDR_NONE) { dicom3tools-1.00~20190724083540/libsrc/src/generic/ntstream.cc-80- return 0; ############################################## dicom3tools-1.00~20190724083540/libsrc/src/dconvert/himr/himr.tpl-125-block="IMGHDR" offset="824" intype="String" inlength="2" keyword="XISCSN" dicomtype="?" dicomtag="?" # Slice number of positioning image dicom3tools-1.00~20190724083540/libsrc/src/dconvert/himr/himr.tpl:126:block="IMGHDR" offset="826" intype="String" inlength="1" keyword="XISCANO" dicomtype="?" dicomtag="?" enum="'A'=yes,'N'=no" # Execution of positioning dicom3tools-1.00~20190724083540/libsrc/src/dconvert/himr/himr.tpl-127-block="IMGHDR" offset="827" intype="Uint8" inlength="1" keyword="MIAVG" dicomtype="DS" dicomtag="NumberOfAverages" # Number of signals averaged (NSA) ############################################## dicom3tools-1.00~20190724083540/support/testapp-4- dicom3tools-1.00~20190724083540/support/testapp:5:TMPROOT="/tmp/`basename $0`.$$" dicom3tools-1.00~20190724083540/support/testapp-6- ############################################## dicom3tools-1.00~20190724083540/support/testapp-60- dicom3tools-1.00~20190724083540/support/testapp:61:baseappname=`basename $appname` dicom3tools-1.00~20190724083540/support/testapp-62- dicom3tools-1.00~20190724083540/support/testapp:63:for filename in `cat $imagedir/$testlist` dicom3tools-1.00~20190724083540/support/testapp-64-do dicom3tools-1.00~20190724083540/support/testapp:65: logname=`echo "$filename" | sed 's:/:.:g'` dicom3tools-1.00~20190724083540/support/testapp:66: tmpname="/tmp/`basename $0`.`basename $filename`.$$" dicom3tools-1.00~20190724083540/support/testapp-67- usefullname="$imagedir/$filename" ############################################## dicom3tools-1.00~20190724083540/support/testapp.SChex0bug-4- dicom3tools-1.00~20190724083540/support/testapp.SChex0bug:5:TMPROOT="/tmp/`basename $0`.$$" dicom3tools-1.00~20190724083540/support/testapp.SChex0bug-6- ############################################## dicom3tools-1.00~20190724083540/support/testapp.SChex0bug-58- dicom3tools-1.00~20190724083540/support/testapp.SChex0bug:59:baseappname=`basename $appname` dicom3tools-1.00~20190724083540/support/testapp.SChex0bug-60- dicom3tools-1.00~20190724083540/support/testapp.SChex0bug:61:for filename in `cat $imagedir/$testlist` dicom3tools-1.00~20190724083540/support/testapp.SChex0bug-62-do dicom3tools-1.00~20190724083540/support/testapp.SChex0bug:63: logname=`echo "$filename" | sed 's:/:.:g'` dicom3tools-1.00~20190724083540/support/testapp.SChex0bug:64: tmpname="/tmp/`basename $0`.`basename $filename`.$$" dicom3tools-1.00~20190724083540/support/testapp.SChex0bug-65- usefullname="$imagedir/$filename" ############################################## dicom3tools-1.00~20190724083540/support/xxxxto-51-( dicom3tools-1.00~20190724083540/support/xxxxto:52: first=`echo $1 | sed 's/\(.\)\(.*\)/\1/' | tr '[a-z]' '[A-Z]'` dicom3tools-1.00~20190724083540/support/xxxxto:53: echo $first`echo $1 | sed 's/\(.\)\(.*\)/\2/'` dicom3tools-1.00~20190724083540/support/xxxxto-54-) ############################################## dicom3tools-1.00~20190724083540/support/xxxxto-56-LALLFROM="$fromprefix" dicom3tools-1.00~20190724083540/support/xxxxto:57:UALLFROM=`toallupper "$fromprefix"` dicom3tools-1.00~20190724083540/support/xxxxto:58:UFSTFROM=`tofirstupper "$fromprefix"` dicom3tools-1.00~20190724083540/support/xxxxto-59-LALLTO="$toprefix" dicom3tools-1.00~20190724083540/support/xxxxto:60:UALLTO=`toallupper "$toprefix"` dicom3tools-1.00~20190724083540/support/xxxxto:61:UFSTTO=`tofirstupper "$toprefix"` dicom3tools-1.00~20190724083540/support/xxxxto-62- ############################################## dicom3tools-1.00~20190724083540/support/xxxxto-75- do dicom3tools-1.00~20190724083540/support/xxxxto:76: src=`basename $i` dicom3tools-1.00~20190724083540/support/xxxxto-77- if [ "$src" = "Imakefile" ] ############################################## dicom3tools-1.00~20190724083540/support/xxxxto-85- else dicom3tools-1.00~20190724083540/support/xxxxto:86: dst=`echo "$src" | sed "s/^$fromprefix/$toprefix/"` dicom3tools-1.00~20190724083540/support/xxxxto-87- fi ############################################## dicom3tools-1.00~20190724083540/support/y2kcheck-4-do dicom3tools-1.00~20190724083540/support/y2kcheck:5: for i in `find "$d" -type f -print` dicom3tools-1.00~20190724083540/support/y2kcheck-6- do ############################################## dicom3tools-1.00~20190724083540/support/linksb-15- echo "Checking $dir for $subdir" dicom3tools-1.00~20190724083540/support/linksb:16: for file in `find ../$dir -name '*.bd' -print | grep $subdir` dicom3tools-1.00~20190724083540/support/linksb-17- do ############################################## dicom3tools-1.00~20190724083540/support/linksb-21- echo $file dicom3tools-1.00~20190724083540/support/linksb:22: if [ ! -f `basename $file` ] dicom3tools-1.00~20190724083540/support/linksb-23- then ############################################## dicom3tools-1.00~20190724083540/Imakefile-112- if [ -f $$archive ]; then $(MV) $$archive $$archive.old; fi; \ dicom3tools-1.00~20190724083540/Imakefile:113: $(TAR) -X Exclude -cvf - `for i in $(ARCHIVEFILES); do echo $$link/$$i; done` \ dicom3tools-1.00~20190724083540/Imakefile-114- | $(COMPRESS) > $$archive; \ ############################################## dicom3tools-1.00~20190724083540/Imakefile-127- if [ -f $$archive ]; then $(MV) $$archive $$archive.old; fi; \ dicom3tools-1.00~20190724083540/Imakefile:128: $(TAR) -X Exclude -cvh -f - `for i in $(ARCHIVEIMAGESFILES); do echo $$link/$$i; done` \ dicom3tools-1.00~20190724083540/Imakefile-129- | $(COMPRESS) > $$archive; \ ############################################## dicom3tools-1.00~20190724083540/Imakefile-142- if [ -f $$archive ]; then $(MV) $$archive $$archive.old; fi; \ dicom3tools-1.00~20190724083540/Imakefile:143: $(TAR) -X Exclude -cvh -f - `for i in $(ARCHIVETESTFILES); do echo $$link/$$i; done` \ dicom3tools-1.00~20190724083540/Imakefile-144- | $(COMPRESS) > $$archive; \ ############################################## dicom3tools-1.00~20190724083540/Imakefile-157- if [ -f $$archive ]; then $(MV) $$archive $$archive.old; fi; \ dicom3tools-1.00~20190724083540/Imakefile:158: $(TAR) -X Exclude -cvf - `for i in $(ARCHIVEMANFILES); do echo $$link/$$i; done` \ dicom3tools-1.00~20190724083540/Imakefile-159- | $(COMPRESS) > $$archive; \ ############################################## dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcjpeg.script-9- dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcjpeg.script:10:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcjpeg.script-11- ############################################## dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcjpeg.script-24- dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcjpeg.script:25:components=`$DCKEY -d -k SamplesPerPixel "$infile" 2>&1` dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcjpeg.script-26-if [ "$components" != 1 ] ############################################## dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcjpeg.script-31- dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcjpeg.script:32:precision=`$DCKEY -d -k BitsStored "$infile" 2>&1` dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcjpeg.script-33-if [ $precision -gt 12 ] ############################################## dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcjpeg.script-45- dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcjpeg.script:46:width=`$DCKEY -d -k Columns "$infile" 2>&1` dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcjpeg.script:47:height=`$DCKEY -d -k Rows "$infile" 2>&1` dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcjpeg.script-48- ############################################## dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script-5- dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script:6:TMPROOT=/tmp/`basename $0`.$$ dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script-7- ############################################## dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script-25- dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script:26:transfersyntaxuid=`"$DCKEY" -noerror -ignorereaderrors -ignoreoutofordertags -k TransferSyntaxUID "$1" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script-27- dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script:28:bits=`"$DCKEY" -noerror -ignorereaderrors -ignoreoutofordertags -decimal -k BitsAllocated "$1" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script-29-#echo "bits=$bits" ############################################## dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script-31- dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script:32:samplesperpixel=`"$DCKEY" -noerror -ignorereaderrors -ignoreoutofordertags -decimal -k SamplesPerPixel "$1" 2>&1 | egrep -v 'Error|Warning'` dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script-33-#echo "samplesperpixel=$samplesperpixel" ############################################## dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script-84- # the component naming can be wierd, and may start from 0 or 1, and increment by 1, or increment in odd ways ... we have already sorted it in case not encoded in component number order dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script:85: filefornextcomponent=`head -1 "$TMPROOT.stdout"` dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script-86- while [ ! -z "${filefornextcomponent}" ] ############################################## dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script-101- rm "${filefornextcomponent}" dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script:102: filefornextcomponent=`head -1 "$TMPROOT.stdout"` dicom3tools-1.00~20190724083540/.pc/pvrg_naming.patch/appsrc/dcfile/dcunjpeg.script-103- done