에서 추출 URL이 나는이 파일 (dev1.temp)가 있습니다. 출력은 다음과 같습니다가 완벽하게 작동배쉬 XML 파일
# Make a temp file with all the files url's
grep -o 'url=['"'"'"][^"'"'"']*['"'"'"]' $temp_folder"/devel1.temp" > $temp_folder"/devel2.temp"
# Strip off everything to leave just the url's'
sed -e 's/^url=["'"'"']//' -e 's/["'"'"']$//' $temp_folder"/devel2.temp" > $temp_folder"/devel.temp"
어제 :
include/sa/index.xml
content/sa.xml
include/global/index.xml
include/orientation/index.xml
include/movecamera/index.xml
content/movecamera.xml
include/fullscreen/index.xml
include/instructions/index.xml
include/coordfinder/index.xml
include/editor_and_options/index.xml
나는 다음과 같은 스크립트가 트릭을 수행하려면. 오늘 devel2.temp 및 devel.temp 출력은 다음과 같습니다.
[01;31m[Kurl="include/sa/index.xml"[m[K
[01;31m[Kurl="content/sa.xml"[m[K
[01;31m[Kurl="include/global/index.xml"[m[K
[01;31m[Kurl="include/orientation/index.xml"[m[K
[01;31m[Kurl="include/movecamera/index.xml"[m[K
[01;31m[Kurl="content/movecamera.xml"[m[K
[01;31m[Kurl="include/fullscreen/index.xml"[m[K
[01;31m[Kurl="include/instructions/index.xml"[m[K
[01;31m[Kurl="include/coordfinder/index.xml"[m[K
[01;31m[Kurl="include/editor_and_options/index.xml"[m[K
무슨 일이 벌어지고 있는지에 대한 아이디어가 있습니까?
자리에서 (즉,이 문제에 대한 과잉이다하지만 그것은, XPath는 2.0 지원하는 대부분의 반대로). 문제 해결됨! 감사!!! – RafaelGP