bash - WC on OSX - Return includes spaces -


when run word count command in osx terminal wc -c file.txt below answer includes spaces padded before answer. know why happens, or how can prevent it?

    18000 file.txt 

i expect get:

18000 file.txt 

this occurs using bash or bourne shell.

i suppose way of getting outputs line nicely, , far know there no option wc fine tunes output format.

you rid of them pretty piping through sed 's/^ *//', example.

there may simpler solution, depending on why want rid of them.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -