cut part of a string using awk
I have a file full of similar strings, which look like this:
Code:
Port::Ifindex.34 The output should be Code:
34 |
I dont use awk much, you could use 'cut' though:
Code:
#!/bin/bash Code:
cut -d. -f2 text_file Code:
gawk -F. '{ print $2 }' text_file kbp |
Code:
awk -F"." '{print $NF}' file |
All times are GMT -5. The time now is 06:49 AM. |