R
R
Roman Bolshukhin2021-01-14 12:10:01
linux
Roman Bolshukhin, 2021-01-14 12:10:01

Linux script error. Why?

Good afternoon. 2 questions. 1. Why the error? 2. How to make a curl request occur when mv f is executed? Thanks

#!/bin/bash
#239
find . -name '*72762*' -exec sh -c 'x="{}"; mv "$x" "239.pdf"' \;

Error:
find: missing argument to '-exec'

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AVKor, 2021-01-14
@skyspirit

My assumption above in the comment turned out to be correct. Do this:
dos2unix billing.sh

V
Victor Taran, 2021-01-14
@shambler81

$(curl ....)
Better yet, write what you wanted to do, but somehow it all looks crooked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question