Re: [CentOS] need help: about remove space

2010-04-30 Thread Todd Denniston
Michel van Deventer wrote, On 04/30/2010 10:55 AM: > Hi, > > On Fri, 2010-04-30 at 07:46 -0700, adrian kok wrote: >> Hi all >> >> I have big file as below >> and would like to know how many line eg: wc -l file >> but can't figure out how to know >> >> If I type wc -l file, I only get the 1023 but

Re: [CentOS] need help: about remove space

2010-04-30 Thread Michel van Deventer
Hi, On Fri, 2010-04-30 at 07:46 -0700, adrian kok wrote: > Hi all > > I have big file as below > and would like to know how many line eg: wc -l file > but can't figure out how to know > > If I type wc -l file, I only get the 1023 but it includes the space > When I use cat file | tr -d "\r \n".

Re: [CentOS] need help: about remove space

2010-04-30 Thread Phil Schaffner
cat FileA | tr -s '\n' > FileB ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] need help: about remove space

2010-04-30 Thread Peter Hinse
Am 30.04.2010 16:46, schrieb adrian kok: > I have big file as below > and would like to know how many line eg: wc -l file > but can't figure out how to know > > If I type wc -l file, I only get the 1023 but it includes the space > When I use cat file | tr -d "\r \n". it gives me "adrian alice..

[CentOS] need help: about remove space

2010-04-30 Thread adrian kok
Hi all I have big file as below and would like to know how many line eg: wc -l file but can't figure out how to know If I type wc -l file, I only get the 1023 but it includes the space When I use cat file | tr -d "\r \n". it gives me "adrian alice.." I need it as fileB and then wc -l fileB.