---
title: "Discussion on \"Unlock multiple pdf and merge them using bash script\" | Hashnode"
description: "Discussion on \"Unlock multiple pdf and merge them using bash script\". #!/bin/bash\n\n# Check for input files\nif [ $# -eq 0 ]; then\n  echo \"Usage: $0 file1.pdf file2.pdf ...\"\n  exit 1\nfi\n\n# Read password securely\nread -sp \"Enter PDF password: \" password\necho\n\n# Create temporary directory\ntemp_dir=$(mktemp -d)\n\n# Decrypt a..."
url: "https://hashnode.com/posts/unlock-multiple-pdf-and-merge-them-using-bash-script/68c8cbc94d425b8a2d2e550a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Unlock multiple pdf and merge them using bash script](https://kaiyom.hashnode.dev/unlock-multiple-pdf-and-merge-them-using-bash-script?utm_source=hashnode&utm_medium=feed)

#!/bin/bash # Check for input files if \[ $# -eq 0 \]; then echo "Usage: $0 file1.pdf file2.pdf ..." exit 1 fi # Read password securely read -sp "Enter PDF password: " password echo # Create temporary directory temp\_dir=$(mktemp -d) # Decrypt a...

Sep 16, 2025 · 1 min read · kaiyom.hashnode.dev  
Read the article

-   [#pdf](https://hashnode.com/tag/pdf)
-   [#banking](https://hashnode.com/tag/banking)
-   [#statement](https://hashnode.com/tag/statement)
-   [#automation](https://hashnode.com/tag/automation)

## Written by

[Md. Kaiyom](https://hashnode.com/@kaiyom)

@kaiyom · Dhaka, Bangladesh

  
[View profile](https://hashnode.com/@kaiyom)

Let's grow together

To live in hearts we leave behind is not to die

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
