Skrevet av Emne: bash: How to use the 'for' command  (Lest 4392 ganger)

ATC

  • Gjest
bash: How to use the 'for' command
« på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • How to perform a set of commands with arguments taken from a file or a piped list



    ATC

    • Gjest
    [Solved] bash: How to use the 'for' command
    « Svar #1 på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • "for a in `cat filelist`; do rm -Rf $a; done"

    Remember to use backticks, not ordinary single quote marks