Nguyễn Trà
New member
How do you show file names in Linux?
Answer
Grep From Files and Display the File Name On Linux or Unix System
Answer
Grep From Files and Display the File Name On Linux or Unix System
- grep “word” filename grep root /etc/*
- grep -l “string” filename grep -l root /etc/*
- grep -L “word” filename grep -L root /etc/*
- ## get filenames ## files=$(grep -l -R ‘http://www.cyberciti.biz’ . )