Thread: [Scripting] How to remove content of one file from another
morning everyone!
i've been puzzling on while , have not been able reach solution, turning selves advice! have 2 files, let's this:
*file a*
*file b*code:item1 item3 item5
is there clever way "subtract" content of file file b, left in file b not contained in (in case item2 , item4)?code:item1 item2 item3 item4 item5
help/suggestions appreciated!
try like:
code:awk -f'\n' 'nr==fnr{_[$1];next}!($1 in _)' "file a" "file b"
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [other] [Scripting] How to remove content of one file from another
Ubuntu
Comments
Post a Comment