Dumb Bash question - Are there commands that can allow access files out side the shell?

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Post Reply
User avatar
chazb
Level 5
Level 5
Posts: 713
Joined: Wed Nov 30, 2016 2:56 am
Location: Oklahoma

Dumb Bash question - Are there commands that can allow access files out side the shell?

Post by chazb »

I am new to Bash and just learning how to use it. Are there commands that can allow access files out side the shell? Like say a string of numbers or words in a Text Editor file.
Last edited by SMG on Mon Feb 19, 2024 6:49 pm, edited 2 times in total.
Reason: Added question to the title to make the title describe the issue.
1000
Level 6
Level 6
Posts: 1040
Joined: Wed Jul 29, 2020 2:14 am

Re: Dunb Bash question

Post by 1000 »

You have to be precise because I don't know what you mean.
You just use external commands. If you want to use another program / command.
But the possibilities are limited or not very practical sometimes.
For example you can get text from file or text editor
and then you can say with espeak command.
mikeflan
Level 17
Level 17
Posts: 7162
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Dumb Bash question - Are there commands that can allow access files out side the shell?

Post by mikeflan »

Are there commands that can allow access files out side the shell?
In one sense, all commands that access files (cat, split, grep, cut, etc.) access files outside the shell since all files are outside the shell. There are no files inside the shell.

And in another sense xed ~/.bashrc allows you to access the .bashrc file outside the shell.
Post Reply

Return to “Scripts & Bash”