Answer the question
In order to leave comments, you need to log in
bash script. how to write if if there are matches in regexp?
I need to file a watcher file for me, which would work and run the desired script only when changing * .sfc files.
I can't write one line correctly. Help ai nid sombadi!
inotifywait -r -m -e modify /path/to/my_project |
while read path _ file;
do
if expr match $file ".sfc" <- WHAT AM I DOING WRONG HERE?
node path/to/meteor-sfc.js --file $path$file
done
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question