Skip to main content

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*
code:
item1 item3 item5
*file b*
code:
item1 item2 item3 item4 item5
is there clever way "subtract" content of file file b, left in file b not contained in (in case item2 , item4)?

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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support