Skip to content
Advertisement

Prevent entering duplicate records in file using Shell Script

I am creating one sh file in which user enters the roll number, name, subject name and marks. And i am storing it in one text file. Now i don’t want the user to enter the same roll number again. If he enters the same roll number it should throw an message. Here is what i have done:

JavaScript

How to prevent Entering the duplicate roll number.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement