ºìÁªLinuxÃÅ»§
Linux°ïÖú

LinuxϵÄsplitÃüÁîºÍcatÃüÁî

·¢²¼Ê±¼ä:2014-03-27 09:59:38À´Ô´:ºìÁª×÷Õß:tioced
LinuxϵÄsplitÃüÁîºÍcatÃüÁîÓ¦ÓÃʵÀý£¬Ê¹ÓÃsplitÃüÁîÄÜʵÏÖÎļþµÄ·Ö¸î£¬ÓÃcatÃüÁî¿ÉÒÔÍê³É·Ö¸îÎļþµÄºÏ²¢¡£

±ÈÈ磬ÔÚÏÂÃæsplitÃüÁîÐÐÖÐµÄ ¡°12m¡± ±íʾ·Ö¸îºóµÄÿ¸öÎļþΪ12MB£¬¡°filename¡± Ϊ´ý·Ö¸îÎļþ£¬·Ö¸îºóµÄÎļþ×Ô¶¯ÃüÃûΪxaa£¬xab£¬¡­

$ split -b 12m filename

catÃüÁî¿É½«ÕâЩ·Ö¸îºóµÄÎļþºÏ²¢ÎªÒ»¸öÎļþ£¬²¢Öض¨Ïòµ½¡°largefile¡±ÎļþÖУ¨largefileΪ×Ô¶¨µÄÎļþÃû£©¡£

$ cat x* > largeflie¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. aaa0000306 ÓÚ 2014-05-01 02:52:34·¢±í:

    ºÃ