Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 
Table of contents Previous: String Tables - Restoring String Tables Next: String Tables - Incrementing Values in a String

10.5 String Tables - Deleting Strings and String Tables

In this exercise, you will list strings in the string table, delete them, then delete the entire string table.

  1. List the strings in the string table that begin with the letter N.

    Type: TL N

    The string NOTE is listed.

  2. Delete the string called NOTE.

    Type: TD NOTE

  3. List the strings in the string table to see if NOTE was deleted.

    Type: TL OUT

    Also note that the global string ?CROSS is listed. You will delete ?CROSS in the next step.

  4. Delete all the strings that begin with a question mark (?). This will delete all of your global strings.

    Type: TD PREFIX ?

  5. List the strings in the string table again to verify that the global strings were deleted.

    Type: TL OUT

  6. Delete all the strings that begin with the letter T.

    Type: TD PREFIX T

  7. List the strings in the string table again.

    Type: TL OUT

    Your string table should contain seven strings: two system strings, H and Y, and the user-defined strings CT, KEYF4, STATE, STATION and WORLDMAP.

  8. Delete all the strings in the string table, then list the strings to verify they were deleted.

    Type: TD ALL;TL OUT

  9. List the string tables on your workstation.

    Type: TU LIST

  10. Restore the user-defined string table LEARN.

    Type: TU REST LEARN

  11. List the strings. You will see the strings from the user-defined string table LEARN have been restored.

    Type: TL OUT

  12. Delete the string table called LEARN.

    Type: TU DEL LEARN

  13. Verify that the user-defined string table LEARN was deleted, and see that the strings in the string table remain.

    Type: TU LIST;TL OUT


Table of contents Previous: String Tables - Restoring String Tables Next: String Tables - Incrementing Values in a String

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690