… | |
… | |
717 | and modify it or extract data from it. This is done by executing a series |
717 | and modify it or extract data from it. This is done by executing a series |
718 | of "editing instructions" which are explained here. |
718 | of "editing instructions" which are explained here. |
719 | |
719 | |
720 | =over |
720 | =over |
721 | |
721 | |
722 | =item get I<object> I<element> |
722 | =item C<get> I<object> I<element> |
723 | |
723 | |
724 | Reads the BCD element I<element> from the BCD object I<object> and writes |
724 | Reads the BCD element I<element> from the BCD object I<object> and writes |
725 | it to standard output, followed by a newline. The I<object> can be a GUID |
725 | it to standard output, followed by a newline. The I<object> can be a GUID |
726 | or a human-readable alias, or the special string C<{default}>, which will |
726 | or a human-readable alias, or the special string C<{default}>, which will |
727 | refer to the default BCD object. |
727 | refer to the default BCD object. |
728 | |
728 | |
729 | Example: find description of the default BCD object. |
729 | Example: find description of the default BCD object. |
730 | |
730 | |
731 | pbcdedit parse BCD get "{default}" description |
731 | pbcdedit parse BCD get "{default}" description |
732 | |
732 | |
733 | =item set I<object> I<element> I<value> |
733 | =item C<set> I<object> I<element> I<value> |
734 | |
734 | |
735 | Similar to C<get>, but sets the element to the given I<value> instead. |
735 | Similar to C<get>, but sets the element to the given I<value> instead. |
736 | |
736 | |
737 | Example: change the bootmgr default too |
737 | Example: change the bootmgr default too |
738 | C<{b097d2ad-bc00-11e9-8a9a-525400123456}>: |
738 | C<{b097d2ad-bc00-11e9-8a9a-525400123456}>: |
739 | |
739 | |
740 | pbcdedit edit BCD set "{bootmgr}" resumeobject "{b097d2ad-bc00-11e9-8a9a-525400123456}" |
740 | pbcdedit edit BCD set "{bootmgr}" resumeobject "{b097d2ad-bc00-11e9-8a9a-525400123456}" |
741 | |
741 | |
742 | =item eval I<perlcode> |
742 | =item C<eval> I<perlcode> |
743 | |
743 | |
744 | This takes the next argument, interprets it as Perl code and |
744 | This takes the next argument, interprets it as Perl code and |
745 | evaluates it. This allows you to do more complicated modifications or |
745 | evaluates it. This allows you to do more complicated modifications or |
746 | extractions. |
746 | extractions. |
747 | |
747 | |
… | |
… | |
770 | |
770 | |
771 | The example given for C<set> could be expressed like this: |
771 | The example given for C<set> could be expressed like this: |
772 | |
772 | |
773 | pbcdedit edit BCD eval '$BCD->{$DEFAULT}{resumeobject} = "{b097d2ad-bc00-11e9-8a9a-525400123456}"' |
773 | pbcdedit edit BCD eval '$BCD->{$DEFAULT}{resumeobject} = "{b097d2ad-bc00-11e9-8a9a-525400123456}"' |
774 | |
774 | |
775 | =item do I<path> |
775 | =item C<do> I<path> |
776 | |
776 | |
777 | Similar to C<eval>, above, but instead of using the argument as perl code, |
777 | Similar to C<eval>, above, but instead of using the argument as perl code, |
778 | it loads the perl code from the given file and executes it. This makes it |
778 | it loads the perl code from the given file and executes it. This makes it |
779 | easier to write more complicated or larger programs. |
779 | easier to write more complicated or larger programs. |
780 | |
780 | |
781 | =back |
781 | =back |
|
|
782 | |
782 | |
783 | |
783 | =head1 SEE ALSO |
784 | =head1 SEE ALSO |
784 | |
785 | |
785 | For ideas on what you can do, and some introductory material, try |
786 | For ideas on what you can do, and some introductory material, try |
786 | L<http://www.mistyprojects.co.uk/documents/BCDEdit/index.html>. |
787 | L<http://www.mistyprojects.co.uk/documents/BCDEdit/index.html>. |