首页 > 其他分享 >xargs-awk-sed-管道拼接字符串

xargs-awk-sed-管道拼接字符串

时间:2024-12-23 14:52:37浏览次数:3  
标签:Sending xargs OKAY img fastboot flash Writing sed awk

ls | xargs -l |awk -F '.' '{printf("%s %s\n",$1,$0)}' |sed 's/^/fastboot flash /g'

root@huang:/home/huang/1# ls
abl.img cmnlib.img fw_4u1ea.img oem_stanvbk.img vbmeta.img
aop.img devcfg.img hyp.img qupfw.img vendor.img
bluetooth.img dsp.img keymaster.img storsec.img xbl_config.img
boot.img dtbo.img LOGO.img system.img xbl.img
cmnlib64.img fw_4j1ed.img modem.img tz.img
root@huang:/home/huang/1# ls | xargs -l |awk -F '.' '{printf("%s_b %s\n",$1,$0)}' |sed 's/^/fastboot flash /g'
fastboot flash abl_b abl.img
fastboot flash aop_b aop.img
fastboot flash bluetooth_b bluetooth.img
fastboot flash boot_b boot.img
fastboot flash cmnlib64_b cmnlib64.img
fastboot flash cmnlib_b cmnlib.img
fastboot flash devcfg_b devcfg.img
fastboot flash dsp_b dsp.img
fastboot flash dtbo_b dtbo.img
fastboot flash fw_4j1ed_b fw_4j1ed.img
fastboot flash fw_4u1ea_b fw_4u1ea.img
fastboot flash hyp_b hyp.img
fastboot flash keymaster_b keymaster.img
fastboot flash LOGO_b LOGO.img
fastboot flash modem_b modem.img
fastboot flash oem_stanvbk_b oem_stanvbk.img
fastboot flash qupfw_b qupfw.img
fastboot flash storsec_b storsec.img
fastboot flash system_b system.img
fastboot flash tz_b tz.img
fastboot flash vbmeta_b vbmeta.img
fastboot flash vendor_b vendor.img
fastboot flash xbl_config_b xbl_config.img
fastboot flash xbl_b xbl.img
root@huang:/home/huang/1#


fastboot flash abl_b abl.img
fastboot flash aop_b aop.img
fastboot flash bluetooth_b bluetooth.img
fastboot flash boot_b boot.img
fastboot flash cmnlib64_b cmnlib64.img
fastboot flash cmnlib_b cmnlib.img
fastboot flash devcfg_b devcfg.img
fastboot flash dsp_b dsp.img
fastboot flash dtbo_b dtbo.img
fastboot flash fw_4j1ed_b fw_4j1ed.img
fastboot flash fw_4u1ea_b fw_4u1ea.img
fastboot flash hyp_b hyp.img
fastboot flash keymaster_b keymaster.img
fastboot flash LOGO_b LOGO.img
fastboot flash modem_b modem.img
fastboot flash qupfw_b qupfw.img
fastboot flash storsec_b storsec.img
fastboot flash system_b system.img
fastboot flash tz_b tz.img
fastboot flash vbmeta_b vbmeta.img
fastboot flash vendor_b vendor.img
fastboot flash xbl_config_b xbl_config.img
fastboot flash xbl_b xbl.img

fastboot flash oem_stanvbk oem_stanvbk.img


fastboot flash abl_a abl.img
fastboot flash aop_a aop.img
fastboot flash bluetooth_a bluetooth.img
fastboot flash boot_a boot.img
fastboot flash cmnlib64_a cmnlib64.img
fastboot flash cmnlib_a cmnlib.img
fastboot flash devcfg_a devcfg.img
fastboot flash dsp_a dsp.img
fastboot flash dtbo_a dtbo.img
fastboot flash fw_4j1ed_a fw_4j1ed.img
fastboot flash fw_4u1ea_a fw_4u1ea.img
fastboot flash hyp_a hyp.img
fastboot flash keymaster_a keymaster.img
fastboot flash LOGO_a LOGO.img
fastboot flash modem_a modem.img
fastboot flash qupfw_a qupfw.img
fastboot flash storsec_a storsec.img
fastboot flash system_a system.img
fastboot flash tz_a tz.img
fastboot flash vbmeta_a vbmeta.img
fastboot flash vendor_a vendor.img
fastboot flash xbl_config_a xbl_config.img
fastboot flash xbl_a xbl.img

fastboot flash oem_stanvbk oem_stanvbk.img


Sending 'abl_a' (204 KB) OKAY [ 0.011s]
Writing 'abl_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'aop_a' (180 KB) OKAY [ 0.008s]
Writing 'aop_a' OKAY [ 0.002s]
Finished. Total time: 0.015s
Sending 'bluetooth_a' (748 KB) OKAY [ 0.026s]
Writing 'bluetooth_a' OKAY [ 0.005s]
Finished. Total time: 0.037s
Sending 'boot_a' (65536 KB) OKAY [ 1.820s]
Writing 'boot_a' OKAY [ 0.315s]
Finished. Total time: 2.166s
Sending 'cmnlib64_a' (484 KB) OKAY [ 0.021s]
Writing 'cmnlib64_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'cmnlib_a' (368 KB) OKAY [ 0.018s]
Writing 'cmnlib_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'devcfg_a' (40 KB) OKAY [ 0.008s]
Writing 'devcfg_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'dsp_a' (32768 KB) OKAY [ 0.910s]
Writing 'dsp_a' OKAY [ 0.153s]
Finished. Total time: 1.118s
Sending 'dtbo_a' (8192 KB) OKAY [ 0.237s]
Writing 'dtbo_a' OKAY [ 0.069s]
Finished. Total time: 0.388s
Sending 'fw_4j1ed_a' (344 KB) OKAY [ 0.018s]
Writing 'fw_4j1ed_a' OKAY [ 0.003s]
Finished. Total time: 0.028s
Sending 'fw_4u1ea_a' (344 KB) OKAY [ 0.016s]
Writing 'fw_4u1ea_a' OKAY [ 0.004s]
Finished. Total time: 0.026s
Sending 'hyp_a' (380 KB) OKAY [ 0.015s]
Writing 'hyp_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'keymaster_a' (212 KB) OKAY [ 0.008s]
Writing 'keymaster_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'LOGO_a' (3156 KB) OKAY [ 0.096s]
Writing 'LOGO_a' OKAY [ 0.017s]
Finished. Total time: 0.121s
Sending 'modem_a' (121764 KB) OKAY [ 3.390s]
Writing 'modem_a' OKAY [ 0.545s]
Finished. Total time: 4.172s
Sending 'qupfw_a' (64 KB) OKAY [ 0.009s]
Writing 'qupfw_a' OKAY [ 0.002s]
Finished. Total time: 0.021s
Sending 'storsec_a' (24 KB) OKAY [ 0.006s]
Writing 'storsec_a' OKAY [ 0.001s]
Finished. Total time: 0.013s
Invalid sparse file format at header magic
Sending sparse 'system_a' 1/4 (785809 KB) OKAY [ 21.936s]
Writing 'system_a' OKAY [ 0.001s]
Sending sparse 'system_a' 2/4 (769816 KB) OKAY [ 25.289s]
Writing 'system_a' OKAY [ 0.001s]
Sending sparse 'system_a' 3/4 (766743 KB) OKAY [ 24.239s]
Writing 'system_a' OKAY [ 0.001s]
Sending sparse 'system_a' 4/4 (458360 KB) OKAY [ 15.849s]
Writing 'system_a' OKAY [ 0.001s]
Finished. Total time: 89.092s
Sending 'tz_a' (2008 KB) OKAY [ 0.057s]
Writing 'tz_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'vbmeta_a' (4 KB) OKAY [ 0.008s]
Writing 'vbmeta_a' OKAY [ 0.001s]
Finished. Total time: 0.017s
Invalid sparse file format at header magic
Sending sparse 'vendor_a' 1/2 (786409 KB) OKAY [ 21.965s]
Writing 'vendor_a' OKAY [ 0.001s]
Sending sparse 'vendor_a' 2/2 (220309 KB) OKAY [ 9.829s]
Writing 'vendor_a' OKAY [ 0.001s]
Finished. Total time: 32.551s
Sending 'xbl_config_a' (96 KB) OKAY [ 0.009s]
Writing 'xbl_config_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed
Sending 'xbl_a' (3212 KB) OKAY [ 0.092s]
Writing 'xbl_a' FAILED (remote: 'Flashing is not allowed for Critical Partitions')
fastboot: error: Command failed

标签:Sending,xargs,OKAY,img,fastboot,flash,Writing,sed,awk
From: https://www.cnblogs.com/huangjinbang1996/p/18624029

相关文章

  • AppDomain.CurrentDomain.BaseDirectory涵义
    AppDomain.CurrentDomain.BaseDirectory是获取基目录,它由程序集冲突解决程序用来探测程序集。由显示的路径可以看出,它代表的是程序集所在的目录,它具有读取和写入的属性。//获取程序的基目录。System.AppDomain.CurrentDomain.BaseDirectory//获取模块的完整路径。System.Diag......
  • 【随手记录】Apache POI 报错:Zip bomb detected! The file would exceed the max. rat
    1、背景:使用POI解析Excel报错:Zipbombdetected!Thefilewouldexceedthemax.ratioofcompressedfilesizetothesizeoftheexpandeddata。Thismayindicatethatthefileisusedtoinflatememoryusageandthiscouldposeasecurityrisk.Youcanadj......
  • #渗透测试#漏洞挖掘#红蓝攻防#护网#sql注入介绍08-基于时间延迟的SQL注入(Time-Based S
    免责声明本教程仅为合法的教学目的而准备,严禁用于任何形式的违法犯罪活动及其他商业行为,在使用本教程前,您应确保该行为符合当地的法律法规,继续阅读即表示您需自行承担所有操作的后果,如有异议,请立即停止本文章阅读。目录一、基于时间延迟的SQL注入概述(一)原理(二)应用场景示......
  • 在Linux系统上安装KVM(Kernel-based Virtual Machine)
    在Linux系统上安装KVM(Kernel-basedVirtualMachine)通常与安装libvirt一起进行,因为libvirt提供了对KVM的抽象和管理。以下是在基于Debian(如Ubuntu)和基于RPM(如CentOS/RHEL)的系统上安装KVM的步骤:基于Debian的系统(如Ubuntu) 1.更新包列表:【bash】sudoaptupdate 2.安......
  • sed-每行提取特定字符,下行添加内容
    #文件内容catdhcpcode93配置.txt#Type,ArchitectureName,Reference#0x000x00,x86BIOS,[RFC5970][RFC4578]#0x000x01,NEC/PC98(DEPRECATED),[RFC5970][RFC4578]#0x000x02,Itanium,[RFC5970][RFC4578]#0x000x03,DECAlpha(DEPRECATED),[RFC5970][RFC4578]#0......
  • Cmd that used a lot but always forget
    CmdthatusedalotbutalwaysforgetCompressoruncompress#compresstarcvzfcmprssd.tar.gzcmprssd/Tounpackorextractatarfile,type:tar-xvffile.tarREF:tar-extract-linuxTosavediskspaceandbandwidthoverthenetworkallfilesaresave......
  • 只谈C++11新特性 - Range-based for 循环
    Range-basedfor循环引言C++11引入了一种更加简洁和直观的方式来遍历容器中的元素:基于范围的for循环(Range-basedfor循环)。这种语法不仅简化了代码,还提高了代码的可读性和维护性。本文将详细介绍Range-basedfor循环的用法,并结合代码示例进行说明。Range-based......
  • shell编程——AWK 从入门到精通
    1.前言在日常运维、数据分析和开发工作中,处理文本数据是不可避免的任务。无论是从日志中提取关键信息,还是批量处理数据表,效率和灵活性都至关重要。AWK是UNIX/Linux环境中一款轻量级却功能强大的文本处理工具,它以简洁的语法、强大的模式匹配功能和灵活的操作能力闻名,广......
  • Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, '[SSL
    背景有个网站开了代理,浏览器可以访问,但是命令行ping不通,telnet不通,pythonrequests请求报上述错误解决方案配置代理,改成http请求url="http://m.zhibo8.com/news/web/zuqiu/2024-12-02/match1437755date2024vnative.htm"#替换为实际的网页链接proxies={'http':......
  • what is microphone bias? what is it used for?
    MicrophonebiasreferstoasmallDCvoltageappliedtoamicrophone'sinputlinetoprovidepowertothemicrophone'sinternalelectronics.Thisiscommonlyusedforelectretcondensermicrophones,whicharewidelyusedinheadsets,smartphones......