This isn't what was requested, but I'm pretty certain it will be useful nonetheless. The truncate command can create a file and make it a specific number of characters in size. Truncation happens from the end of the file if too large. So truncate 10000 file.txt would make a file 10000 characters in length. Editing that file in overwrite mode not insert mode change lines don't insert lines would use up the space for the character limit on the file. Saving an edit; then truncating the file again but to a different file name than the original then comm -2 file1 file2 would show lines only in file2 not in file1.


--

_______________________________________________
Blinux-list mailing list
Blinux-list@redhat.com
https://www.redhat.com/mailman/listinfo/blinux-list

Reply via email to