exec

  1. B

    Solved Find and copy files script doesn't work

    Hi. I have the following script which searches for a list of files (included in a list.txt file) and then copies them into a new directory. The source files are all under the same folder, but they are scattered among several subfolders. #!/bin/bash SOURCE="/opt/source_folder/"...
  2. kenJackson

    A new twist on while-loops

    If you've ever tried to use a while-loop like this, you've experienced some frustration. #!/bin/sh RESULT= cat db | while read index color; do test "$index" = 2 && RESULT="$color" done echo "Index 2 is \"$RESULT\"" Where I'm using this file named db: 1 red 2 green 3 blue When you run...
Top