git log --diff-filter=D --summary > deleted-files.txt
git checkout <commit-id>~1 <file/path>
git --no-pager log --stat --format="===%n%s%-b" | sed '/^$/d' > ../commits-log.txt
git log --diff-filter=D --summary > deleted-files.txt
git checkout <commit-id>~1 <file/path>
git --no-pager log --stat --format="===%n%s%-b" | sed '/^$/d' > ../commits-log.txt
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf |
find ./ -name "*.xml" -exec xmllint --noout {} \;
find . -name "*.xml" -type f -exec xmllint --encode utf8 --output '{}' --format --noblanks '{}' \;
find . -name "*.xml" -type f -exec xmllint --noout --nowarning --schema ./modules/validation/tei_all.xsd '{}' \; 2>output.txt
grep -Pazor --include="A*.xml" 'string.*\n.*string' .
grep -ril --include="A*.xml" "string" .
grep -riL --include="A*.xml" "string" .
find ./ -name "*.xml" -exec sed -i '/<p> <\/p>/d' {} \;
find . -name "*" -print0 | xargs -0 grep -l "string"
find ./ -name "A*.xml" -exec sed -i '/string/{n;d}' {} \;
find . -name "*" -print0 | xargs -0 grep -l "22" |
declare function local:create-collections-recursively($target-collection-uri as xs:string, $new-collection-path-steps as xs:string*) as xs:string* { | |
if (exists($new-collection-path-steps)) | |
then | |
let $new-collection-name := $new-collection-path-steps[1] | |
let $new-collection-uri := $target-collection-uri || "/" || $new-collection-name | |
return ( | |
if (not(xmldb:collection-available($new-collection-uri))) | |
then xmldb:create-collection($target-collection-uri, $new-collection-name) | |
else () |
declare function local:add-index-configuration-file($collection-path as xs:string) { | |
let $index-collection-path := $system-config-collection-path || $collection-path | |
return ( | |
if (not(xmldb:collection-available($index-collection-path))) | |
then local:create-collections-recursively($system-config-collection-path, tokenize($collection-path, "/")) | |
else () | |
, | |
xmldb:store-files-from-pattern($index-collection-path, $dir, "modules/indexes" || $collection-path || "/*.xconf") | |
, |
Files that are in both Dir1 and Dir2: | |
find "$Dir1/" "$Dir2/" -printf '%P\n' | sort | uniq -d | |
Files that are in Dir1 but not in Dir2: | |
find "$Dir1/" "$Dir2/" "$Dir2/" -printf '%P\n' | sort | uniq -u |