Search Results

Search: Posts Made By: guns
1,949
Posted By guns
Inside File 1.txt is a line for input Inside...
Inside File 1.txt is a line for input
Inside file File2.txt, is a name of Files ( File A, File B, File C)

Logic is to insert every line File1.txt, into File A, B, C by replacing line 2 . Each of...
1,949
Posted By guns
While Loops Multiple File
Guru,
I try to make a loop of 2 files,
Input
File1.txt:
1
2
File2.txt:
A
B
C

A, B and C is a file name, inside A
X
Y
Z

Expected Output
A.1

X
4,146
Posted By guns
@tarun : Thanks, it works !! @ahamed : it seems...
@tarun : Thanks, it works !!
@ahamed : it seems the command did not write the data, but the columns no.. thanks anyway
4,146
Posted By guns
that post was another case, would it be...
that post was another case,
would it be possible to find the solution in awk,
I am totally new-by in perl, .. :wall:
4,146
Posted By guns
Multiply certain column to variable
Hi experts,
I want to multiply certain columns to variable,
data :
1 2 3 4 5 6 7 8 9
result with var = 2 for column 3,6,9 ... (every columns which can be divided to 3):
1 2 6 4 5 12 7 8 18
I...
4,820
Posted By guns
Working Perfectly. Thanks !!
Working Perfectly. Thanks !!
4,820
Posted By guns
The above commands did not delete the 3,6,9,.....
The above commands did not delete the 3,6,9,.. etc columns, but print the 3,6,9.. columns.
4,820
Posted By guns
Delete certain column awk
Hi experts,
I have a file, where inside this file contains multiple columns (up to 2000 columns):

0.05 0.54 2.02 0.21 1.39 2.92 0.31 1.75 3.34

I want to delete column 3,6,9,12,15,18,21... etc ...
1,793
Posted By guns
Fantastic. Problem solved. Thanks.
Fantastic. Problem solved.
Thanks.
1,793
Posted By guns
I am using : #!/bin/sh Probably I did not...
I am using : #!/bin/sh
Probably I did not explain clearly. Sorry.
In file directory.txt (sorry, previously, I did not put .txt)
A
B
So far I haven`t succed yet.
1,793
Posted By guns
Why I got this error : Syntax error: "("...
Why I got this error : Syntax error: "(" unexpected
1,793
Posted By guns
Looping for multiple directories
Hi experts,
I am totally stuck with this.
I run a looping "for" command for multiple directories, manually, I have done this :

vfor dir in A B; do
cp -p $dir/X.txt X-${dir}.txt
done[/CODE]...
1,323
Posted By guns
Working perfectly. Thank you very much.
Working perfectly. Thank you very much.
1,323
Posted By guns
[Solved] Mathematical operation in multiple files
Hi experts,
I need to do a mathematical calculation between each data in 3 different files. Output is using formula (A11+B11)/(1+C11).

INPUT :

File A.txt
A11 A12
A21 A22

File B.txt...
1,716
Posted By guns
Working like a charm.. I wonder about the...
Working like a charm..
I wonder about the meaning of this command. I really want to learn.
1,716
Posted By guns
The script succeed to copy into File3.txt , but...
The script succeed to copy into File3.txt , but the multiplying number (based on variable File2.txt) is not correct. In above case, I try using "3", and it is perfectly working. But when I change the...
1,716
Posted By guns
Copy Column Multiple Times
Hello,
I wonder if it my problem can be solved. Inside File1.txt, there are 3 columns. Inside File 2.txt, contain certain variable(in this case, only "3"). So I want to : (copy File 1 x Variable in...
4,342
Posted By guns
@ rdcwayx : Thanks a million. Your solution...
@ rdcwayx : Thanks a million. Your solution working perfectly.

@ alister, cgkmal : Thanks for showing other way. Now I should learn more. Thanks you.

@ pravin27 : Your script makes an...
4,342
Posted By guns
The file is just like it is. Indeed there is no...
The file is just like it is.
Indeed there is no space, just continuously no.

The original data has the same start line no. (when I check in notepad),
For example,
the resulting 1st coulomb...
4,342
Posted By guns
Extract string from multiple file based on line count number
Hi,

I search all forum, but I can not find solutions of my problem :(
I have multiple files (5000 files), inside there is this data :

FILE 1:
1195.921 -898.995 0.750312E-02-0.497526E-02...
Showing results 1 to 20 of 20

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