ASPL Manual v 1.00
© 2024 by SetSphere.COM


11-8

   Group Operations on UNIX Filesystem

[Group Operations on UNIX Filesystem]

WORKSPACE WS1 DESCRIPTION:

This is workspace is used to show how to use ASPL set operators to compare files on your UNIX filesystem. In the tutorial the 'aspl >' refers to the ASPL prompt, and the '#' refers to the shell prompt.

aspl -wsname WS1 -groupingclass POSIX
    (start ASPL by loading WS1 workspace)

①  aspl> v
    (to view the set variables)

②  aspl> v d a1
    (to see the descriptor of the variable 'a1')

③  aspl> ans
    (to see the answer stack enter)

④  aspl> display a1
    (to display the variable 'a1')

⑤  aspl> f& a1 a2
    (to see the intersection of 'a1' and 'a2')

⑥  aspl> f&`mtm~ a1 a2
    (to see the intersection of 'a1' and 'a2' with modification times changed)

⑦  aspl> ans
    (to see the answer stack at any time after a set operation)

⑧  aspl> a12 = f& a1 a2
    (to get the intersection of 'a1' and 'a2' and assign it to the variable 'a12' enter)

⑨  aspl> v
    (to view the variables saved in ASPL at any time)

⑩  aspl> h
    (to view the current history of the commands issued so far)

⑪  aspl> hs
    (to view all the history of the commands issued toward a workspace)

⑫  aspl> save WS1TEST
    (to save the workspace to another workspace named WS1TEST)

Note that ASPL is still using WS1 as the current workspace, you can check that by issuing wid command

⑬  aspl> wid
    (to view which active workspace is currently loaded and used by the ASPL interpreter)

⑭  aspl> wls
    (to list all saved workspaces)

⑮  aspl> quit
    (to quit ASPL without saving any changes to the current workspace)

To load WS1TEST

aspl -wsname WS1TEST -groupingclass POSIX
    (start ASPL by loading WS1TEST workspace)

①  aspl> a123 = fU a1 a2 a3
    (get the set union of a1 a2 a3 and assign it to a123)

②  aspl> wid
    (to view which active workspace is currently loaded and used by the ASPL interpreter)

③  aspl> description
    (to view a description of the current loaded ASPL workspace)

Note that the description is copied from WS1 workspace, and you can change it by editing it using the verb 'describe'

④  aspl> describe
    (to invoke the editor and make changes in the description)

⑤  aspl> bye
    (to leave the ASPL interpreter and commit any changes to the current active workspace)

This example is shown in the following terminal.

       terminal for example: Group Operations on UNIX Filesystem
viewme

 -E- Display. 11.8.1   [GROUP OPERATIONS ON UNIX FILESYSTEM][Group Operations on UNIX Filesystem]
Terminal showing Group Operations on UNIX Filesystem