You don't need a shell script for this; just use the 'id' command look at the uid, which for root is 0.
The root of the word "script" comes from the Latin word "scribere," which means "to write." This Latin root reflects the original meaning of script as something written down.
script
A:to write
It means "write."
script
Words that have the root 'scribe' are:ascribecircumscribedescribeinscribeprescribeproscribesubscribesuperscribetranscribe
Script isn't a prefix, it's a root. It, along with the root scrib, means to write. Some examples are: describe, description, prescribe, prescription, subscribe, subscription, transcribe, transcription.
The root word "script" in "inscription" means to write or to record.
The Latin root word for "transcript" is "transcribere," which means "to copy out" or "to write across."
The word "script" comes from the Latin verb "scribere" meaning "to write."
In a transcript, the term "root script" typically refers to the base or main script that serves as the foundation for the dialogue or conversation being transcribed. It may contain the essential information, dialogue, or key points of the interaction.