Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash check diff starting at specific line

# Basic syntax:
diff <(head -n <file_1_last_row> <file_1> | tail -n <file_1_rows_b4_last>) <(head -n <file_2_last_row> file2 | tail -n <file_2_rows_b4_last>)
# Where:
#	- head and tail are used to select the rows of file_1 and file_2 that
#		are passed to the diff command (using <() )

# Example usage:
# To compare the 80th to 100th row of file_1 to to 100th to 120 row of file_2:
diff <(head -n 100 file_1 | tail -n 20) <(head -n 120 file_2 | tail -n 20)
Comment

PREVIOUS NEXT
Code Example
Shell :: Package "ngx-mask" has an incompatible peer dependency to "@angular/common" 
Shell :: error install pyjnius in "chaquopy 
Shell :: jq to windows 
Shell :: tensorflow python 3.9 
Shell :: telegram on archlinux 
Shell :: how to check my git username 
Shell :: add i386 architecture ubuntu 
Shell :: ArgumentError: Malformed version number string 0.32+git 
Shell :: how to convert ppk to pem in linux 
Shell :: linux change default editor 
Shell :: how to remove last migration in ef core 
Shell :: npm install line awesome 
Shell :: linux get date yyyymmdd 
Shell :: install node on linux instance 
Shell :: hstr editor 
Shell :: cara uninstall di centos 7 
Shell :: kill all process ubuntu 
Shell :: brew graphviz 
Shell :: how to see pip installed packages 
Shell :: isntall jest cli 
Shell :: docker clean logs 
Shell :: adonis list routes 
Shell :: bash generate random number between 1 10 
Shell :: how to remove nvm 
Shell :: get public ipv6 linux 
Shell :: git remove cached directory 
Shell :: wslinux backup 
Shell :: Do you Need bash to hack 
Shell :: tar.gz terminal 
Shell :: test internet speed command line 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =