From: Henri Bourbon <useperl@fastmail.fm> To: Alexander Mayorov <community@altlinux.ru> Subject: [Comm] [JT] òÅÚÁÔØ ÆÁÊÌ ÎÁ ËÕÓÏÞËÉ Date: Tue, 24 Sep 2002 14:23:54 +0400 Message-ID: <19716082703.20020924142354@fastmail.fm> (raw) In-Reply-To: <200209240608.10823.fedex@bashnet.ru> On 24 Sep 2002 4:08, Alexander Mayorov wrote: > А что скажет общественность по поводу команды csplit??? > Я, к сожалению, так и не понял, как сделать так, что бы отрезались первые, > например не 30 кб, а 50 строк. > Беда, в общем... > Придется браться за perl. А не хотелось бы :( Александр, о том, что вы плохо знакомы с tail (1), вам уже написал Мих. Шигорин. Но любопытно, что ваше письмо с выражением неохоты "браться за perl" содержало *30 строк*, а программа на Perl, отрезающая эти самые 50 первых строк у каждого из входных файлов -- *одну*. ;-) perl -i\~ -ne 'print if $.>50; close ARGV if eof' ИМЕНА_ФАЙЛОВ -- HB
next prev parent reply other threads:[~2002-09-24 10:23 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-09-20 2:54 [Comm] Резать файл на кусочки Alexander Mayorov 2002-09-20 4:54 ` Alexander Mayorov 2002-09-23 13:18 ` Alexander Mayorov 2002-09-23 15:48 ` [Comm] " Michael Shigorin 2002-09-23 16:48 ` Yura Kalinichenko 2002-09-23 17:52 ` Michael Shigorin 2002-09-23 19:00 ` Yura Kalinichenko 2002-09-24 0:08 ` Alexander Mayorov 2002-09-24 7:28 ` Artem K. Jouravsky 2002-09-24 2:28 ` Alexander Mayorov 2002-09-24 9:25 ` Michael Shigorin 2002-09-24 11:28 ` Antonio 2002-09-24 10:23 ` Henri Bourbon [this message] 2002-09-24 15:21 ` Yura Kalinichenko 2002-09-25 6:43 ` Alexander Mayorov 2002-09-25 15:18 ` "Илья Брызгалов" 2002-09-26 1:11 ` Ruslan Balkin 2002-09-26 14:30 ` Yura Kalinichenko
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=19716082703.20020924142354@fastmail.fm \ --to=useperl@fastmail.fm \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git