[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CL function to script difficulties
From: |
Mike McClain |
Subject: |
CL function to script difficulties |
Date: |
Fri, 19 Apr 2024 15:15:07 -0500 |
This function defined on the command line works as I wish:
dircmp() {
diff <(cd $1; find . -type f,l,d -printf '%p %s %t\n' | sort) \
<(cd $2; find . -type f,l,d -printf '%p %s %t\n' | sort);
}
When I put the same into a script I get this error:
dircmp: 12: Syntax error: "(" unexpected
Hopefully one of you gurus can explain this.
Thanks, Mike
--
A good time to laugh is any time you can.
- Linda Ellerbee
- CL function to script difficulties,
Mike McClain <=