SyntaxFix
Write A Post
Hire A Developer
Questions
🔍
[shell] How to make grep only match if the entire line matches?
Home
Question
How to make grep only match if the entire line matches?
similarly with awk
awk '/^ABB\.log$/' file
Examples related to
shell
•
Comparing a variable with a string python not working when redirecting from bash script
•
Get first line of a shell command's output
•
How to run shell script file using nodejs?
•
Run bash command on jenkins pipeline
•
Way to create multiline comments in Bash?
•
How to do multiline shell script in Ansible
•
How to check if a file exists in a shell script
•
How to check if an environment variable exists and get its value?
•
Curl to return http status code along with the response
•
docker entrypoint running bash script gets "permission denied"
Examples related to
unix
•
Docker CE on RHEL - Requires: container-selinux >= 2.9
•
What does `set -x` do?
•
How to find files modified in last x minutes (find -mmin does not work as expected)
•
sudo: npm: command not found
•
How to sort a file in-place
•
How to read a .properties file which contains keys that have a period character using Shell script
•
gpg decryption fails with no secret key error
•
Loop through a comma-separated shell variable
•
Best way to find os name and version in Unix/Linux platform
•
Resource u'tokenizers/punkt/english.pickle' not found
Examples related to
grep
•
grep's at sign caught as whitespace
•
cat, grep and cut - translated to python
•
How to suppress binary file matching results in grep
•
Linux find and grep command together
•
Filtering JSON array using jQuery grep()
•
Linux Script to check if process is running and act on the result
•
grep without showing path/file:line
•
How do you grep a file and get the next 5 lines
•
How to grep, excluding some patterns?
•
Fast way of finding lines in one file that are not in another?