===========================================================
                                      .___ __  __   
          _________________  __ __  __| _/|__|/  |_ 
         / ___\_` __ \__  \ |  |  \/ __ | | \\_  __\
        / /_/  >  | \// __ \|  |  / /_/ | |  ||  |  
        \___  /|__|  (____  /____/\____ | |__||__|  
       /_____/            \/           \/           
              grep rough audit - static analysis tool
                  v2.8 written by @Wireghoul
=================================[justanotherhacker.com]===
hdparm-9.58+ds/wiper/wiper.sh-83-		prog="${prog##*/}"
hdparm-9.58+ds/wiper/wiper.sh:84:		p=`type -f -P "$prog" 2>/dev/null`
hdparm-9.58+ds/wiper/wiper.sh-85-		if [ "$p" = "" ]; then
##############################################
hdparm-9.58+ds/wiper/wiper.sh-113-##
hdparm-9.58+ds/wiper/wiper.sh:114:if [ `$ID -u` -ne 0 ]; then
hdparm-9.58+ds/wiper/wiper.sh-115-	echo "Only the super-user can use this (try \"sudo $0\" instead), aborting." >&2
##############################################
hdparm-9.58+ds/wiper/wiper.sh-121-##
hdparm-9.58+ds/wiper/wiper.sh:122:HDPVER=`$HDPARM -V | $GAWK '{gsub("[^0-9.]","",$2); if ($2 > 0) print ($2 * 100); else print 0; exit(0)}'`
hdparm-9.58+ds/wiper/wiper.sh-123-if [ $HDPVER -lt 925 ]; then
##############################################
hdparm-9.58+ds/wiper/wiper.sh-152-		elif [ -h "$p" ]; then
hdparm-9.58+ds/wiper/wiper.sh:153:			p="`$LS -ld "$p" | awk '{sub("^[^>]*-[>] *",""); print}'`"
hdparm-9.58+ds/wiper/wiper.sh-154-		## Otherwise, prefix $p with the cwd path and print it:
##############################################
hdparm-9.58+ds/wiper/wiper.sh-165-	dir="$1"
hdparm-9.58+ds/wiper/wiper.sh:166:	kdev=`$STAT --format="%04D" "$dir" 2>/dev/null`
hdparm-9.58+ds/wiper/wiper.sh-167-	[ "$kdev" = "" ] && exit 1
##############################################
hdparm-9.58+ds/wiper/wiper.sh-174-## Convert "$arg" into an absolute pathname target, with no symlinks or embedded blanks:
hdparm-9.58+ds/wiper/wiper.sh:175:target="`get_realpath "$arg"`"
hdparm-9.58+ds/wiper/wiper.sh-176-if [ "$target" = "" ]; then
##############################################
hdparm-9.58+ds/wiper/wiper.sh-207-		pdev="${m[0]}"
hdparm-9.58+ds/wiper/wiper.sh:208:		[ "$pdev" = "$1" ] || pdev="`get_realpath "$pdev"`"
hdparm-9.58+ds/wiper/wiper.sh-209-		if [ "$pdev" = "$1" ]; then
##############################################
hdparm-9.58+ds/wiper/wiper.sh-224-function get_fsdev(){   ## from fsdir
hdparm-9.58+ds/wiper/wiper.sh:225:	get_realpath "`$GAWK -v p="$1" '{if ($2 == p) r=$1} END{print r}' < /proc/mounts`"
hdparm-9.58+ds/wiper/wiper.sh-226-}
##############################################
hdparm-9.58+ds/wiper/wiper.sh-232-function get_fsmode(){  ## from fsdir
hdparm-9.58+ds/wiper/wiper.sh:233:	mode="`$GAWK -v p="$1" '{if ($2 == p) r=substr($4,1,2)} END{print r}' < /proc/mounts`"
hdparm-9.58+ds/wiper/wiper.sh-234-	if [ "$mode" = "ro" ]; then
##############################################
hdparm-9.58+ds/wiper/wiper.sh-288-		## Figure out what device holds the filesystem.
hdparm-9.58+ds/wiper/wiper.sh:289:		fsdev="`get_fsdev $fsdir`"
hdparm-9.58+ds/wiper/wiper.sh-290-		if [ "$fsdev" = "" ]; then
##############################################
hdparm-9.58+ds/wiper/wiper.sh-319-	## If it is mounted read-only, we must switch to doing an "offline" trim of fsdev:
hdparm-9.58+ds/wiper/wiper.sh:320:	fsmode="`get_fsmode $fsdir`" || exit 1
hdparm-9.58+ds/wiper/wiper.sh-321-	[ $verbose -gt 0 ] && echo "fsmode1: fsmode=$fsmode"
##############################################
hdparm-9.58+ds/wiper/wiper.sh-331-		fsdev="$target"
hdparm-9.58+ds/wiper/wiper.sh:332:		fsdir="`get_fsdir "$fsdev" < /proc/mounts`"
hdparm-9.58+ds/wiper/wiper.sh-333-		## More weirdness for /dev/root in /proc/mounts:
##############################################
hdparm-9.58+ds/wiper/wiper.sh-337-				rdev="`get_devpath /`"
hdparm-9.58+ds/wiper/wiper.sh:338:				[ "$rdev" != "" ] && fsdir="`get_fsdir "$rdev" < /proc/mounts`"
hdparm-9.58+ds/wiper/wiper.sh-339-			fi
##############################################
hdparm-9.58+ds/wiper/wiper.sh-347-	if [ "$fsdir" != "" ]; then
hdparm-9.58+ds/wiper/wiper.sh:348:		fsmode="`get_fsmode $fsdir`" || exit 1
hdparm-9.58+ds/wiper/wiper.sh-349-		[ $verbose -gt 0 ] && echo "fsmode2: fsmode=$fsmode"
##############################################
hdparm-9.58+ds/wiper/wiper.sh-369-##
hdparm-9.58+ds/wiper/wiper.sh:370:rawdev=`echo $fsdev | $GAWK '{print gensub("[0-9]*$","","g")}'`
hdparm-9.58+ds/wiper/wiper.sh:371:rawdev="`get_realpath "$rawdev"`"
hdparm-9.58+ds/wiper/wiper.sh-372-if [ ! -e "$rawdev" ]; then
##############################################
hdparm-9.58+ds/wiper/wiper.sh-375-	rawdev=""
hdparm-9.58+ds/wiper/wiper.sh:376:elif [ "`get_major $fsdev`" -ne "`get_major $rawdev`" ]; then  ## sanity check
hdparm-9.58+ds/wiper/wiper.sh-377-	rawdev=""
##############################################
hdparm-9.58+ds/wiper/wiper.sh-404-##
hdparm-9.58+ds/wiper/wiper.sh:405:fsoffset=`$HDPARM -g "$fsdev" | $GAWK 'END {print $NF}'`
hdparm-9.58+ds/wiper/wiper.sh-406-
##############################################
hdparm-9.58+ds/wiper/wiper.sh-415-	## Mounted: we could just use $BLKID here, too, but it's safer to use /proc/mounts directly:
hdparm-9.58+ds/wiper/wiper.sh:416:	fstype="`$GAWK -v p="$fsdir" '{if ($2 == p) r=$3} END{print r}' < /proc/mounts`"
hdparm-9.58+ds/wiper/wiper.sh-417-	[ $verbose -gt 0 ] && echo "$fsdir: fstype=$fstype"
##############################################
hdparm-9.58+ds/wiper/wiper.sh-456-	##
hdparm-9.58+ds/wiper/wiper.sh:457:	freesize=`$DF -P -B 1024 . | $GAWK '{r=$4}END{print r}'`
hdparm-9.58+ds/wiper/wiper.sh-458-	if [ "$freesize" = "" ]; then
##############################################
hdparm-9.58+ds/wiper/wiper.sh-486-		DUMPE2FS=`find_prog /sbin/dumpe2fs` || exit 1
hdparm-9.58+ds/wiper/wiper.sh:487:		fstate="`$DUMPE2FS $fsdev 2>/dev/null | $GAWK '/^[Ff]ilesystem state:/{print $NF}' 2>/dev/null`"
hdparm-9.58+ds/wiper/wiper.sh-488-		if [ "$fstate" != "clean" ]; then
##############################################
hdparm-9.58+ds/wiper/wiper.sh-506-		##
hdparm-9.58+ds/wiper/wiper.sh:507:		agcount=`$XFS_DB -r -c "sb" -c "print agcount" "$fsdev" | $GAWK '{print 0 + $NF}'`
hdparm-9.58+ds/wiper/wiper.sh-508-		[ "$agcount" = "" -o "$agcount" = "0" ] && xfs_abort "agcount"
##############################################
hdparm-9.58+ds/wiper/wiper.sh-522-		##
hdparm-9.58+ds/wiper/wiper.sh:523:		blksize=`$XFS_DB -r -c "sb" -c "print blocksize" "$fsdev" | $GAWK '{print 0 + $NF}'`
hdparm-9.58+ds/wiper/wiper.sh-524-		[ "$blksize" = "" -o "$blksize" = "0" ] && xfs_abort "block size"
##############################################
hdparm-9.58+ds/wiper/wiper.sh-544-		ICAT=`find_prog /usr/local/bin/icat` 
hdparm-9.58+ds/wiper/wiper.sh:545:		if [ "`$ICAT -f list 2>/dev/stdout|$GREP HFS+`" = "" ]; then
hdparm-9.58+ds/wiper/wiper.sh-546-                        echo "Wrong icat, version from package sleuthkit >= 3.1.1 is required for hfsplus."
##############################################
hdparm-9.58+ds/wiper/wiper.sh-549-		#check for unmounted properly
hdparm-9.58+ds/wiper/wiper.sh:550:		if [ "`$FSSTAT -f hfs $fsdev | $GREP "Volume Unmounted Properly"`" = ""  ]; then
hdparm-9.58+ds/wiper/wiper.sh-551-			echo "Hfsplus volume unmounted improperly!"
##############################################
hdparm-9.58+ds/wiper/wiper.sh-555-		FFIND=`find_prog /usr/local/bin/ffind`
hdparm-9.58+ds/wiper/wiper.sh:556:		if [ "`$FFIND -f hfs $fsdev 6`" != "/\$AllocationFile" ]; then
hdparm-9.58+ds/wiper/wiper.sh-557-			echo "Hfsplus bitmap \$AllocationFile is not inode 6!"
##############################################
hdparm-9.58+ds/wiper/wiper.sh-560-		#get offset for hfsplus with a wrapper
hdparm-9.58+ds/wiper/wiper.sh:561:		hfsoffset=`$FSSTAT -f hfs $fsdev | $GREP "File system is embedded in an HFS wrapper at offset "|$TR -d "\t"`
hdparm-9.58+ds/wiper/wiper.sh-562-		if [ -n "$hfsoffset" ]; then
##############################################
hdparm-9.58+ds/wiper/wiper.sh-566-		fi
hdparm-9.58+ds/wiper/wiper.sh:567:		blksize=`$FSSTAT -f hfs $fsdev | $GREP "Allocation Block Size: "|$TR -d "\t"`
hdparm-9.58+ds/wiper/wiper.sh-568-		blksize=${blksize:23}
##############################################
hdparm-9.58+ds/wiper/wiper.sh-570-		#get count of used bytes in $AllocationFile
hdparm-9.58+ds/wiper/wiper.sh:571:		blkcount=`$FSSTAT -f hfs $fsdev | $GREP "Block Range: 0 - "`
hdparm-9.58+ds/wiper/wiper.sh-572-		blkcount=${blkcount:17}
##############################################
hdparm-9.58+ds/wiper/wiper.sh-575-		method="bitmap_offline"
hdparm-9.58+ds/wiper/wiper.sh:576:		get_trimlist="echo $blksects hfsplus `$ICAT -f hfs $fsdev 6 | $OD -N $bytecount -An -vtu1 -j0 -w1`"
hdparm-9.58+ds/wiper/wiper.sh-577-	elif [ "$fstype" = "ntfs" ]; then
##############################################
hdparm-9.58+ds/wiper/wiper.sh-589-		#check for volume version
hdparm-9.58+ds/wiper/wiper.sh:590:		if [ "`$NTFSINFO -m -f $fsdev | $GREP "Volume Version: 3.1"`" = "" ]; then
hdparm-9.58+ds/wiper/wiper.sh-591-			echo "NTFS volume version must be 3.1!"
##############################################
hdparm-9.58+ds/wiper/wiper.sh-593-		fi
hdparm-9.58+ds/wiper/wiper.sh:594:		blksize=`$NTFSINFO -m -f $fsdev | $GREP "Cluster Size: " | $TR -d "\t"`
hdparm-9.58+ds/wiper/wiper.sh-595-		blksize=${blksize:14}
##############################################
hdparm-9.58+ds/wiper/wiper.sh-597-		#get count of used bytes in $Bitmap
hdparm-9.58+ds/wiper/wiper.sh:598:		blkcount=`$NTFSINFO -m -f $fsdev | $GREP "Volume Size in Clusters: " | $TR -d "\t"`
hdparm-9.58+ds/wiper/wiper.sh-599-		blkcount=${blkcount:25}
##############################################
hdparm-9.58+ds/wiper/wiper.sh-602-		method="bitmap_offline"
hdparm-9.58+ds/wiper/wiper.sh:603:		get_trimlist="echo $blksects ntfs `$NTFSCAT $fsdev \\\$Bitmap | $OD -N $bytecount -An -vtu1 -j0 -w1`"
hdparm-9.58+ds/wiper/wiper.sh-604-	fi
##############################################
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-20--		#get offset for hfsplus with wrapper/bootvolume
hdparm-9.58+ds/wiper/diffs-3.1plus.patch:21:-		hfsoffset=`$FSSTAT -f hfs $fsdev | $GREP "File system is embedded in an HFS wrapper at offset "|tr -d "\t"`
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-22-+		TR=`find_prog /usr/bin/tr` || exit 1
##############################################
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-29-+		ICAT=`find_prog /usr/local/bin/icat` 
hdparm-9.58+ds/wiper/diffs-3.1plus.patch:30:+		if [ "`$ICAT -f list 2>/dev/stdout|$GREP HFS+`" = "" ]; then
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-31-+                        echo "Wrong icat, version from package sleuthkit >= 3.1.1 is required for hfsplus."
##############################################
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-34-+		#check for unmounted properly
hdparm-9.58+ds/wiper/diffs-3.1plus.patch:35:+		if [ "`$FSSTAT -f hfs $fsdev | $GREP "Volume Unmounted Properly"`" = ""  ]; then
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-36-+			echo "Hfsplus volume unmounted improperly!"
##############################################
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-40-+		FFIND=`find_prog /usr/local/bin/ffind`
hdparm-9.58+ds/wiper/diffs-3.1plus.patch:41:+		if [ "`$FFIND -f hfs $fsdev 6`" != "/\$AllocationFile" ]; then
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-42-+			echo "Hfsplus bitmap \$AllocationFile is not inode 6!"
##############################################
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-45-+		#get offset for hfsplus with a wrapper
hdparm-9.58+ds/wiper/diffs-3.1plus.patch:46:+		hfsoffset=`$FSSTAT -f hfs $fsdev | $GREP "File system is embedded in an HFS wrapper at offset "|$TR -d "\t"`
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-47- 		if [ -n "$hfsoffset" ]; then
##############################################
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-51- 		fi
hdparm-9.58+ds/wiper/diffs-3.1plus.patch:52:-		blksize=`$FSSTAT -f hfs $fsdev | $GREP "Allocation Block Size: "|tr -d "\t"`
hdparm-9.58+ds/wiper/diffs-3.1plus.patch:53:+		blksize=`$FSSTAT -f hfs $fsdev | $GREP "Allocation Block Size: "|$TR -d "\t"`
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-54- 		blksize=${blksize:23}
##############################################
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-70-+		#check for volume version
hdparm-9.58+ds/wiper/diffs-3.1plus.patch:71:+		if [ "`$NTFSINFO -m -f $fsdev | $GREP "Volume Version: 3.1"`" = "" ]; then
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-72-+			echo "NTFS volume version must be 3.1!"
##############################################
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-74-+		fi
hdparm-9.58+ds/wiper/diffs-3.1plus.patch:75: 		blksize=`$NTFSINFO -m -f $fsdev | $GREP "Cluster Size: " | $TR -d "\t"`
hdparm-9.58+ds/wiper/diffs-3.1plus.patch-76- 		blksize=${blksize:14}
##############################################
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-109-		prog="${prog##*/}"
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5:110:		p=`type -f -P "$prog" 2>/dev/null`
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-111-		if [ "$p" = "" ]; then
##############################################
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-135-##
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5:136:if [ `$ID -u` -ne 0 ]; then
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-137-	echo "Only the super-user can use this (try \"sudo $0\" instead), aborting."
##############################################
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-143-##
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5:144:HDPVER=`$HDPARM -V | $GAWK '{gsub("[^0-9.]","",$2); if ($2 > 0) print ($2 * 100); else print 0; exit(0)}'`
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-145-if [ $HDPVER -lt 925 ]; then
##############################################
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-158-##
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5:159:slaves=(`$LS /sys/block/$raiddev/slaves`)
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-160-#slaves=(sda sdb sdc)
##############################################
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-188-##
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5:189:lines=`$DF --type=ext4 $fsdir 2>/dev/null | $GREP -v ^Filesystem | wc -l`
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-190-if [ $lines -ne 1 ]; then
##############################################
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-203-##
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5:204:freesize=`$DF -P -B 1024 $fsdir | $GAWK '{r=$4}END{print r}'`
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-205-if [ "$freesize" = "" ]; then
##############################################
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-268-				$GAWK '{print $4}'`
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5:269:LAST_EXTENT_LBA=`$HDPARM --fibmap $tmpfile | tail -1 | $GAWK '{print $2}'`
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-270-
##############################################
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-278-##
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5:279:refchksum=`dd iflag=direct status=noxfer bs=$SECTOR_BYTES count=$LAST_EXTENT_SECTOR_COUNT skip=$LAST_EXTENT_LBA if=/dev/$raiddev 2>/dev/null | sha1sum`
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-280-index=0
##############################################
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-282-do
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5:283:	chksum=`dd iflag=direct status=noxfer bs=$SECTOR_BYTES count=$LAST_EXTENT_SECTOR_COUNT skip=$LAST_EXTENT_LBA if=/dev/$slave 2>/dev/null | sha1sum`
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-284-
##############################################
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-355-	if [ $max_ranges -eq 0 ] ; then
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5:356:		model=`$HDPARM -I /dev/$slave | $GAWK '/Model Number/ { print $NF }'`
hdparm-9.58+ds/wiper/contrib/raid1ext4trim.sh-1.5-357-		case "$model" in
##############################################
hdparm-9.58+ds/contrib/ultrabayd-39-		done <<- END
hdparm-9.58+ds/contrib/ultrabayd:40:			`eval $TPCTL -iU`
hdparm-9.58+ds/contrib/ultrabayd-41-		END
##############################################
hdparm-9.58+ds/hdparm.c-434-#define SUPPORTS_ACS3(id) ((id)[80] & 0x400)
hdparm-9.58+ds/hdparm.c:435:#define SUPPORTS_AMAX_ADDR(id) (SUPPORTS_ACS3(id) && ((id)[119] & (1u << 8)))
hdparm-9.58+ds/hdparm.c:436:#define SUPPORTS_48BIT_ADDR(id) ((((id)[83] & 0xc400) == 0x4400) && ((id)[86] & 0x0400))
hdparm-9.58+ds/hdparm.c-437-
##############################################
hdparm-9.58+ds/hdparm.c-1336-
hdparm-9.58+ds/hdparm.c:1337:	if (SUPPORTS_AMAX_ADDR(id)) {
hdparm-9.58+ds/hdparm.c-1338-		/* ACS3 supported, no 28-bit variant defined in spec */
##############################################
hdparm-9.58+ds/hdparm.c-1356-	} else { // ACS2 or below, or optional AMAX not present
hdparm-9.58+ds/hdparm.c:1357:		if (SUPPORTS_48BIT_ADDR(id)) {
hdparm-9.58+ds/hdparm.c-1358-			r.iflags.bits.hob.lbal  = 1;
##############################################
hdparm-9.58+ds/hdparm.c-1830-	
hdparm-9.58+ds/hdparm.c:1831:	if (SUPPORTS_AMAX_ADDR(id)) {
hdparm-9.58+ds/hdparm.c-1832-		/* ACS3 supported, no 28-bit variant defined in spec */
##############################################
hdparm-9.58+ds/hdparm.c-1843-	} else {
hdparm-9.58+ds/hdparm.c:1844:		if ((max_lba >= lba28_limit) || SUPPORTS_48BIT_ADDR(id)) {
hdparm-9.58+ds/hdparm.c-1845-			init_hdio_taskfile(&r, ATA_OP_SET_MAX_EXT, RW_READ, LBA48_FORCE, max_lba, nsect, 0);
##############################################
hdparm-9.58+ds/hdparm.c-2768-				if (visible < native){
hdparm-9.58+ds/hdparm.c:2769:					if (SUPPORTS_AMAX_ADDR(id)) {
hdparm-9.58+ds/hdparm.c-2770-						printf(", ACCESSIBLE MAX ADDRESS enabled\n");
##############################################
hdparm-9.58+ds/hdparm.c-2776-				else if (visible == native){
hdparm-9.58+ds/hdparm.c:2777:					if (SUPPORTS_AMAX_ADDR(id))
hdparm-9.58+ds/hdparm.c-2778-						printf(", ACCESSIBLE MAX ADDRESS disabled\n");