Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
    • Ubuntu
    • LTSP
    • HowTo
    • BASH
      • Scripts
        • Bild-O-Mat.sh
        • Create thumbnail
        • Etope-O-Mat.sh
        • Fix file permissions
        • Linux Kernel Benchmark
        • SSH backup
        • connectToVPN.sh
        • copyCd.sh
        • formatCamcard.sh
        • mkBackupMx.sh
        • mkEbook.sh
        • mkHomeBackup.sh
        • mkNewsletterImg.sh
        • runPhotoshop.sh
        • setFileRights.sh
        • sshToHost.sh
      • check_http_access
      • extractEbook.sh
      • fdupes
      • fiXorg.sh
      • getUniqueFirstLetter.sh
      • mkBackup.sh
      • script-server
      • snippets
      • syncHome.sh
      • syncStore.sh
      • syncTs.sh
    • Backtrack
    • CUPS
    • CentOS
    • Debian
    • FreeNX
    • GRML
    • Gnome
    • Grub
    • IpFire
    • Kernel
    • Linux Lite
    • SSH
    • UEFI
    • dban
    • logrotate
    • parted
    • proxy
    • systemd
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid
#!/bin/bash

# check parameter
if [ $# -lt 1 ]; then
	echo "USAGE: $0 LIST_NO"
	exit
else
	LISTID=$1
fi


function create_pdfmark() {
cat < /tmp/pdfmarks
[ /Author (panticz.de)
/Creator (panticz.de)
/Producer (panticz.de)
/Keywords ($1, panticz.de)
/Title (panticz.de ${LISTID} - $1)
/Subject (panticz.de ${LISTID})
/DOCINFO pdfmark
EOF
}


for DIR in *
do	
	if [ -d "${DIR}" ]; then
		# convert to lowercase
		OUT=$(echo ${DIR} | tr "[:upper:]" "[:lower:]")

		# filter	
		OUT="${OUT// /_}"	# replace " " with "_"
		OUT="${OUT//ä/ae}"	# replace "ä" with "ae"
		OUT="${OUT//ö/oe}"	# replace "ö" with "oe"
		OUT="${OUT//ü/ue}"	# replace "ü" with "ue"
		OUT="${OUT//,/}"	# remove ","

		# create pdfmarks file
		TITLE=${DIR#* }
		create_pdfmark "${TITLE}"

		# create pdf
		cd "./${DIR}/"
		gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -sOutputFile=../l${LISTID}_${OUT}.pdf *.pdf /tmp/pdfmarks
		cd ..
	fi
done
Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung