Can a conditional statement be used inside a command in bash?

后端 未结 0 1300
心在旅途
心在旅途 2021-01-05 09:31

Can a conditional statement be inserted in, for example, a print command like echo with bash?

E.g. (does not work)

$ cat t.sh
#!/bin/bash

string1=&quo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题