fdupes_oneline.sh 210 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh

# Emulates fdupes -1 output
# Usage: jdupes command line | ./fdupes_oneline.sh

while read LINE
  do if [ -z "$LINE" ]
    then echo
    else echo -n "$LINE" | sed 's/ /\\ /g'; echo -n " "
  fi
done