Here is what i want to do... I want to write a script which sends all the files in a folder as an input to the command2.
I know pipes are used to send the output of one command to another but in my case, when i do
ls | command
What this does is it sends the output of ls ( i.e. all the files in the folder ) as a single input. Instead, I want that the individual files are sent as an argument to the command2, one by one.
Can anyone please help me out i really searched a lot for it but didn't find much.