Page 1 of 1
how to obtain the number of pages of an sdds file with one command
Posted: 30 Mar 2017, 04:33
by duanz
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
Re: how to obtain the number of pages of an sdds file with one command
Posted: 30 Mar 2017, 08:33
by michael_borland
Zhe,
Just use
Code: Select all
sdds2stream -npages=bare <filename>
--Michael
Re: how to obtain the number of pages of an sdds file with one command
Posted: 30 Mar 2017, 08:55
by duanz
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
Re: how to obtain the number of pages of an sdds file with one command
Posted: 30 Mar 2017, 09:05
by michael_borland
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
Re: how to obtain the number of pages of an sdds file with one command
Posted: 30 Mar 2017, 09:20
by duanz
Michael,
I see, it's really good to know. Thank you again~~
Cheers,
Zhe