Hello!

Im rather new to linux and scripting i have a small question.
Will this syntax work

read $hitta | grep '$hitta' nummer.txt ;;

I was planning to read the input from the user and use grep to find it from the file nummer.txt

It dont work so well:)

Please try

read HITTA; grep ${HITTA} nummer.txt
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.