Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

awk get last field

awk -F "/" '{print $NF}' input	
#Retrieves last field in line delimited with "/"
 
PREVIOUS NEXT
Tagged: #awk #field
ADD COMMENT
Topic
Name
8+2 =