% cat >dict
red rojo
green verde
blue azul
%
% cat dictIf we wish to add text to an existing file we do this:
red rojo
green verde
blue azul
%
% cat >>dict
white blanco
black negro
%
Now suppose that we have another file tmp that looks like this:
% cat tmpThen we can join dict and tmp like this:
cat gato
dog perro
%
% cat dict tmp >dict2
We could check the number of lines in the new file like this:
% wc -l dict2
8
The command wc counts things --- the number of characters, words, and line in a file.
No comments:
Post a Comment