I want to print the whole line with specific column started count variable in text.
- file.log format
1 101010 101010 4.0001 my home
2 101010 101010 5.0001 my home
3 101010 101010 6.0001 my home
4 101010 101010 7.0001 my home
- my script
count=4
awk -v cnt="$count" '$4 ~ /^[cnt]\./' file.log
- I want this result.
1 101010 101010 4.0001 my home
- But my result is nothing....
Please tell me the wrong point of my script.