BASH PC Software


Welcome, Guest. Please login or register.
Username:   Password:

Hosted in the Cloud RSS

Recent Topics

Gallery Latest


32 Views
0 comment(s)

39 Views
0 comment(s)


146 Views
0 comment(s)

145 Views
0 comment(s)


386 Views
0 comment(s)

354 Views
0 comment(s)

Search The Gallery

User Info

Welcome, Guest. Please login or register.
December 18, 2018, 12:02:38 PM

Login with username, password and session length

Forum
Web
Gallery
Search:         Keywords:

Pages: [1]

BASH

Viewing: 0 Members and 1 Guest       Total Views: 2735

Offline 8pla.net Topic starter
United States WWW Posts: 181
Rank: Apprentice Adept

BASH, the default Linux shell, may be similar to a batch (.bat) file.  They both run from the command line.  
They both are  created using text editors.  They both can launch other computer programs.



Posted March 31, 2018, 03:15:27 AM
Last Edit: March 31, 2018, 03:46:49 AM by 8pla.net
Logged
My Very Enormous Monster Just Stopped Using Nine

Offline 8pla.net Topic starter
United States WWW Posts: 181
Rank: Apprentice Adept

BASH script name: hello.sh

Code:
#!/bin/bash

say_hello_to() {
echo "Hello $1."
echo
}

say_hello_to Dave

say_hello_to Freddy

# ./hello.sh

Hello Dave.

Hello Freddy.

Explanation:   say_hello_to  is the function name.   And the $1 is the first function argument (Dave, Freddy).

Posted March 31, 2018, 03:53:14 AM Logged
My Very Enormous Monster Just Stopped Using Nine

Offline 8pla.net Topic starter
United States WWW Posts: 181
Rank: Apprentice Adept

Let's test embedding an animation from the gallery into a forum post...



Wow! That bbcode works purr-fectly.  

Image Citation: "Preparing for the dog" By Data.

(All set for the next BASH discussion.)
Posted March 31, 2018, 17:15:15 PM Logged
My Very Enormous Monster Just Stopped Using Nine

Offline Data
United Kingdom Administrator
Posts: 5294
Rank: Certified


Wow! That bbcode works purr-fectly.  


I like your thinking 8pla  Wink
Posted April 01, 2018, 10:44:53 AM Logged

Online Carl2
United States Posts: 936
Rank: Baron

I wish my cat would trim her nails
Carl2
Posted April 01, 2018, 17:19:53 PM Logged

Offline 8pla.net Topic starter
United States WWW Posts: 181
Rank: Apprentice Adept

I wrote a BASH script, similar to the BASH sample above. It renders 3D models to animation frames from the command line. So, I plan to use the gallery to embed the animation in the forum, similar to cat animation above That, if there are no objections.  Otherwise, I can use YouTube to host it.

I may wind up using YouTube any way.  Rather than just the animation, the process of BASH rendering animation from the command line may be captured with a screen capture program.  Nice to hear from you, Data.  Funny comment, Carl! Thanks for your interest, anyone else reading.
Posted April 01, 2018, 17:43:51 PM Logged
My Very Enormous Monster Just Stopped Using Nine

Offline 8pla.net Topic starter
United States WWW Posts: 181
Rank: Apprentice Adept

There are many great things to learn in Linux.  I think BASH is a great place to start, if you are new to Linux.  BASH is similar to batch files you may have learned in DOS/Windows.

It is fair to say that BASH is more powerful than batch files in DOS/Windows. Not to put down batch files in any way, because they will always be terrific.  But, for learning purposes,  PowerShell is the fair comparison to make to BASH.

So, if you are a Windows user saying, "That's Linux, I'm not going to use that." Please, go ahead and use the Windows Linux subsystem to test BASH on this discussion thread.

The good news is that making comparisons is no longer necessary. Windows 10 has a Linux subsystem with BASH. So now, Windows users and Linux users have a lot in common.
Posted April 01, 2018, 18:23:15 PM Logged
My Very Enormous Monster Just Stopped Using Nine

Offline 8pla.net Topic starter
United States WWW Posts: 181
Rank: Apprentice Adept



Blender animation via BASH.  Dimensions: 640x360 pixels.   Filesize: 150.8KB.
Posted April 06, 2018, 15:58:20 PM Logged
My Very Enormous Monster Just Stopped Using Nine

Offline Data
United Kingdom Administrator
Posts: 5294
Rank: Certified

I have to admit that this is all new to me but I can say that Blender has rendered that really well via BASH.
Posted April 06, 2018, 18:56:35 PM Logged

Offline 8pla.net Topic starter
United States WWW Posts: 181
Rank: Apprentice Adept

Blender is widely reported to work great in Windows, Linux and Mac.  You get 3D modeling, animating, modifiers, materials, textures, 3D scenes, lights, cameras, character rigs, and much, much more in Blender.


Everyone knows there is quite a learning curve. But, the good news is Blender is FREE.  New 3D animators get high quality for free with Blender.   To get new 3D animators started there are free tutorials to learn Blender.
Posted April 06, 2018, 21:04:21 PM Logged
My Very Enormous Monster Just Stopped Using Nine

Offline Freddy
United Kingdom WWW Administrator
Posts: 3496
Rank: Certified

Combine this with that javascript speech library we had been playing with on Dreams and you are on the way to a nice little chatbot  Cool

I am a Blender fan and I'm already converted - so far I've done all my commercial models in it.  thumbsup

It's a rewarding program once you start to figure it out.
Posted April 06, 2018, 21:06:27 PM Logged
PC Software
Topic Pages: [1]
Jump to:  

Site Activity
Most Online Today: 169
151 Guests, 2 Users
Carl2, DataBot

fast-registration