Search Results

Search: Posts Made By: razrnaga
981
Posted By razrnaga
How do I execute my file so it does one of 2 algorithms? such as ./file SPN??
Hi

I completed a project for school where we had to do cpu scheduling by reading in a file processes.txt and then doing 2 algorithms on it and printing out the order in which processes execute...
6,210
Posted By razrnaga
How do I find the sum of values from two arrays?
Hi

I have redc[] containing the values 3, 6, 2, 8, and 1.

I have work[] containing the values 8, 2, 11, 7, and 9.

Is there a way to find the sum of redc and work?

I need to compare the...
15,348
Posted By razrnaga
Using awk to find sum of an array
Hi

I am really new to awk and using shell script but I am wondering if its possible to find the sum of an array? I looked online but most of the things there are confusing, and when I tried it on...
1,640
Posted By razrnaga
Input file is Age: 14 Grade: 8 Age: 16 ...
Input file is

Age: 14 Grade: 8
Age: 16 Grade: 10
Age: 11 Grade: 6

Its like that. I'm just trying to figure out how to get the Age array sorted from lowest to highest, and same with age.
1,640
Posted By razrnaga
How do I sort two arrays using awk?
Hi

How do I sort two arrays in a ascending order? I'm just doing this to teach myself a book my dad got me on unix.

The arrays are A[i] and B[i] and both are including values taken from a file...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 10:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy