On Sat, Feb 21, 2009 at 08:43:35AM +0200, Тихон Тарнавский wrote: > On Fri, 20.02.2009 18:37:12 , Тихон Тарнавский wrote: > > On Fri, 20.02.2009 18:03:41 , Тихон Тарнавский wrote: > >> Или Вы можете написать достаточно простой конвейер без awk и sed, > >> который из обеих строк ' a b c' и 'a b c' вернул бы, скажем, > >> второе поле (b)? > > Т.е. я и сам покажу навскидку даже два варианта: > > echo $(...) | tr -s ' ' | cut -d ' ' -f 2 > > set $(...) && echo $2 > > Но вот мне не кажется, что какой-то из них менее "чесать правое ухо > > левой пяткой", чем использовать awk-шный print для столь низменных > > задач. > По крайней мере одно ограничение у этих двух вариантов, как и у любых им > подобных, есть точно: длина строки. Потому gawk в любом случае универсальнее > -- о чём я и говорил, как о причине такой привычки: позволяет не задумываться > о том, всегда ли есть пробелы в начале строки, или не всегда; может ли строка > оказаться слишком длинной, или нет. Экономит мозговые усилия на решение более > важных и интересных вопросов. >
На тему "более важных и интересных вопросов": Song of the S360-40 (MP3 audio) http://www.cbttape.org/fun.htm "Around the seventies a IBM CE entered our office with a bunch of card that could make music on our S360-40. The only special feature needed was a transistor receiver placed on or near the cpu. Put the cards in the 2540, set the IPL-switches on 00C and IPL. On the 1052 console you only had to type the S360 model number; 30, 40 or 50 as far as I remember. And there was the music.. My receiver had a cassette recorder onboard and that cassette was stored all the time somewhere in my house. I found it back some time ago and converted to a mp3 file that I just uploaded. It is not Hifi quality of course, some interference is present. But the nicest thing is, you can HEAR the cards are read in by the 2540! Enjoy listening. Rob Dieters" -- Stanislav -- To UNSUBSCRIBE, email to debian-russian-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org