Horje
bash compare two files Code Example
comparing file content bash
if diff -u "$file1" "$file2"; then
  echo "$file1 and $file2 have identical contents"
else
  : # the differences between the files have been listed
fi
bash compare two files
# this will print if they're identical or not
diff file1 file2 -s
how compare 2 file size in bash
I=`wc -c $i | cut -d' ' -f1`
J=`wc -c $j | cut -d' ' -f1`
if [ $I -eq $J ]
then
      echo $i $j >> $1.pares
fi




Shell

Related
mount drive raspi Code Example mount drive raspi Code Example
service redis restart Code Example service redis restart Code Example
access wsl files from windows Code Example access wsl files from windows Code Example
git stash apply specific stash Code Example git stash apply specific stash Code Example
brew on windows Code Example brew on windows Code Example

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