0
#!/bin/bash

directory= /Users/sakshamgupta/Downloads/Automation-TCN/Data
for var in $(find $directory -type f -name "*.ipynb")
do
    echo "${var:2}"
done

I am trying to read all ipynb files in a directory and subdirectory. The script gives the error below

./convert-ipynb-py.bash: line 3: /Users/sakshamgupta/Downloads/Automation-TCN/Data: is a directory
find: illegal option -- t
Cyrus
  • 84,225
  • 14
  • 89
  • 153

0 Answers0