Count number of characters in file from command line and Vim

The command wc prints several file statistics: bytes, lines, words, etc. Using the -m option we can count the number of characters in a text file.

Install

Open a terminal window and run:

wc -m FILE

We can count the number of characters from Vim editor using this ex command:

:!wc -m %

References

wc(1) - Linux man page

Comments

  1. Olá Wilson,

    Você conhece alguma forma de mudar as cores das janelas no xubuntu. Gostaria de deixar o greybird mais escuro.

    ReplyDelete
    Replies
    1. No meu conhecimento existem duas maneiras: utilizar outro tema que utilize as cores desejadas ou editar manualmente um tema.

      Temas podem ser obtidos aqui:
      http://xfce-look.org/
      http://gnome-look.org/
      http://goo.gl/VzTcK
      http://goo.gl/QA9U6

      O tema Greybird encontra-se aqui: /usr/share/themes/Greybird
      Se pretender modificar o tema, aconselho que crie uma cópia e dê um nome diferente à versão modificada (pe, Greybird-Dark).
      Infelizmente, a criação de temas é um assunto complexo, que requer uma melhor explicação, mas de momento não posso ajudar.

      Boa sorte :)

      Delete

Post a Comment

Popular posts from this blog

[HOW TO] Create QR Codes in Xubuntu 12.04

[FIX] VLC is unable to open the MRL (smb://)

Add items to Xfce Applications Menu