#!/bin/bash
for file in "${@}"; do
wc -l -- "${file}"
done
#!/bin/bash
Programa que ejecutará este script.
${@}
Argumentos posicionales. Argumentos que le das al script a través de la línea de comando.
file
Variable que iterará sobre los argumentos dados en ${@}
.
wc -l -- "${file}"
Comando externo que imprimirá el número de líneas en${file}
(excepto cuando ${file}
es -
en cuyo caso imprimirá el número de líneas en su entrada estándar ).
Установите Xgraph:sudo apt install Xgraph
→ Вы получите стабильную версию 12.1.
Тестирование Xgraph :$ cd ns-allinone-2.35/xgraph-12.2/examples/ && xgraph xgtest.xg
.. И обратите внимание, что для «xgraph» требуется файл, чтобы открыть «Xgraph GUI». т.е. $ xgraph
ничего не делает.
«Отказано в доступе» является распространенной ошибкой. :Если ns -allinone -2.xx был распакован с помощью «sudo» или с помощью инструмента Windows©. Правильно:
$ tar xvf ns-allinone-2.35_gcc5.tar.gz
ns -allinone -2.35 _gcc5.tar.gz, ссылкаhttps://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing→ Это обновление 2014 года для версий gcc/g++ 4.4.. 5.3.
ns2 -ИНФОРМАЦИЯhttps://drive.google.com/file/d/1FCjn-9fkR7tKeqClUpHsleaEdnoKRZzq/view?usp=sharing