Search Results

Search: Posts Made By: hamnsan
1,913
Posted By hamnsan
how to extract data from numbered files using linux in the numerical order-
Hi experts,


I have a list of files containing forces as the only number as follows.
Force1.txt Force2.txt Force3.txt Force4.txt Force5.txt . . . . . . . . . Force100.txt I want to put all...
6,122
Posted By hamnsan
hi experts, I have updated the question.....
hi experts,

I have updated the question.. any suggestions or comments.
6,122
Posted By hamnsan
sed or awk to replace a value in a certain line from another file containing a string
Hi experts,


In my text file I have the following alot of lines like below.



input.k is as follows.


2684717 -194.7050476 64.2345581 150.6500092 0 0
2684718 ...
10,198
Posted By hamnsan
I put the number in front of mue from the...
I put the number in front of mue from the fric.txt . Then I delete the top line so that he lower line bubbles up to the top ready to be taken in the next step and so on.
yes the fric.txt change each...
10,198
Posted By hamnsan
The problem is now that it replace all the...
The problem is now that it replace all the instance with meu. I just want to replace it only one time, at the beginning.
10,198
Posted By hamnsan
it doesnt work at all , it just output the line...
it doesnt work at all , it just output the line containing mue..

I also want to keep the format same and inplace editing.
10,198
Posted By hamnsan
it will take the first value for one time. The...
it will take the first value for one time.
The I will delete that line from fric.txt so that next time it will take the next value and so on..
10,198
Posted By hamnsan
sed or awk to replace a value in a certain line containing a string
hi experts ,

I have an input like following.

R sfst 1000.0000
$ new time step for mass scaled calculation
R dt2ms -4.000E-7 ...
2,188
Posted By hamnsan
comparison of number in linux..
hi all experts,


i=1;
while [ $i -lt 5 ]
do
echo $i
$i=$i+1

done

can I use

min=2
max=5

if (($min > $ max))

then
else
3,219
Posted By hamnsan
hi , its not tab seperated , infact , the...
hi ,

its not tab seperated , infact , the same spacing I have shown in 'original'.

this I can do this with printf but I wanted to know if it is possible using a sed or awk instead.
3,219
Posted By hamnsan
I am sorry that was a typo , i.e it should be...
I am sorry that was a typo , i.e it should be 1.00000 .

so in that case , I need to replace field 4.

thanks.

---------- Post updated at 03:03 AM ---------- Previous update was at 02:58 AM...
3,219
Posted By hamnsan
sed or awk to replace a value in a certain line.
I have an input like following.

*DEFINE_CURVE_TITLE
Force for tool binder
$# lcid sidr sfa sfo offa offo dattyp
3 ...
1,240
Posted By hamnsan
Help with copying lines from different files.
I am new to Linux and have a challenging task.
I have 3 data files, and need to do the following:


Go to line 31 of file 1, delete it
Read 1 line from file 2 and add in place of deleted...
Showing results 1 to 13 of 13

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