Horje
shell get all lines that are in one file and not another Code Example
bash return lines from one file that arent in another
# Example usage:
awk 'NR==FNR { b[$0] = 1; next } !b[$0]' input_file_1 input_file_2
# This returns all lines of input_file_2 that aren't found in 
# input_file_1

# Note, remove the ! to return all lines in common between the files
shell get all lines that are in one file and not another
 diff file2 file1 | grep '^>' | sed 's/^>\ //'




Shell

Related
sDepends: libgcc-s1 (>= 3.0) but it is not installable Code Example sDepends: libgcc-s1 (>= 3.0) but it is not installable Code Example
wrong domain calling on same hosting ubuntu server Code Example wrong domain calling on same hosting ubuntu server Code Example
hobo list services Code Example hobo list services Code Example
create permanent shortcut command ubuntu Code Example create permanent shortcut command ubuntu Code Example
delete all unstaged files git Code Example delete all unstaged files git Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9