Sponsored Content
Top Forums Shell Programming and Scripting Bash 101 - to (do) ; or not to (do) ; ? Post 303022241 by annacreek on Tuesday 28th of August 2018 11:38:37 AM
Old 08-28-2018
Bash 101 - to (do) ; or not to (do) ; ?

I figured this forum needs some laughs , so I am posting this.

And if the answer is - it depends on bash version - do not reply.



This is from "manual"


while CONTROL-COMMAND; do CONSEQUENT-COMMANDS; done

And here is the REAL code - no ";"


Code:
while [ $i -lt 4 ] do xterm & i=$[$i+1] done

 

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Daemon 101

I think I have an issue almost like Sammy_T's. I want to make a piece of code run as a daemon. I have some java, along with it 15 classpath's converted to a shell script that I can "runmyjavap". The script is just what I need to run after compiling it: #!/bin/sh java -classpath : ...(from... (3 Replies)
Discussion started by: Miller_K
3 Replies

2. UNIX for Dummies Questions & Answers

Help Me please scripting 101

Hi, I had to pull a handful of account numbers from a file into a table. Now I want to do a basic list from a directory in my program showing me if any files for these customers exist. There are files associated with each client and need to be processed individually. $Paytos = 00153301 00153302... (5 Replies)
Discussion started by: ski
5 Replies

3. Shell Programming and Scripting

Bash 101 - string assigment

I am embarrassed to ask this but I am at the end of my rope. I am trying to assign one (string) variable to another. I do understand that bash variables are "not typed", but still learning usage of {} and spaces in script. I was hoping this syntax would work $variableA =... (6 Replies)
Discussion started by: annacreek
6 Replies
set_color(1)							       fish							      set_color(1)

NAME
set_color - set_color - set the terminal color set_color - set the terminal color Synopsis set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR] Description Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple, cyan, white and normal. o -b, --background Set the background color o -c, --print-colors Prints a list of all valid color names o -h, --help Display help message and exit o -o, --bold Set bold or extra bright mode o -u, --underline Set underlined mode o -v, --version Display version and exit Calling set_color normal will set the terminal color to whatever is the default color of the terminal. Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey font color, while set_color --bold white will result in a white font color. Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator. set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of ncurses and recompile fish against it in order to fix this issue. Version 1.23.1 Sun Jan 8 2012 set_color(1)
All times are GMT -4. The time now is 06:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy