weird issue when trying to read mask option from file
#8
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:

(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.


Messages In This Thread
RE: weird issue when trying to read mask option from file - by honglonglong - 11-08-2013, 09:45 PM