Convert Binary file To JSON or CSV

Hey @Gabriele_Bracciali,

The issue is you have missed the command so you are just sending the filepath which on it’s own won’t do anything and as the file can’t be executed you are hitting a permission issue.

Try changing the command to…

wc -l < /Users/gabrielebracciali/n8ntemp{{ $binary.data.fileName }}
2 Likes

Ah yes, wc -l is what should count the lines here @Gabriele_Bracciali (it’s this command) so we can create batches for the correct number of lines afterwards. Good spot @jon!

Maybe worth using wc -l < /Users/gabrielebracciali/n8ntemp/{{ $binary.data.fileName }} even (so adding one more slash in case n8ntemp is a folder on its own and not just a filename prefix).

Okay done it!

And yes this solution is really perfect, thank you for your help @Jon and @MutedJam, really appreciate it!

2 Likes

Awesome, glad to hear this worked out in the end & thanks for confirming :smiley:

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.