Re: Layout of /etc/services

2011-03-12 Thread shawn wilson
On Mar 12, 2011 11:03 AM, "Lisi" wrote: > > On Saturday 12 March 2011 15:12:54 Camaleón wrote: > > On Sat, 12 Mar 2011 14:48:11 +, Lisi wrote: > > > In an /etc/services file, why are some port/protocol entries inset more > > > than others? > > > > (...) > > > > "man services" will give you add

Re: Layout of /etc/services

2011-03-12 Thread Lisi
On Saturday 12 March 2011 15:12:54 Camaleón wrote: > On Sat, 12 Mar 2011 14:48:11 +, Lisi wrote: > > In an /etc/services file, why are some port/protocol entries inset more > > than others? > > (...) > > "man services" will give you additional information about the format of > that file. Both,

Re: Layout of /etc/services

2011-03-12 Thread Camaleón
On Sat, 12 Mar 2011 14:48:11 +, Lisi wrote: > In an /etc/services file, why are some port/protocol entries inset more > than others? (...) "man services" will give you additional information about the format of that file. Both, spaces and tabs can be used as field separators. sm01@stt008:~

Re: Layout of /etc/services

2011-03-12 Thread Jerome BENOIT
Hello Lisi, I am not sure about your question. But I guess that part of the answer holds in what is meant by space: ' ' or '\t' In `/etc/services', '\t' is used but not ' ': try cat -A /etc/services to see that. Given that, cat /etc/services gives an aligned port/protocol column. Jerome

Layout of /etc/services

2011-03-12 Thread Lisi
In an /etc/services file, why are some port/protocol entries inset more than others? The obvious answer would be: because the names are longer and the entry therefore needs more space. But that doesn't work. E.g. the two entries for gds_ub (one for tcp, and one for udp) are indented the extra