how to obtain the number of pages of an sdds file with one command

Moderators: cyao, michael_borland

Post Reply
duanz
Posts: 50
Joined: 30 May 2009, 01:50

how to obtain the number of pages of an sdds file with one command

Post by duanz » 30 Mar 2017, 04:33

Hi,
I wonder if sddsprintout or sdds2stream can obtain the number of pages of an sdds file, or is there alternative command that can be used in a bash script.

Thanks!


Zhe

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: how to obtain the number of pages of an sdds file with one command

Post by michael_borland » 30 Mar 2017, 08:33

Zhe,

Just use

Code: Select all

sdds2stream -npages=bare <filename>
--Michael

duanz
Posts: 50
Joined: 30 May 2009, 01:50

Re: how to obtain the number of pages of an sdds file with one command

Post by duanz » 30 Mar 2017, 08:55

Thank you Michael! It would be helpful for other users as well, if you could add this usage to the online version of SDDS Toolkits user guide.

Cheers,

Zhe

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: how to obtain the number of pages of an sdds file with one command

Post by michael_borland » 30 Mar 2017, 09:05

Zhe,

Sure, we'll add it. Note that for all SDDS commands, the latest usage can always be obtained by typing the command with no arguments.

--Michael

duanz
Posts: 50
Joined: 30 May 2009, 01:50

Re: how to obtain the number of pages of an sdds file with one command

Post by duanz » 30 Mar 2017, 09:20

Michael,

I see, it's really good to know. Thank you again~~

Cheers,

Zhe

Post Reply