Timeline for Grep command in shell script
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 12, 2013 at 1:12 | comment | added | Simas.B | $3 contains full path to directory(~/../multiple_dir/*), eval didn't help. | |
| Dec 12, 2013 at 0:57 | review | First posts | |||
| Dec 12, 2013 at 1:09 | |||||
| Dec 12, 2013 at 0:53 | comment | added | alvits | Is $3 a file like file.inp whose content is a list of files like ~/../multiple_dir/*? When cat didn't work I assume this is not your case. If $3 is a variable containing a list of file then there is no need to cat it. You will just need to ls it Try: ${PROGRAM} ${REGEXP} $(eval ls ${INP_FILE}) > ${OUT_FILE} 2>&1 | |
| Dec 12, 2013 at 0:44 | comment | added | Simas.B | That didn't help, still getting empty output. | |
| Dec 12, 2013 at 0:40 | history | answered | alvits | CC BY-SA 3.0 |