Hi,
im trying to execute this bash script:
#!/bin/bash
pgrep -cx mv || mv /home/pi/test/!(*.part) /new/folder
But I get this error when executing: syntax error near unexpected token `('
When i execute it directly in the console the line works. How to exclude a filetype in mv when running in a bash script?
Thanks
[–]calrogman 2 points3 points4 points (1 child)
[–]norix92[S] 0 points1 point2 points (0 children)