Sponsored Content
Full Discussion: Using color in scripts
Operating Systems Linux Ubuntu Using color in scripts Post 303033798 by drew77 on Thursday 11th of April 2019 05:47:01 PM
Old 04-11-2019
I renamed it back to orig name.

Code:
my-hilite.sh

-----
 Results, file missing:
/home/andy/bin/my-hilite.sh: line 24: my-hilite: command not found

-----
 Results, file present:
/home/andy/bin/my-hilite.sh: line 32: my-hilite: command not found

-----
 Results, if only string "File" should be colored:
/home/andy/bin/my-hilite.sh: line 40: my-hilite: command not found

The scripts is relying on my-hilite which does not exist.

Code:
else
  echo "File $FILE does NOT exist." |
  my-hilite -f red

 

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to change the background color in the init 3 mode(not line color)

Hello, I am using RHEL 6.1 on VMware I am searching for a way to change background color (not line by line color wich one can using tput command) basically changing the color of the whole screen to white instead of the default black and changing font color to black and alos would like to... (2 Replies)
Discussion started by: Dexobox
2 Replies

2. UNIX for Beginners Questions & Answers

Text color in Linux scripts via putty

hi Folks, Can anyone help with changing the color of the words in a linux shell script? I get how to change default background etc in putty, but for some reason the text in the script has different colors for different parts of the cript. Is there a way to have one color in a linux shell... (5 Replies)
Discussion started by: jonnyd
5 Replies
ubuntu-upload-permission(1)				      General Commands Manual				       ubuntu-upload-permission(1)

NAME
ubuntu-upload-permission - Query upload rights and (optionally) list the people and teams with upload rights for a package SYNOPSIS
ubuntu-upload-permission [options] package DESCRIPTION
ubuntu-upload-permission checks if the user has upload permissions for package. If the --list-uploaders option is provided, all the people and teams that do have upload rights for package will be listed. OPTIONS
-r RELEASE, --release=RELEASE Query permissions in RELEASE. Default: current development release. -a, --list-uploaders List all the people and teams who have upload rights for package. -t, --list-team-members List all the members of every team with rights. (Implies --list-uploaders) -h, --help Display a help message and exit EXIT STATUS
0 You have the necessary upload rights. 1 You don't have the necessary upload rights. 2 There was an error. AUTHORS
ubuntu-upload-permission and this manpage were written by Stefano Rivera <stefanor@ubuntu.com>. Both are released under the terms of the ISC License. ubuntu-dev-tools November 2011 ubuntu-upload-permission(1)
All times are GMT -4. The time now is 07:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy