М
Молодежь
К
Компьютеры-и-электроника
Д
Дом-и-сад
С
Стиль-и-уход-за-собой
П
Праздники-и-традиции
Т
Транспорт
П
Путешествия
С
Семейная-жизнь
Ф
Философия-и-религия
Б
Без категории
М
Мир-работы
Х
Хобби-и-рукоделие
И
Искусство-и-развлечения
В
Взаимоотношения
З
Здоровье
К
Кулинария-и-гостеприимство
Ф
Финансы-и-бизнес
П
Питомцы-и-животные
О
Образование
О
Образование-и-коммуникации
alexeremka
alexeremka
03.03.2022 08:14 •  Другие предметы

Тема: Работа с оболочкой bash
Создание скриптов в bash

Для создания скриптов можно использовать любые текстовые редакторы или команду cat, например:

cat >script3

Далее вводится текст. Для окончания ввода используют комбинацию клавиш Ctrl+D.

1. Создать скрипт script1, использующий параметры командной строки:

cat > script1

#! /bin/bash

parametr1=$1

scriptname=$0

echo "Вы запустили скрипт с именем $scriptname и параметром $1"

exit 0

2. Сделать файл исполняемым:

chmod +x script1

3. Запустить скрипт на выполнение:

./script1 qwerty
Мне нужны скрин шоты

👇
Открыть все ответы
Ответ:
Shkolnik555777
Shkolnik555777
03.03.2022
1. What languages ​​does he say? He speaks three languages ​​2. An important issue discussed at the meeting bude at 5 o'clock tomorrow. 3. What fun to play football or watch the match? 4. The more we go the more we liked the city. 5. Unfortunately we are not able to invite so many people. 6. He had to get up early and take the time to train. 7. The kids were thrilled because they were promised gifts. 8. It is very dark, I can not see anything. You should turn on the light. 9. If I knew a foreign language I could translate without a dictionary. Если не сложно, ставим
4,8(7 оценок)
Ответ:
nikfdd
nikfdd
03.03.2022
1. What languages ​​does he say? He speaks three languages ​​2. An important issue discussed at the meeting bude at 5 o'clock tomorrow. 3. What fun to play football or watch the match? 4. The more we go the more we liked the city. 5. Unfortunately we are not able to invite so many people. 6. He had to get up early and take the time to train. 7. The kids were thrilled because they were promised gifts. 8. It is very dark, I can not see anything. You should turn on the light. 9. If I knew a foreign language I could translate without a dictionary. Если не сложно, ставим
4,6(79 оценок)
Это интересно:
Новые ответы от MOGZ: Другие предметы
logo
Вход Регистрация
Что ты хочешь узнать?
Спроси Mozg
Открыть лучший ответ