← Back to team overview

sslug-teknik team mailing list archive

Re: Comparison i bash

 

Anders <anders@xxxxxxx> writes:

>   Hejsa, hvis jeg gerne vil lave et tjek med if om en string
>   indeholder en specifik substring, hvad for en operator skal jeg så
>   bruge?

læs "man test"

if [ $a = "ting" ] ; then
  echo foobar;
fi

-- 
hash-bang-slash-bin-slash-bash


Follow ups

References