I hav problem with my Script.
I use FreeBSD and SSH to start this script:
grep -rl ‘=Array.prototype.slice.call(arguments).join(“”),’ . | while read FILENAME; do sed -i -e ‘$d’ $FILENAME; echo “$FILENAME”; done
When i start, the SSH get error:
while: Expression Syntax.
Please help me!!
PS: Sorry for my English i from Ukraine.
You are using
csh, right? Try it inbash, the syntax you posted works for me on FreeBSD inbashandsh.shis part of the base system, but you can installbashe.g. withpkg_add -r bash.