[Ubuntu-zh] 能这样合并文件吗?

石康志 shikangzhi在gmail.com
星期六 六月 14 07:46:25 BST 2008


Ê×ÏÈÄãÓ¦¸ÃºÃºÃ¿´¿´ÎÊÌ⣬Ëû²¢Ã»ÓÐ˵ҪÈÃfile2µÄ*¿é*
¼ôÇе½file1µÄºóÃ棬¶øÇÒÕâÊÇÍêȫûÓеÀÀíµÄ¡£½¨ÒéÄã¿´¿´ext3ÎļþϵͳµÄ»ù±¾¸ÅÄ´ó²¿·ÖµÄÎļþϵͳ»ù±¾¸ÅÄî²î²»¶à£©¡£
ÔÙ˵catÊÇÓÃÀ´Á¬½ÓÎļþµÄ£¬¾ÍÊÇ°Ñfile2¼ôÇе½file1Àï°¡£¬¶øÇÒÔ­ÎÊÌâ¾ÍÒѾ­ËµÁË¿ÉÒÔcat
file2>>file1¡£²»¹ýÎÒ³ÐÈÏÕâÊÇÎļþϵͳÇý¶¯µÄÊ£¨ÎÒûÓÐ˵²»ÊÇ°¡£©£¬ÎªÊ²Ã´²»¿ÉÒÔÓÅ»¯ÎļþϵͳµÄcat²Ù×÷£¿

2008/6/14 AutumnCat <bigsnake_list在sina.com>:

>  Äã¿´»ØÔ­ÎÊÌâ
> *ÓÐûÓÐÒ»ÖÖ°ì·¨£¬ÄÜ°Ñfile2 "¼ôÇÐ"µ½file1ÖУ¿Ò²¾ÍÊÇ˵°Ñfile2ÔÚÎļþϵͳÖÐÕ¼ÓõÄÊý¾Ý¿é·ÖÅä¸øfile1
> *
> ËûµÄÒâ˼Êǽ« file2  µÄ¿é"´®ÔÚ" file1 ºóÃæ, ÕâÏÔÈ»ÊÇÎļþϵͳÇý¶¯µÄÊÂ, ¸ù±¾²»ÂÖcat, rename ....¹Ü.
>
> ʯ¿µÖ¾ дµÀ:
>
> ¿éÈçºÎ×éÖ¯µÄÈ·ÊÇÎļþϵͳ¾ö¶¨µÄ£¬µ«Õâ¸ö²Ù×÷¾ø²»»áÆÆ»µÊý¾Ý½á¹¹£¬ÒòΪʵ¼ÊÎļþºÍÎļþµØÖ·ÐÅÏ¢ÊÇ·Ö¿ª¹ÜÀíµÄ£¬ÎÒÃǸù±¾²»ÐèÒª¶Ôʵ¼ÊÎļþ½øÐвÙ×÷£¬ÐèÒª¸Ä¶¯
> µÄÖ»ÊǵØÖ·ÐÅÏ¢£¬ÕâʵÏÖÆðÀ´ÊÇÍêÈ«¿ÉÐеģ¨°üÀ¨link, rm,
> rename,¡­¡­ºÃ¶à¶¼ÊÇÖ»¸ÄÁ˵ØÖ·ÐÅÏ¢£©£¬Äã˵±ðµÄ³ÌÐò²»»áÓõ½ÎÒûÀí½â£¬ÕâÖ»ÊǸĽøÁËcat²Ù×÷£¬²¢Ã»ÓÐеĽӿڣ¬ÎªÊ²Ã´Ã»ÓÐͨÓÃÐÍ£¿
>
>
> 2008/6/14 AutumnCat <bigsnake_list在sina.com>:
>
> ¿éÈçºÎ×éÖ¯ÊÇÎļþϵͳµÄÊý¾Ý½á¹¹¾ö¶¨µÄ, ²»Ò»¶¨Ö§³ÖÕâÖÖ²Ù×÷(·ñÔò¾ÍÆÆ»µÊý¾Ý½á¹¹). ¼´Ê¹ÊµÏÖÁË, Ò²µÃÐÞ¸ÄÎļþϵͳÇý¶¯,
> µ«±ðµÄ³ÌÐò¸ù±¾²»»áÓÃÕâ¸ö½Ó¿Ú, ²»¾ßÓÐͨÓÃÐÔ.
>
> Zu дµÀ:
>
> û´í
>
>  2008/6/13 ʯ¿µÖ¾ <shikangzhi在gmail.com>:
>
> ËäÈ»¿éÊÇ˳Ðò´æ´¢µÄ£¬µ«ÊÇÈç¹ûÒ»¸öÎļþÓÉ3¸ö¿é×é³É£¬²¢²»ÒªÇóÕâÈý¸ö¿éÒª·Åµ½Ò»Æð£¬ËùÒÔÈç¹ûÎļþAÓÐ4k,BÓÐ8k +
> 1byte,ÔÚÕâÀï²¢²»ÐèÒªÒƶ¯ÈκÎÒ»·½£¬ÐèÒª×öµÄÖ»ÊǸü¸ÄÎļþAµÄµØÖ·ÐÅÏ¢¼ÓÉϵØÖ·B,²¢É¾µôBµÄÎļþµØÖ·ÐÅÏ¢(ºÍrm×öµÄÒ»Ñù£¬rmҲֻɾµôµØÖ·ÐÅ
> Ï¢£¬ËùÒÔ¿ÉÒÔÕÒ»ØÊý¾Ý)¡£
>
>  2008/6/13 Zu <zzh在rashost.com>:
>
> Ok£¬¿¼Âǵ±Ò»¸ö¿éûÓб»Õ¼ÂúµÄÇé¿öÄØ£¿¿´¿´ÎÒÇ°Ãæ¾ÙµÄÀý×Ó£¿
>
>  2008/6/13 ʯ¿µÖ¾ <shikangzhi在gmail.com>:
>
> µÄÈ·ÔÚ¿éÄÚÊÇÅÅÐòµÄ£¬²»¹ýÕû¸öÎļþ¸ù±¾²»ÐèÒªÒƶ¯£¬ËùÓдÓÄĶùÀ´µÄÎÊÌâÄØ£¿
>
>  2008/6/13 Zu <zzh在rashost.com>:
>
> ûÓÐÈË˵ÊÇ°´Ë³ÐòÅÅÁеġ£°´²»°´Ë³ÐòÅÅÁÐÊDz»Ò»¶¨µÄ£¬Ëµ²»¶¨ÄÄÌìË­¿ª·¢³öÒ»¸öÍêÈ«°´Ë³ÐòÅÅÁеģ¬²»¿¼ÂÇЧÂʵÄÎÄ ¼þϵͳҲ²»ÊÇûÓпÉÄÜ¡£
>
> ext3ÔÚ¿éÄÚÊÇ°´Ë³ÐòµÄ¡£½¨ÒéÏÈÁ˽âÒ»ÏÂext3µÄ·Ö¿éµÄ»ù±¾¸ÅÄîÔÙÌÖÂÛ¡£
>
>   2008/6/13 ʯ¿µÖ¾ <shikangzhi在gmail.com>:
>
> ÍêÈ«²»¶Ô£¡ÔÚÎļþϵͳÖУ¬Îļþ²¢²»ÊÇ˳ÐòÅÅÁеģ¬Ò²ÐíÒ»¸ö1GµÄÎļþÓÐ100MBÔÚ'0£¬ 0'->100mbµØÖ·£¬ºóÃæ¿ÉÒÔÔÚ'10000000£¬
> 10000000'->900mb£¬²¢²»ÒªÇóÕâÒ»¸öGµÄ¶«Î÷È«²¿°´Ë³Ðò·Åµ½Ò»Æ𣬿ØÖÆÕâÒ»Çеģ¬½ö½öÊÇÒ»¸öÎļþµÄµØÖ·ÐÅÏ¢£¨Äã¿ÉÒÔ°ÑËüÏëÏó³ÉÖ¸
> Õ룩£¬ËùÒÔ¿ÉÒÔͨ¹ý¸Ä±äµØÖ·ÐÅÏ¢¿ØÖÆÎļþ¡£
>
>  2008/6/13 Zu <zzh在rashost.com>:
>
> ¿ÉÄÜÊÇÎÒûÓаÑÎÊÌâ˵Çå³þ£¬ÎÒµÄÔ­»°ÊÇ£º
>
> *ÓÐ2¸öÎļþ£¬file1ºÍfile2£¬´óС¶¼ÊÇ4G£¬Èç¹ûÏëºÏ²¢file1ºÍfile2£¬¿ÉÒÔ cat
> file2>>file1À´ÊµÏÖ£¬ÕâÑùÒª»¨¼¸·ÖÖÓʱ¼ä¡£ÓÐûÓÐÒ»ÖÖ°ì·¨£¬ÄÜ°Ñfile2 "¼ôÇÐ"
> µ½file1ÖУ¿Ò²¾ÍÊÇ˵°Ñfile2ÔÚÎļþϵͳÖÐÕ¼ÓõÄÊý¾Ý¿é·ÖÅä¸øfile1£¿Ê¹ÓõÄÊÇext3Îļþϵͳ¡£*
>
>  mv
> µÄ×÷ÓÃÊÇ°ÑÒ»¸öÎļþ¸ÄÒ»¸öÃû×Ö£¬¸ÃÎļþ³ýÁËÎļþÃûÒÔÍâÆäËûÐÅÏ¢¶¼²»±ä£¬ËùÒÔmvµÄËÙ¶ÈÌرð¿ì¡£mv²»ÄÜ°ÑÒ»¸öÎļþµÄÄÚÈÝÒƶ¯µ½ÁíÒ»¸öÎļþµÄĩβȥ¡£ÎÒ¾õ×Å
> ÏÂÃæshell909090˵µÄ±È½ÏÓеÀÀí£º
>
> *ÓеãÀ§ÄÑ£¬ÒòΪ¸ù¾ÝÎÒµÄÀí½â£¬ÈκÎÎļþÔÚ´ÅÅÌÖж¼ÊÇ"¿é* *"µÄ¼¯ºÏ´æ´¢µÄ¡£Èç¹ûÍ·
> Ò»¸öÎļþÕýºÃ·ÅÂúN¿é»¹ºÃ˵£¬Èç¹ûÕýºÃ²îÒ»µã£¬ÄÇôºóÃæµÄÊý¾Ý°´**ÕÕ¹æÔò±ØÐëÏÈ
> Ìî³äÇ°ÃæµÄ¿é¡£ÕâÑù»áÔì³ÉºóÒ»¸öÎļþÈ«ÃæµÄÄÚÈÝλÒÆ**£¬Æä¶ÁдÊý¾ÝÁ¿Ã»ÓбÈÖ±½Ó
> ¸½¼ÓµÍ¶àÉÙ¡£*
>
> ¾ÙÀý£º
> file1µÄÎļþ³¤¶ÈÊÇ1¸ö×Ö½Ú£¬ÔÚ¿é´óСÊÇ4kµÄext3ÎļþϵͳÏ£¬Õâ¸öÎļþÒªÕ¼ÓÃ4kµÄ¿Õ¼ä£¬Ò²¾ÍÊÇÒ»¸ö¿éµÄ¿Õ¼ä¡£
> file2µÄÎļþ³¤¶ÈÊÇ8K+1¸ö×Ö½Ú£¬ÔÚ¿é´óСÊÇ4kµÄext3ÎļþϵͳÏ£¬Õâ¸öÎļþÒªÕ¼ÓÃ8K+4kµÄ¿Õ¼ä£¬Ò²¾ÍÊÇ3¸ö¿éµÄ¿Õ¼ä¡£
> Èç¹ûÒª°Ñfile2¼ôÇе½file1µÄĩ⣬Ҫ×öµ½±È"cat file2>>file1"¸ü¿ì£¬²»ÐÞ¸ÄÄÚºËÖеÄÎļþϵͳÄÜ×öµ½Âð£¿
>
> 2008/6/13 ÂíÀû <richard.ma.19850509在gmail.com>:
> > ¿´¿´mvµÄÔ´´úÂë¾Í²î²»¶àÁË°É£¬Êʵ±¸´Óã¬Ã»¿´³öÀ´ºÍÄÚºËÓÐʲô¹Øϵ
> >
> > --
> > ÂíÀû
> > richard.ma
>  > --
> > ubuntu-zh mailing list
> > ubuntu-zh在lists.ubuntu.com
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
> >
> >
>
>
>
> --
> ÈðºÀ¿ªÔ´VPS - »ùÓÚLinux/Xen - ×îµÍ58Ôª/Ô - Ãâ·ÑÊÔÓÃ
> http://www.RasHost.com
>
> --
> ubuntu-zh mailing list
> ubuntu-zh在lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>
>
> --
> ubuntu-zh mailing list
> ubuntu-zh在lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>
>
>
> --
> ÈðºÀ¿ªÔ´VPS - »ùÓÚLinux/Xen - ×îµÍ58Ôª/Ô - Ãâ·ÑÊÔÓÃ
> http://www.RasHost.com
>
> --
> ubuntu-zh mailing list
> ubuntu-zh在lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>
>
> --
> ubuntu-zh mailing list
> ubuntu-zh在lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>
>
>
> --
> ÈðºÀ¿ªÔ´VPS - »ùÓÚLinux/Xen - ×îµÍ58Ôª/Ô - Ãâ·ÑÊÔÓÃ
> http://www.RasHost.com
>
> --
> ubuntu-zh mailing list
> ubuntu-zh在lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>
>
> --
> ubuntu-zh mailing list
> ubuntu-zh在lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>
>
>
> --
> ÈðºÀ¿ªÔ´VPS - »ùÓÚLinux/Xen - ×îµÍ58Ôª/Ô - Ãâ·ÑÊÔÓÃ
> http://www.RasHost.com
>
>
> --
> ubuntu-zh mailing list
> ubuntu-zh在lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>
>
> --
> ubuntu-zh mailing list
> ubuntu-zh在lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
>
>


-- 
qingshi163
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: https://lists.ubuntu.com/archives/ubuntu-zh/attachments/20080614/13f2756e/attachment-0001.htm 


More information about the ubuntu-zh mailing list