I'm looking to write a script that takes a .txt filename as an argument, reads the file line by line, and passes each line to a command. For example, it runs command --option "LINE 1", then command --option "LINE 2", etc. I am fetching object files from a library file, I have all the object file names saved in .txt file.
How do I go about doing that? Just a Single Line of Command with different filenames from text file.
I don't know where to start.
I am using MAC terminal.
Thanks in advance.
Paul