What should happen is all the lines in the original file which belong to a certain category will be deleted from the original file and copied to a new file, say catA_list and catB_list, etc. Similar lists would exist for catB.dat and catC.dat. For example, the file catA.dat may be the following: Some of these files are categorized according to some other text files listing the files belonging to that category. I have a long text file (i'll call it all_files.txt) listing all the files on the system, each line showing the checksum, permissions, date, and file name with path. However I'm new to sed and all the reading and examples I've found don't seem to show a similar exercise: I'm trying to figure out how to do this efficiently with as little execution time as possible and I'm pretty sure using sed is the best way.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |