Search Results

Search: Posts Made By: saint2006
1,393
Posted By saint2006
script to iterate
Hi

i need to find x in the following equation such that it satisfies this condition:

y/x-ln(x)-1.24=0

how can i write a script to iterate to give random x to satisfy this equation.
y is...
1,128
Posted By saint2006
Thanks for pointing it out. Indeed its a typo....
Thanks for pointing it out. Indeed its a typo. Its supposed to be Student3! and yes, both the files are sorted by first column.
1,128
Posted By saint2006
search pattern and mark/tag
Hi All,

I have to search for patterns from a pattern file in a file and mark the matching lines.

Input File:

Student1 60 30
Student2 71 91
Student3 88 98

Pattern file:

Student1 Fail...
4,173
Posted By saint2006
Thanks Mirni, how i can do the same for 1000s of...
Thanks Mirni, how i can do the same for 1000s of files.

---------- Post updated at 03:43 PM ---------- Previous update was at 03:39 PM ----------



Thanks vgersh99. the simple code works. but...
4,173
Posted By saint2006
Sum Numbers from different files
Hi All,

I need to print the sum of numbers from different files.

Input files:



file1.out
10
20
30

file2.out
10
20
30
2,862
Posted By saint2006
AWK print lines into multiple files
Hi,

i have an input text file like this:



Student 1
maths
science
=
Student 2
maths
science
=
Student 3
maths
science


i would like to print each student information into...
1,563
Posted By saint2006
Thanks!
Thanks!
3,338
Posted By saint2006
Cool, Thanks!
Cool, Thanks!
3,338
Posted By saint2006
Perfectly works! Thanks a lot Yinyuemi! ...
Perfectly works! Thanks a lot Yinyuemi!

---------- Post updated at 05:59 PM ---------- Previous update was at 05:56 PM ----------

And one more little help! Can you also tell me how can i print...
3,338
Posted By saint2006
Hi Yinyuemi, As i had mentioned before, if i...
Hi Yinyuemi,

As i had mentioned before, if i omit the 9 in the input file, which i may have to do at time, then the output is printed like this:

1
2
3
44
45
46
--
79
80
81

But...
1,563
Posted By saint2006
Hi 47Shailesh and Yinyuemi, Thanks for your...
Hi 47Shailesh and Yinyuemi,

Thanks for your help. But still i am not able to get the desired output. It doesn't matter even if the output is not numbered.

20-30
40-50
60-70
1,563
Posted By saint2006
Awk selective printing
Hi,

i need help to print number from different field


INPUT:

Student1 10 20
Student2 30 40
Student3 50 60
Student4 70 80

Desired Output:
1 20-30
2 40-50
3 60-70


Thank you!
3,338
Posted By saint2006
Dear Guru, The script works but not...
Dear Guru,

The script works but not completely, especially when if two different sets of consecutive numbers occur next to each other. For example, if i omit number '9' in this Input, then...
3,338
Posted By saint2006
Awk Print Only Continous Numbers
Hi,

i need help to print only those numbers which occur next to each other from a file.

Input:

1
2
3
9
44
45
46
77
79
80
81

Desired Output:
7,599
Posted By saint2006
Awk/Sed: Search Pattern from file and Print
Hi,

I want to search for patterns (from a file) in a file and print the line matching the patterns and the line before it.

I have to search for 100s of patterns from a file.

Any help with...
3,538
Posted By saint2006
Cool!
Cool!
3,538
Posted By saint2006
Thank you so much. This code really helps!
Thank you so much. This code really helps!
3,538
Posted By saint2006
Awk to count occurences
Hi,

i am in need of an awk script to accomplish the following:

Input table looks like:

Student1 arts
Student2 science
Student3 arts
Student4 science
Student5 science
Student6 science...
1,906
Posted By saint2006
Thanks, it works!
Thanks, it works!
1,906
Posted By saint2006
Script to subtract rows HELP
Dear All,

Please help with a script which can accomplish the following:

Input table:

$1 $2 $3

Student1 1 50
Student2 56 75
Student3 77 100

Desired...
1,422
Posted By saint2006
Awk printing help
Hallo,

i have a file which looks like this:

$1 $2 $3
Student1 55 Pass
55 Pass
35 Fail
Student2 55 ...
1,652
Posted By saint2006
i want sum (a+c+e) = ace sum (b+d+f) =...
i want

sum (a+c+e) = ace
sum (b+d+f) = bdf

and

a/ace, c/ace, e/ace
b/bdf, d/bdf, f/bdf

sorry for not being clear. hope it is clear now.
1,652
Posted By saint2006
Print sum and relative value of the sum
Hi

i data looks like this:

student 1
Subject1 45 55
Subject2 44 55
Subject3 33 44
//
student 2
Subject1 45 55
Subject2 44 55
Subject3 33 44

i would like to sum $2, $3 ...
6,268
Posted By saint2006
Thanks everyone for the timely help.
Thanks everyone for the timely help.
6,268
Posted By saint2006
Many thanks for the help. The target...
Many thanks for the help.

The target directories are named dir1, dir2,....
Showing results 1 to 25 of 41

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