Fortune Telling Collection - Ziwei fortune-telling - What does the awk -v option mean? A little dizzy -v var = val-assign = var = val.
What does the awk -v option mean? A little dizzy -v var = val-assign = var = val.
Simply put, variables in the shell can't be used in AWK programs, because when executing AWK, it is a new process to deal with it, so you need -v to pass parameters to awk programs. For example, if you have a variable a= 15 in the shell program, you can't use the variable A directly in the awk program, but use awk -v b=a, then it will be in the awk program. It's equivalent to using one!
- Previous article:Wei Zi's Love Luck
- Next article:What does The Story of Yan Xi Palace eat to stay young? Who else has eaten in history?
- Related articles
- How to make tomato hot pot bottom material?
- What are the ornamental values of Lagerstroemia indica?
- The domineering sentence of a faster girl is very inspirational. 20 19 Aauto Quicker is a very popular inspirational sentence.
- Will the 10-year Universiade rush to the Lovers Palace?
- How did you get the original Shenchai Smoke House suit?
- Weizigu in Chengdu
- The punishment in Wei Zidou is that printing is forbidden.
- What does the flower language of purple rose mean (the symbolic meaning represented by lavender rose)
- Lagerstroemia indica in my arms
- What spirit did the royal tailor of Song Meiling explain with his life?