SOURCE(nged)
Reads an external file and executes its contents.
π
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
pwdandcdcommands 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
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms