echo ~cs252/Assignments/emacsAsst/*.txt /usr/include/*.h What do you get if you have a list of files spearated by spaces, followed by another list of files separated by spaces? Answer: A longer list of files, separated by spaces. Grep constitution ~cs252/Assignments/emacsAsst/8*.txtĮach time you use a wildcard pattern, the command shell expands that to a list of files, separated by spaces: echo ~cs252/Assignments/emacsAsst/*.txt Grep -l constitution ~cs252/Assignments/emacsAsst/*.txt Grep -v title ~cs252/Assignments/emacsAsst/*.txt Grep -i title ~cs252/Assignments/emacsAsst/*.txt Grep title ~cs252/Assignments/emacsAsst/*.txt Grep Author ~cs252/Assignments/emacsAsst/*.txt Grep Title ~cs252/Assignments/emacsAsst/*.txt Make sure that you understand what you are seeing in each case. Wildcards will come in very handy here.Įxample 3: Try This: Operating on multiple files at onceĭo the following. The list of file paths indicates which files to examine. The pattern, for now, will just be any string made up of letters and numbers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |