Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Aleph

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Aleph
    3. Knowledge Articles
    4. Making a global replace on bibliographic file

    Making a global replace on bibliographic file

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Additional Information
    • Article Type: General
    • Product: Aleph
    • Product Version: 18.01

    Description:
    I have an output file of bibliographic records, and I want to change all cases of
    [offprint]
    to
    $$g(offprint)
    How can I?
    for example
    ABC 0000475 1001 L $$aByrd, Keith E. [offprint]
    to
    ABC 0000475 1001 L $$aByrd, Keith E. $$g(offprint)

    Resolution:
    You may do as follows, where the file is called "filename":
    perl -pi.bck -e 's/\[offprint\]/\$\$g(offprint)/g' filename
    It will make the change and also save a copy of the oprinal file with suffix bck. See below:
    ABC-M330>>more filename
    ABC 0000475 1001 L $$aByrd, Keith E. [offprint]
    ABC-M330>>perl -pi.bck -e 's/\[offprint\]/\$\$g(offprint)/g' filename
    ABC-M330>>ls -lrt filename*
    -rw-rw-r-- 1 m325 aleph 49 Jul 21 10:05 filename.bck
    -rw-rw-r-- 1 m325 aleph 52 Jul 21 10:06 filename
    ABC-M330>>diff filename filename.bck
    1c1
    < ABC 0000475 1001 L $$aByrd, Keith E. $$g(offprint)
    ---
    > ABC 0000475 1001 L $$aByrd, Keith E. [offprint]

    Additional Information

    Version 16 global changes on bibliographic file


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Making a Cataloging message red -- so it can not be overridden
      • Making Apache/Web OPAC listen to BOTH port 8991 AND 80
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 18.01
      2. contype:kba
      3. Prod:Aleph
      4. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved