Sponsored Content
Full Discussion: if statements
Top Forums UNIX for Dummies Questions & Answers if statements Post 1653 by lilas on Thursday 22nd of March 2001 08:27:03 AM
Old 03-22-2001
Network

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 greater then 40
then change field 3 to pass
else change field 3 to fail
endif

but i am failing badly can any please help
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Please help on IF statements.

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)
Discussion started by: filthymonk
4 Replies

2. UNIX for Advanced & Expert Users

if statements

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)
Discussion started by: pwanda
4 Replies

3. Shell Programming and Scripting

HELP!! if statements

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)
Discussion started by: trob
1 Replies

4. UNIX for Dummies Questions & Answers

Help with For Statements

Hi, I am trying to write a for statement that will allow for the ps, who, finger, and date commands to run. Can anyone help? I use Putty. (22 Replies)
Discussion started by: lexydoll87
22 Replies

5. Shell Programming and Scripting

If statements....

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)
Discussion started by: bigben1220
3 Replies

6. Shell Programming and Scripting

Help with IF statements

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)
Discussion started by: zero3ree
1 Replies

7. Shell Programming and Scripting

vi and if statements

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)
Discussion started by: Reddoug
8 Replies

8. Shell Programming and Scripting

Using While and If statements

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)
Discussion started by: jjb1989
2 Replies

9. Homework & Coursework Questions

Using While and If statements

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

10. UNIX for Dummies Questions & Answers

if and then statements

I came across a bash script that outputs the forecast for the day and the max temperature but at the end of the day the max temperature disappears ($6) and I am left with "°C" after the forecast. Here is the script: #! /bin/bash curl -s --connect-timeout 30... (7 Replies)
Discussion started by: _light_
7 Replies
tkaegis(1)																tkaegis(1)

NAME
tkaegis - GUI interface for Aegis, using TCL/TK SYNOPSIS
tkaegis DESCRIPTION
The tkaegis command is used to provide a GUI interface to Aegis. Its use should be self-evident to anyone familiar with Aegis. There are some areas where tkaegis is still missing functionality; these are primarily related to project and change attributes that are not yet included in the dialogs, and also issues such as configuring the change and history tools, the architectures, and so on. INSTALLATION
First, you will need Tcl/Tk installed, and will need to modify the path in the first line of tkaegis to reflect the path of your Tk wish interpreter. Hopefully, the ./configure script took care of this. Next, you may need to modify some important variables that occur immediately below these comments, to specify the architecture, project base directory, and the editor you are using (if you leave that blank, tkaegis will try to determine the editor to use from the EDITOR environment variable; if that fails, it will fall back to emacs or vi). NAVIGATION
When you run tkaegis, a window will appear with a menu at the top. The window is used to display the output of aegis commands and some other feedback. The menu will initially have only two items, Project and Help. At this stage the Help menu only has an About dialog box. The Project menu will allow you to create new projects, select from your existing projects, clear the contents of the feedback window, or exit the program. If you create a new project, a dialog box will appear allowing you to enter the project name, directory, and initial branch number. When you press OK the project will be created and should then appear in the Project menu. If you select an existing project, a new option will be added to the Project menu, allowing you to delete the project. A Branch menu will also appear. This is similar to the Project menu, but allows you to create, delete, or select project branches. If you select a branch in the branch menu, a Role menu will appear. This will allow you to choose the role that you will be playing, namely one of administrator, developer, reviewer, or integrator. tkaegis uses your UNIX login name and the names of the roleplayers asso- ciated with the project and branch, to determine which of the roles it will allow you to choose. If you create a new project, only the administrator role will appear. Selecting a role will put you in a `mode', which will determine what other menus appear and what you can do next. Each mode will now be described in turn, by giving a brief description of the role-specific menu hierarchy. Following the name of each menu item is the corre- sponding aegis command, where applicable. ADMINISTRATOR MODE
In this mode, you can modify the staff and roles associated with the branch, and create, remove, and change the attributes of change requests, and view all the change requests. Admin: Edit Branch Attributes (aepa) - Change the attributes for the branch Staff: Administrators: Add (aena) - Add an administrator for the branch View (ael a) - View the administrators for the branch Remove (aera) - Remove an administrator for the branch Developers: Add (aend) - Add a developer for the branch View (ael d) - View the developers for the branch Remove (aerd) - Remove a developer for the branch Reviewers: Add (aenrv) - Add a reviewer for the branch View (ael r) - View the reviewers for the branch Remove (aerrv) - Remove a reviewer for the branch Integrators: Add (aeni) - Add an integrator for the branch View (ael i) - View the integrators for the branch Remove (aeri) - Remove an integrator for the branch Change: Add New Change (aenc) - Add a new change request New Change Undo (aencu) - Undo the addition of a change request Edit Change Attributes (aeca) - Modify the attributes of a change request View Changes (ael c) - View the set of changes DEVELOPER MODE
This mode is used by developers. When entering this mode, the Develop menu will appear, but no others. A change must be selected after which the other menus will appear. If there is only one change awaiting development, this will be auto-selected. Develop: View Changes (ael c) - View all the change requests Begin Change (aedb) - Start work on a new change Continue Change - Continue work on a change in development View Differences (aediff) - Show all the diffs for this change Abort Change (aedbu) - Abort working on the change End Change (aede) - (Attempt to) end working on the change Resume Change (aedeu) - Resume work on a change awaiting review File: Edit Files - Allow files to be loaded into an editor Add New File (aenf) - Add a new file to the project Discard New File (aenfu) - Discard a newly added file Remove Existing File (aerm) - Discard a previously existing file Restore Existing File (aermu) - Undo discard of a previously existing file Change Existing File (aecp) - Allow an existing file to be edited Undo Changes to Existing File (aecpu) - Lose changes to an existing file Build: Build Project (aeb) - Attempt to build the project Test: Add New Test Script (aent) - Add a new test script to the project Discard New Test Script (aentu) - Remove a new test script Run New Tests (aet) - Run the new tests Run Regression Tests (aet -reg) - Run the old tests Run Baseline Test (aet -bl) - Run the baseline test REVIEWER MODE
In this mode you are able to review changes. Review: View Changes (ael c) - View all the changes Begin Review (aerb) - Start reviewing a change Abort Review (aerbu) - Abort reviewing a change Pass (aerpass) - Pass a change review Fail (aerfail) - Fail a change review Undo Pass (aerpu) - Undo a previously passed review INTEGRATOR MODE
In this mode you can perform integration activities. Integrate: View Changes (ael c) - View all the changes Start Integration (aeib) - Start integrating a change Resume Integration - Resume an integration in progress Cancel Integration (aeibu) - Cancel an integration View Differences (aediff) - Show the file differences for the change Build (aeb) - Build the project New Tests (aet) - Run the new tests Baseline Test (aet -bl) - Run the baseline test Regression Test (aet -reg) - Run the regression tests Pass (aeipass) - Pass the integration Fail (aeifail) - Fail the integration SEE ALSO
tkaeca(1) GUI interface for the aeca(1) command. tkaenc(1) GUI interface for the aenc(1) command. tkaepa(1) GUI interface for the aepa(1) command. COPYRIGHT
tkaegis version 4.24.3 Copyright (C) 1995, 1999 Graham Wheeler AUTHOR
Graham Wheeler <gram@cdsec.com> Citadel Data Security Reference Manual Aegis tkaegis(1)
All times are GMT -4. The time now is 09:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy