Skip to main content
Made the title of the question more understandable considering the content of the question that was asked
Link

how to use Redirect a directory as input? to a script and output to a file

Source Link
asura
  • 309
  • 2
  • 4
  • 8

how to use directory as input?

I want to use a directory name as a parameter for a pre-made script. Then the output goes into a newly made file in the home directory. It involves pipe/redirection. How do I do that?

read dir $dir > script > outputfile