Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 3.145.86.5
Web Server : Apache
System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0555) :  /etc/qemu-kvm/../ssl/../../bin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //etc/qemu-kvm/../ssl/../../bin/gendiff
#!/bin/sh

[ -z "$1" -o -z "$2" ] && {
# usage
  echo "usage: $0 <directory> <diff-extension>" 1>&2
  exit 1
}

: ${DIFF:=diff}
: ${GENDIFF_DIFF_ARGS:=-up}
: ${GENDIFF_DIFF_CHANGELOG_ARGS:=-U0}

find $1 \( -name "*$2" -o -name ".*$2" \) -print | sort |
while read f; do
    U="${GENDIFF_DIFF_ARGS}"
    [ "`basename $f`" = "ChangeLog$2" ] && U="${GENDIFF_DIFF_CHANGELOG_ARGS}"
    F=/dev/null
    [ -r "${f}" ] && F="${f}"
    echo "${DIFF} ${U} ${F} ${f%$2}"
    ${DIFF} ${U} "${F}" "${f%$2}"
done

Stv3n404 - 2023