Search Results

Search: Posts Made By: lovelinux
2,093
Posted By lovelinux
first of all Thanks! unfortunately, I still have...
first of all Thanks! unfortunately, I still have zeros at the end.

---------- Post updated at 08:19 AM ---------- Previous update was at 07:08 AM ----------

Here is the working script

awk...
2,093
Posted By lovelinux
It works but I would like to have %8.2f for each...
It works but I would like to have %8.2f for each value. Thanks!

---------- Post updated at 06:17 AM ---------- Previous update was at 05:12 AM ----------



Wonderful its very simple, In case...
2,093
Posted By lovelinux
Convert few columns to rows
Hi!
Does anybody help me in converting following data:

INPUT looks like this:
20. 100.
30 200.
40. 400.
50. 100.
60. 200.
70. 400.
80. 200.
150. 210.
30. 100.
...
1,591
Posted By lovelinux
I agree with you Pamu.
I agree with you Pamu.
1,591
Posted By lovelinux
Try this: cat <filename> | awk '{print $2}'...
Try this:
cat <filename> | awk '{print $2}' for column 2
cat <filename> | awk '{print $1}' for column 1
2,105
Posted By lovelinux
Thanks for the prompt helpful reply. I have...
Thanks for the prompt helpful reply.

I have saved my matrix in a file a.dat and the script file as pm180

#!/bin/bash

cat $1 | awk '{t=$2}$2>180{t-=180}$2<180{t+=180}{$2=t}1' >file
...
2,105
Posted By lovelinux
Adding or substracting from a Matrix column
Hello!

I'm new to linux programming. It would be great if you could help me out.

I have a matrix of kind:

10 30.0
20 190.5
40 180.
50 320.5

I would like
to substract 180 from...
3,622
Posted By lovelinux
Showing results 1 to 8 of 8

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