11-08-2013, 09:45 PM
(This post was last modified: 11-08-2013, 09:47 PM by honglonglong.)
Yes that makes sense! I got it working, thank you!!!!
one question though, I don't quite understand your code though. are you trying to preload the masks file and then loop the variable in stead of the file? i mean for these 3 lines of code:
Instead of looping the file, it actually looping the characters in the file path, which is the $1.
one question though, I don't quite understand your code though. are you trying to preload the masks file and then loop the variable in stead of the file? i mean for these 3 lines of code:
(11-08-2013, 08:37 PM)unix-ninja Wrote:Code:#!/bin/bash
masks="`cat $1`"
...
set $(cat $1)
for line in $@; do
...
Instead of looping the file, it actually looping the characters in the file path, which is the $1.