random scripts I use
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
250B

  1. #!/usr/bin/env fish
  2. while read f l
  3. eval set f $f
  4. eval set l $l
  5. set f (realpath -- "$f")
  6. set l (string trim "$l")
  7. set t (realpath -- "$l")
  8. if test "$f" != "$t"
  9. echo -- "! $l"
  10. echo -- "? $f"
  11. echo -- "= $t"
  12. echo -- "---"
  13. end
  14. end < links