im trying to use the GET command on to find my public address then pipe it to awk to show only the address can anyone tell me the command(s) to remove the last 14 charaters from field 6
Thanks
Thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/bin/ksh
gline="1 2 3 4 5 Xab12345678901234 seven eight"
estr=$(echo "$gline"|nawk ' { print substr($6, (length($6)-13)) } ')
echo "$estr"
#!/bin/ksh
gline="1 2 3 4 5 Xab12345678901234 seven eight"
echo "$gline"|nawk ' { gsub(/..............$/, "", $6); print $0 } '