Parcourir la source

Line restriction on the first file

DricomDragon il y a 5 ans
Parent
commit
fd7a732149
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      firstDiff.sh

+ 1 - 1
firstDiff.sh

@@ -1,3 +1,3 @@
 #!/bin/bash
 
-diff $1 $2
+head -n 3 $1 | diff - $2