乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      云計算學習路線課程大綱資料:參數(shù)傳遞 Xargs

       千鋒云計算 2019-08-21

      今天給大家分享一些云計算學習路線課程大綱資料,這篇文章是關(guān)于參數(shù)傳遞 Xargs的一些學習筆記資料,希望能給大家一些幫助:

      ====================================================================================

      awk sed grep sort uniq less more xargs

      xargs: ls cp rm

      案例1

      [root@localhost ~]# touch /home/file{1..5}

      [root@localhost ~]# vim files.txt

      /home/file1

      /home/file2

      /home/file3

      /home/file4

      /home/file5

      [root@localhost ~]# cat files.txt |ls -l

      [root@localhost ~]# cat files.txt |rm -rvf

      cont.

      [root@localhost ~]# cat files.txt |xargs ls -l

      -rw-r--r--. 1 root root 0 Mar 11 10:35 /home/file1

      -rw-r--r--. 1 root root 0 Mar 11 10:35 /home/file2

      -rw-r--r--. 1 root root 0 Mar 11 10:35 /home/file4

      -rw-r--r--. 1 root root 0 Mar 11 10:35 /home/file5

      [root@localhost ~]# cat files.txt |xargs rm -rvf

      removed ‘/home/file1’

      removed ‘/home/file2’

      removed ‘/home/file4’

      removed ‘/home/file5’

      案例2

      [root@localhost ~]# touch /home/file{1..5}

      [root@localhost ~]# cat files.txt |xargs -I {} ls -l {}

      -rw-r--r--. 1 root root 0 Mar 11 10:40 /home/file1

      -rw-r--r--. 1 root root 0 Mar 11 10:40 /home/file2

      -rw-r--r--. 1 root root 0 Mar 11 10:40 /home/file4

      -rw-r--r--. 1 root root 0 Mar 11 10:40 /home/file5

      [root@localhost ~]# cat files.txt |xargs -I {} cp -rvf {} /tmp

      ‘/home/file1’ -> ‘/tmp/file1’

      ‘/home/file2’ -> ‘/tmp/file2’

      ‘/home/file4’ -> ‘/tmp/file4’

      ‘/home/file5’ -> ‘/tmp/file5’

      [root@localhost ~]# cat files.txt |xargs -I YANG cp -rvf YANG /var/tmp

      ‘/home/file1’ -> ‘/var/tmp/file1’

      ‘/home/file2’ -> ‘/var/tmp/file2’

      ‘/home/file4’ -> ‘/var/tmp/file4’

      ‘/home/file5’ -> ‘/var/tmp/file5’

      案例3

      [root@localhost ~]# find /etc -iname "*ifcfg*" |xargs -I {} cp -rf {} /tmp

        本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約