background-image:url(/images/xxx.png); 위와 같이 정의된 css에서 링크부분만 추출하는건 아래와 같이 할 수 있다.
grep -Po '(?<=url\()[^)]*' common.css sed -n 's/.*url(\([^)]*\).*/\1/p' common.css]]>
background-image:url(/images/xxx.png); 위와 같이 정의된 css에서 링크부분만 추출하는건 아래와 같이 할 수 있다.
grep -Po '(?<=url\()[^)]*' common.css sed -n 's/.*url(\([^)]*\).*/\1/p' common.css]]>