grep -Fx ABB.log a.tmp
From the grep man page:
-F, –fixed-strings
Interpret PATTERN as a (list of) fixed strings
-x, –line-regexp
Select only those matches that exactly match the whole line.
More Related Contents:
- Find and replace in file and overwrite file doesn’t work, it empties the file
- How to use multiple arguments for awk with a shebang (i.e. #!)?
- What are the uses of the exec command in shell scripts? [closed]
- How can I reverse the order of lines in a file?
- How can I execute a command stored in a variable?
- How to remove carriage return from a variable in shell script
- How/When does Execute Shell mark a build as failure in Jenkins?
- Compare two files line by line and generate the difference in another file
- Floating-point arithmetic in UNIX shell script
- Run java jar file on a server as background process
- How do you tell if a string contains another string in POSIX sh?
- How does the #! shebang work?
- Piping tail output though grep twice
- Unix find command, what are the {} and \; for?
- Finding contents of one file in another file
- Compare a string using sh shell
- Shell one liner to prepend to a file
- Waiting for background processes to finish before exiting script
- How is % (percent sign) special in crontab?
- Trim leading and trailing spaces from a string in awk
- Can I call a function of a shell script from another shell script?
- Remove part of path on Unix
- Using grep and sed to find and replace a string
- Which terminal command to get just IP address and nothing else?
- How do I determine if a web page exists with shell scripting?
- How to add text at the end of each line in unix
- Call a Unix Script from Excel Vba
- How to print 5 consecutive lines after a pattern in file using awk [duplicate]
- Unix shell script find out which directory the script file resides?
- how do I use the grep –include option for multiple file types?