SOURCE(nged)

Reads an external file and executes its contents.

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… SOURCE (from the nged manual, bestie)

okay so real talk β€” this is the source page from the BRL-CAD MGED Commands manual, and it's genuinely one of the simplest glow-ups in the whole toolset. no cap.


✨ NAME ✨

source β€” reads an external file and executes its contents. that's it. that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

source {example.txt}

πŸ¦‹ DESCRIPTION πŸ¦‹

The source command reads an external file and executes it. literally just run this file for me. πŸ’–

Here's the part where you have to pay attention, bestie: the command looks in the current working directory for the file. so if your file is living somewhere else (rude of it), you've got two options:

  • use the relative or full path to the file, or
  • use the pwd and cd commands to navigate to the file's directory first.

that's the vibe check. if it's not in your cwd and you didn't give a path, it's not gonna find it. 🫢


⭐ EXAMPLES ⭐

πŸ“ Example 1. Read in an external file.

mged>source example.txt

Reads and executes the file example.txt located in the current working directory. iconic. effortless. no path needed. ✨

🧚 Example 2. Read in an external file using the full path to the file.

mged>source C:/cad_work/example.txt

Reads and executes the file example.txt located at C:\cad_work\. see? full path, file found, crisis averted. πŸ’…


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” the main characters, fr fr.


πŸ’€ BUG REPORTS πŸ’€

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. please do actually report them, don't just suffer in silence πŸ™ˆ


and that's the whole page!! shoutout to BRL-CAD for this one, and to you for reading the nged source page all the way through β€” you ate that. πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from