Skip to main content
Bash

Bash

System softwareWikipedia

Search complete. 96 mentions across 48 episodes found for "Bash".

Nov 23, 2026

Guillaume LaforgeGUEST
7:11
OK, so there are three main use cases for using Groovy.
Guillaume LaforgeGUEST
7:17
You can use it just like a shell scripting language, like you would use Bash or Python or Ruby.
Guillaume LaforgeGUEST
7:25
So you can test stuff interactively in a console.
Guillaume LaforgeGUEST
7:30
I've written a little module, which is quite fun, where you are driving Office applications from Groovy.
Jeff MassieHOST
81:03
Where the here string comes in useful is the read command.
Jeff MassieHOST
81:07
So in Bash, if you typed echo, space, quote, hello world, and then a pipe, read, space A, space B, space, then echo, dollar sign A, you get nothing.
Jeff MassieHOST
81:22
Bash runs each part of the pipeline in a subshell, in a throwaway copy of the shell, so that read is set your variable in a copy that vanished when the line ended.
Jeff MassieHOST
81:33
Now if you type read space A space B three less than signs hello world, there's no pipe and no subshell.
Jeff MassieHOST
81:41
So dollar sign A is hello and dollar sign B is world.
Jeff MassieHOST
81:03
Where the here string comes in useful is the read command.
Jeff MassieHOST
81:07
So in Bash, if you typed echo, space, quote, hello world, and then a pipe, read, space A, space B, space, then echo, dollar sign A, you get nothing.
Jeff MassieHOST
81:22
Bash runs each part of the pipeline in a subshell, in a throwaway copy of the shell, so that read is set your variable in a copy that vanished when the line ended.
Jeff MassieHOST
81:33
Now if you type read space A space B three less than signs hello world, there's no pipe and no subshell.
Jeff MassieHOST
81:41
So dollar sign A is hello and dollar sign B is world.
Ken GuytonGUEST
3:08
So if you're the parent, the return value will be greater than zero and it will actually be the value that's the period of the child process if you're the child the value will be zero and if there was an error of some kind then it will actually be less than one which again is is true for most system calls so now you can tell in the code whether you're the parent or the child so now the parent can do parently things and the child can do childish things and whatever makes sense at the time So let's look at an example of how this might work.
Ken GuytonGUEST
3:42
And just out of curiosity, where do you think that, or what program do you think is the parent of most processes that are created on a system? It's probably Bash on most systems, since a lot of times it's either processes are created by running something from the command line or they're created by a shell script when a system is starting up there may be exceptions to this there I guess on some systems you might have a demon that's creating a lot of the processes And if you have a desktop system, maybe it's the window manager, or if you're clicking on menus and things to start things off, then it might be those.
Ken GuytonGUEST
4:23
But most of the time, it's probably Bash.
Ken GuytonGUEST
4:25
So we're going to look at an example of Bash and how that works.
Ken GuytonGUEST
4:27
And specifically, we'll look at what happens when you type this command.
Ken GuytonGUEST
4:30
You type ls and pipe the output into WC.
Ken GuytonGUEST
7:09
And now we have another child.
Ken GuytonGUEST
7:11
We have three processes sharing these open files.
Ken GuytonGUEST
48:01
up? Oh, so you've just got a bunch of suspended programs out there? Well, if you're in the shell, you can use the FG command.
Ken GuytonGUEST
48:11
If you're in Bash or, well, it would only work in Bash or KShell or something that has job control like that.
Ken GuytonGUEST
48:17
I can't remember if CShell has it or not now.
Ken GuytonGUEST
48:19
But, yeah, you can use the FG command to bring those programs back to the foreground and just kill them some normal way.
Ken GuytonGUEST
50:59
Send a hang-up command.
Ken GuytonGUEST
51:01
I also didn't say that if you're in the background, you can also do a kill.
Ken GuytonGUEST
51:06
I think in Bash, a kill percent will kill maybe all the suspended jobs or...
Ken GuytonGUEST
51:14
I think that'll kill all of them.
Jeff MassieHOST
84:56
Where the here string comes in useful is the read command.
Jeff MassieHOST
84:59
So in Bash, if you typed echo, space, quote, hello world, and then a pipe, read, space A, space B, space, then echo, dollar sign A, you get nothing.
Jeff MassieHOST
85:14
Bash runs each part of the pipeline in a subshell, in a throwaway copy of the shell, so that read is set your variable in a copy that vanished when the line ended.
Jeff MassieHOST
85:26
Now if you type read space A space B three less than signs hello world, there's no pipe and no subshell, so dollar sign A is hello and dollar sign B is world.
Jeff MassieHOST
85:38
Set the field separator to a comma first and you can split a CSV line into named variables in one command.
Jeff MassieHOST
81:03
Where the here string comes in useful is the read command.
Jeff MassieHOST
81:07
So in Bash, if you typed echo, space, quote, hello world, and then a pipe, read, space A, space B, space, then echo, dollar sign A, you get nothing.
Jeff MassieHOST
81:22
Bash runs each part of the pipeline in a subshell, in a throwaway copy of the shell, so that read is set your variable in a copy that vanished when the line ended.
Jeff MassieHOST
81:33
Now if you type read space A space B three less than signs hello world, there's no pipe and no subshell.
Jeff MassieHOST
81:41
So dollar sign A is hello and dollar sign B is world.
Harrison KinsleyHOST
14:35
So now, coming over to either if you're on Mac or Linux, just open your terminal.
Harrison KinsleyHOST
14:42
If you're on Windows, either download a program called Putty, or I'm using Bash on Ubuntu on Windows.
Harrison KinsleyHOST
14:49
You can go to the App Store, I think, and get it, or you just enable it.
Harrison KinsleyHOST
14:52
I don't even know.

14 MINS LATER

Harrison KinsleyHOST
29:11
So you'll have to wait 10 minutes if you're following along, otherwise you're good to go.
Harrison KinsleyHOST
29:16
So, now here is a fresh...
Harrison KinsleyHOST
29:20
Bash on Ubuntu...
Harrison KinsleyHOST
29:21
Bash on...
Network ChuckHOST
15:53
Whoa.
Network ChuckHOST
15:53
Look at all these hidden things, including Mr. Bash RC right here.
Network ChuckHOST
15:58
I told you he was there.
Network ChuckHOST
15:59
I'm not crazy.
Network ChuckHOST
20:06
And then do a close parentheses and another close parentheses.
Network ChuckHOST
20:09
And then we're going to put our stuff right there in the stinking middle.
Network ChuckHOST
20:12
And with this, we're just telling Bash, hey, get ready for some math, buddy.
Network ChuckHOST
20:15
We're going to add some stuff.
Network ChuckHOST
3:49
Now there are different shells.
Network ChuckHOST
3:50
The one we're using right now is called bash.
Network ChuckHOST
3:52
You probably heard of that, right? Bash or born again shell.
Network ChuckHOST
3:56
It is by far the most common shell you'll see, but real quick, how do you know what shell you're using? Let's find out.
Network ChuckHOST
4:01
New command time.
Network ChuckHOST
7:00
Because you do have godlike power at that point.
Network ChuckHOST
7:02
You gotta be careful.
Network ChuckHOST
7:03
Now I feel like you and Mr. Terminal, Shell, Bash, whatever you wanna call them, are getting along pretty well.

38 more episodes mention Bash.

Create an account to see the whole feed, search across every transcript, and follow the entities you care about.

We value your privacy

We use cookies to understand how you use our platform and to improve your experience. Click “Accept All” to consent, or “Decline non-essential” to opt out of non-essential cookies. Read our Privacy Policy.