-
Command to locate the word within a text file
Transfered from Linux Config:
Question:
Give the exact command that can locate the word "to" (without quotes) in a file named "file1" (without quotes), but does not display words like "total" or "stone" that are in the same file.
Answer:
-w option of a grep command allows user to search a content of a file for a words, where word is separated on both sides by a white space.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules