M
M
mirexdoors2019-09-21 19:47:27
bash
mirexdoors, 2019-09-21 19:47:27

How to iterate recursively all files in a folder in a bash script?

Hello! Please help me write a .sh script that will recursively bypass the specified folder and perform an action on the file, something like this:

for f in $filesChanged
  do
   		curl --ftp-create-dirs -T $f -u $FTP_USER:$FTP_PASS ftp://bourbonpursuit.com/$f
  done

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2019-09-21
@mirexdoors

find + xargs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question