925-456-1020 info@acornnmr.com

Searching files

Searching files

NUTS Help

Searching data files

HeaderSearch (or equivalently, hdrsearch) is a new non-2-letter command that allows searching all NUTS files in a designated directory for a specified value for one of the parameters in the file header.

The command syntax is:

hdrsearch keyword value

where keyword is any of the keywords in the NUTS header (type 3 files only).

A file-open dialog box is displayed, allowing the user to select which directory should be searched.  Select any file in that directory.  The search results are saved as a text file called uid_scan.txt in the default Windows temp directory.  When the search is complete, the search results are displayed using Notepad.

For example, to search for all files containing the word benzene in the title field,

hdrsearch ##TITLE benzene

The search is a sub-string search, so all files containing the word benzene in the title field will be listed.

UID – Unique Identifier

A new parameter has been created which can be used to identify individual data sets, or to group related data files together by assigning them all the same UID.  The UID is displayed on the Acquisition Parameters screen.  The identifier can be any text string.  A selected directory can be searched for a specified UID.

The UID is stored when a file is saved (type 3 header only) and is recalled when a file is read, if it exists in the header.  The UID can be entered from the Acquisition Parameters screen or from the command line (in non-2-letter command mode), as shown here:

uid string

To search for all files with sub-string matched to "SearchUID" (non-2-letter command):

uid -s SearchUID

and select any file in the desired search directory.  The search results are saved as a text file called uid_scan.txt in the default Windows temp directory.  When the search is complete, the search results are displayed using Notepad.

passwd – Password

Associated with the UID is the non-2-letter command "passwd".   The idea is that the user can choose to restrict editing of  the UID field by requiring a password to change it. If a password has been set, changing the UID requires the password to be input.  The passwd command allows a password to be defined.  

Examples of usage: 

passwd <new password> <old password, if password currently exists>

if no password has been defined, or if UID does not now exist, the UID can be set regardless of password:
uid <UID>

if UID exists and password is set
uid <NEW_UID> <root passwd>

 


Last updated: 9/2/01