Jump to content

Recommended Posts

Posted

Добрый день.

Помогите, пожалуйста.

Еcть текстовый файл (к примеру А)

В нём:

label_1, label_2,label_3

Нужен shell-скрипт, который

Создаст копию исходного файла с папке /home/user/copy копию знаю как делать , а вот замену найти не могу

Заменит label_1 на системное время, когда вызван скрипт

Заменит label_2 на имя пользователя, под которым вызван скрипт

Замент label_3 на параметр, который передается скрипту в командной строке

Кто чем может )

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...