I'm trying to get the name of a variable between two different symbols in bash with the following command:
nfs4_getfacl .| grep -E ":.:.*:"
These are the strings obtained:
A:fdg:user@server:rxtTncC
A:g:user@server:xtcy
A:d:1111:xtcy
I'm trying to replace the value 1111 or any other numerical values that I come across in the list, this usually comes across as the third position according to the nfs4 permissions but is not always necessarily the case:
1111 -> replaced_value
A:fdg:user@server:rxtTncC
A:g:user@server:xtcy
A:d:replaced_value:xtcy