News for hackers. Stuff that matters.
Re:Reaching the Unix Philosophy's Logical Extreme with WebAs... by scarmig on Monday August 28, 2023 @05:35PM (#37300697)
nand.sh

  A_DIR="./A"
  B_DIR="./B"
  OUTPUT_DIR="./OUTPUT"
  FILENAME="input.txt"

  if [ -f "$A_DIR/$FILENAME" ] && [ -f "$B_DIR/$FILENAME" ]; 
  then
      rm -f "$OUTPUT_DIR/$FILENAME"
  else
      touch "$OUTPUT_DIR/$FILENAME"
  fi

There are no comments on this comment yet.