News for hackers. Stuff that matters.
Re:Minimal safe Bash script template by quyleanh on Tuesday December 15, 2020 @06:28AM (#25429263)
So true. In my case, if my script has loop, I will use python or perl instead of bash.
Re:Minimal safe Bash script template by aduitsis on Tuesday December 15, 2020 @06:35AM (#25429312)
If the script must iterate over the lines of its input, I've found perl -nlE to be a godsend. Basically it is equivalent to

  while(<>){
      chomp;
      <insert your -E code here>
  }