Check out example codes for "how to alias an awk command". It will help you in understanding the concepts better.
Code Example 1
The problem is attempt to use ' inside a single-quoted string. The most robust solution is to replace each interior ' with '\''
Learn ReactJs, React Native from akashmittal.com