I am trying to change this :
Albert Einstein 52
Peter Scott 22
Hilary Smith 48
Joan Bakewell 30
Catherine Maguire 26
into
Albert Einstein Pass
Peter Scott Fail
Hilary Smith Pass
Joan Bakewell Fail
Catherine Maguire Fail
I have to use a if statement that says:
if field 3 is... (2 Replies)
I had different problem scenarios with IF statement. Can any expert please enlighten me on the difference with these scenarios. Thank you.
1st Scenario:
testdate=`date +%Y%m`
test=`cat /var/log/database0.$testdate*.log | grep "Errors found during processing" | tail -10`
if
then
... (4 Replies)
This is for a program I have to do to calculate the day of the week.
I need to write an if statement that will do the following:
if day is 29 and year is odd, don't calculate dayif ( day == 29 && year == ??? )I know how to do it for the day but I don't know how to do it for the year. (4 Replies)
I am kind of new in Unix and i have to make a menu. I want to put an if statement in the menu. you should enter the filename and it goes to that file. How do i do this? (1 Reply)
Good morning all!
I want to know if Im interpreting this if statement below right.
if(((1) || (0)) && (1)){
do stuff;
}
This is saying: if true piped into false, then true, then do stuff. Right?
What does the && stand for?
thanks in advance!
ben (3 Replies)
I am writing a script that does a search for a argument in a file and lists all like occurrences. The script verifies that it is a file and then runs another script that list the lines. My problem is that I need the script to accept a file or a directory and then go to that directory check all... (1 Reply)
Hi
I am very new to Unix programming and shell scripting. I am trying t figure out how to write a little script that will output the number of directories. I can find the number of directories using ls -l | grep "^d" | wc -l I can not figure out how to do it so when I type the name... (8 Replies)
Hi guys,
Two problems I need solving please. I created a script where the user types in 7 numbers as standard input and each one is then stored in an array. Now I need to perform the following calculations on those numbers:
1) Use a while loop to determine the largest number in the range.
... (2 Replies)
1. The problem statement, all variables and given/known data:
Two problems I need solving please. I created a script where the user types in 7 numbers as standard input and each one is then stored in an array. Now I need to perform the following calculations on those numbers:
1) Use a while... (11 Replies)
Discussion started by: jjb1989
11 Replies
LEARN ABOUT DEBIAN
redshift
REDSHIFT(1) User Commands REDSHIFT(1)NAME
redshift - Set color temperature of display according to time of day.
SYNOPSIS
redshift
-l LAT:LON -t DAY:NIGHT [OPTIONS...]
DESCRIPTION
redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working
in front of the screen at night.
The color temperature is set according to the position of the sun. A different color temperature is set during night and daytime. During
twilight and early morning, the color temperature transitions smoothly from night to daytime temperature to allow your eyes to slowly
adapt.
OPTIONS -h Display this help message
-v Verbose output
-V Show program version
-b N Screen brightness to apply (max is 1.0)
-c FILE
Load settings from specified configuration file
-g R:G:B
Additional gamma correction to apply
-l LAT:LON
Your current location
-l PROVIDER
Select provider for automatic location updates (Type `list' to see available providers)
-m METHOD
Method to use to set color temperature (Type `list' to see available methods)
-o One shot mode (do not continuously adjust color temperature)
-O TEMP
One shot manual mode (set color temperature)
-x Reset mode (remove adjustment from screen)
-r Disable temperature transitions
-t DAY:NIGHT
Color temperature to set at daytime/night
The neutral temperature is 6500K. Using this value will not change the color temperature of the display. Setting the color temperature to a
value higher than this results in more blue light, and setting a lower value will result in more red light.
Default values:
Daytime temperature: 5500K Night temperature: 3700K
Please report bugs to <https://bugs.launchpad.net/redshift>
SEE ALSO
The full documentation for redshift is maintained as a Texinfo manual. If the info and redshift programs are properly installed at your
site, the command
info redshift
should give you access to the complete manual.
AUTHOR
redshift was written by Martin Koelewijn and Jon Lund Steffensen.
This manual page was created by Franziska Lichtblau <rhalina@old-forest.org> for the Debian project (and may be used by others).
redshift 1.7 June 2012 REDSHIFT(1)