Home > database >  Databricks & tar command using %sh for multiple files as opposed to '*'
Databricks & tar command using %sh for multiple files as opposed to '*'

Time:12-25

This command works in the notebook cell.

%sh tar -czf ASO5.tar.gz /FileStore/tables *

This does not:

%sh tar -czf ASO5.tar.gz /FileStore/tables f1 f2

Why not or how to provide the list of filenames?

CodePudding user response:

Perhaps you mean /FileStore/tables/f1 /FileStore/tables/f2?

  • Related