NBISweden / sda-cli

User command line interface for the SDA
GNU Affero General Public License v3.0
5 stars 1 forks source link

[list] Remove trailing space from returned dataset id #434

Open aaperis opened 2 months ago

aaperis commented 2 months ago

Let's say I have access to only one dataset with ID dataset007. Then

datasetID=$(./sda-cli list --config s3cmd-gdi.conf -url https://staging-download.gdi.nbis.se -datasets)

and echo A"$datasetID"B will return Adataset007 B.