C
C
chincharovpc2020-04-24 07:23:26
bash
chincharovpc, 2020-04-24 07:23:26

How to write code in bash?

set SUB 'blue'
set rgb [open rgb1.txt r]
while {[eof $rgb] == 0} {
  set colorstr [gets $rgb]
  if {$colorstr != ""} {
    if {$colorstr == ??????} {
      .lb1 insert 0 $colorstr
    }
  }
}

There is a script fragment that reads a line from files and adds it to the listbox
Task: Find the substring 'blue' in the string $colorstr and if found, then perform the action
What should I write instead of ?????? ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question