shell script

  1. B

    Solved Shellscript appending array values

    Hi, I'm developing a shellscript which searches through an specific directory and stores filenames in 3 arrays (files1, files2 and files3). I have 3 dates to search through (date1, date2, and date3) files1=$(ls -1 filename_$date1*.txt 2>/dev/null) files2=$(ls -1 filename_$date2*.txt...
  2. 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/"...
Top