OCR to Add Text to File

Well, just to update you and hopefully this will be of any help for other users.
I created my own command to ocr a PDF.
1- I created a script and called the file ocr.sh

#!/bin/bash
echo $1
ocrmypdf -l ara+eng "$1" "$1"

2- Thanks to this thread The Mighty Terminal
I added

alias ocr="bash /home/limo/MyScripts/ocr.sh"

to “~/.bashrc”

Now I can just

[limo@limo ~]$ ocr aliascommand.pdf

and it is done automagically.
I learnt a lot.
Again thank you all for all you support.

3 Likes