标题:
[文本处理]
批处理如何删除/去除xml文件中指定位置/特征的字符串/行内容(元素/节点)?
[打印本页]
作者:
ttrrf
时间:
2013-11-24 21:06
标题:
批处理如何删除/去除xml文件中指定位置/特征的字符串/行内容(元素/节点)?
我这里有两个xml文件:plurals.xml;choose_lock_pattern_tutorial.xml。
它们的内容分别为:
plurals.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<plurals name="uninstall_dialog_title_format">
<item quantity="other">Uninstall "%1$s" and %2$d other apps?</item>
<item quantity="one">Uninstall \"%s\"</item>
<item quantity="two">Uninstall \"%s\" and 1 other app?</item>
</plurals>
<plurals name="uninstall_result_succeeded">
<item quantity="other">%1$ apps uninstalled</item>
<item quantity="one">App uninstalled</item>
</plurals>
<plurals name="uninstall_result_failed">
<item quantity="other">Couldn't uninstall "%1$s" and %2$d other apps</item>
<item quantity="one">"Couldn't uninstall \"%s\""</item>
<item quantity="two">"Couldn't uninstall \"%s\" and 1 other app"</item>
</plurals>
</resources>
choose_lock_pattern_tutorial.xml:
<?xml version="1.0" encoding="utf-8"?>
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient android:gravity="center_horizontal" android
rientation="vertical" android:id="@id/topLayout" android:background="@drawable/lock_pattern_background" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="96.0dip">
<TextView android:textAppearance="?android:textAppearanceLarge" android:id="@id/headerText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/lock_intro_message" />
</ScrollView>
<com.android.internal.widget.LockPatternView android:id="@id/lockPattern" android:layout_width="354.0dip" android:layout_height="354.0dip" android:layout_marginTop="80.0dip" aspect="square" />
<View android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:layout_alignParentRight="true" style="@style/SecurityPreferenceButtonContainer">
<Button android:id="@id/skip_button" android:text="@string/lockpattern_tutorial_cancel_label" style="@style/SecurityPreferenceButton" />
<Button android:id="@id/next_button" android:text="@string/lockpattern_tutorial_continue_label" style="@style/SecurityPreferenceButton" />
</LinearLayout>
</RelativeLayout>
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
我是想用批处理删除这两个文件里带红色的字符串,又麻烦大大帮个忙呀!谢谢了。
作者:
ttrrf
时间:
2013-11-28 12:12
这个求助贴不能沉呀!麻烦大大们帮帮忙,就当是练习嘛!拜托了。
作者:
ttrrf
时间:
2016-5-7 13:31
标题:
如何用bat删除文本里的指定特征字符串
本帖最后由 ttrrf 于 2016-5-7 13:33 编辑
我有一个文本:apktool.yml,内容是:
!!b.a.b.a
apkFileName: framework-res.apk
compressionType: false
decodeFileMaps:
res/raw-zh-TW/incognito_mode_start_page.html: res/raw-zh-rTW/incognito_mode_start_page.html
res/raw-zh-CN/loaderror.html: res/raw-zh-rCN/loaderror.html
res/raw-zh-TW/loaderror.html: res/raw-zh-rTW/loaderror.html
res/raw-zh-CN/nodomain.html: res/raw-zh-rCN/nodomain.html
res/raw-zh-CN/incognito_mode_start_page.html: res/raw-zh-rCN/incognito_mode_start_page.html
res/raw-zh-TW/nodomain.html: res/raw-zh-rTW/nodomain.html
dexMaps: null
doNotCompress:
- resources.arsc
isFrameworkApk: true
packageInfo:
forcedPackageId: '1'
renameManifestPackage: null
sdkInfo:
minSdkVersion: '22'
targetSdkVersion: '22'
shakaVer: 2.0.0-20160406
sharedLibrary: false
unknownFiles:
res/drawable/notification_icon_legacy_bg.xml: '8'
META-INF/MANIFEST.MF: '8'
usesFramework: null
version: 2.1.0-
versionInfo:
versionCode: '22'
versionName: 5.1.1
个位大神,请指教把标记红色的部分用批处理删除。谢谢了。
欢迎光临 批处理之家 (http://bathome.net./)
Powered by Discuz! 7.2