Looking to make modifications to specific CSS styles using awk/gawk. For instance, how can I alter the right property of the cta_grad style?:
.cta_grad {
cursor: pointer;
cursor: hand;
position: absolute;
bottom: 38px;
right: 34px;
width: 77px;
height: 29px;
overflow: hidden;
background-image: url("images/cta_grad.png");
}
Here's an example in bash that I am after:
gawk -i inplace 'EDIT right VALUE OF cta_grad TO 14px' style.css
this command should produce:
right: 14px;
I would also like to change the actual property name itself, such as changing right to left. Maybe something like this:
gawk -i inplace 'CHANGE right PROPERTY OF cta_grad TO left' style.css
which would yield:
left: 34px;
Thank you