[CentOS] need help: about remove space
loco at d0pefish.de
Fri Apr 30 14:51:33 UTC 2010
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......"
> I need it as fileB and then wc -l fileB.
grep -cv ^$ file
> Thank you so much
> file B
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 261 bytes
Desc: OpenPGP digital signature
More information about the CentOS