Write a command to print the squares of numbers from 1 to 10 using awk command?
Answer / Anjani Kumar
'for i in {1..10}; do echo '$i*$i'; done | awk '{print $1;}''
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of string function match(string,regex)?
Write a command remove all empty lines?
Usage of And/Or/Not operators in AWK?
What is the use of format specifier %x ?
What are Unary arithmetic operators?
How to exit from an awk script using the exit command?
How to Truncate Integers in AWK?
What is the use of CONVFMT?
What is FS in AWK?
What is the use of string functiong sub(regex,replacement)?
What is the use of numeric function srand ?
What is the use of sequence ?