If you want to find only line number where the sting is located within the file use this:
grep -n '/string_To_Find/=' directory/file_Name If you want to find line number and also output the full line name where the string is located in the line use this:
Nếu bạn muốn tìm chỉ số dòng sting nằm ở đâu trong tập tin sử dụng này:grep - n ' string_To_Find / =' thư mục/file_NameNếu bạn muốn tìm số dòng và cũng ra tên đầy đủ các dòng nơi dây nằm trong đường dây sử dụng này: