Search Results

Search: Posts Made By: loperam
5,889
Posted By loperam
that works as I needed! thanks bartus11
that works as I needed!
thanks bartus11
5,889
Posted By loperam
Thanks for replying guys bartus11 When...
Thanks for replying guys

bartus11
When using awk -F\, -vOFS=\, '{$NF=$NF-1}1' file
I get my file but the last column shows the value -1
What I want is that last column to be removed, not to...
5,889
Posted By loperam
remove column and store output to a variable
Hello guys

I need to run a script to remove the last column of different comma separated files.
The problem is that the number of columns of my files will be different and I won't know that...
2,813
Posted By loperam
Awesome!! Thanks a lot!
Awesome!!

Thanks a lot!
2,813
Posted By loperam
extract text from a file
I have been reading several posts regarding how to extract text from a file, but none of those have helped me for what I need.
This is my problem: I need to extract the text after my pattern
So my...
20,196
Posted By loperam
in that case i'd use: let "line=$line+1" ...
in that case i'd use:
let "line=$line+1"

the problem is that i don't have "let" in ms dos and i need to run this script in ms dos
Therefore i was asking is someone knows how to do it with awk or...
20,196
Posted By loperam
Thanks for your reply but i think you...
Thanks for your reply but i think you misunderstood my question
I need to read values from my file, so i'm using: while read line do
Then the value stored in "line" must be incremented in one...
20,196
Posted By loperam
auto increment
Hello

Does anyone know how to auto-increment the value of a variable, preferably using awk or sed?

I need to read values from a file and auto-increment those values to use them as line...
9,685
Posted By loperam
while read line do for Windows
hello
I know this is a unix/linux forum but I need to use some unix commands in Windows
can someone help me to "translate" this code for windows?
I've downloaded UnxUtils.zip from...
14,243
Posted By loperam
convert rows into columns
Hi guys

Could anyone advise me how to convert my rows into columns from a file

My file would be similar to this:

A11 A12 A13 A14 A15 ... A1n
A21 A22 A23
A31
A41
A51
...
Am1 Am2 Am3 Am4...
2,290
Posted By loperam
For some reason I only get the cases that apply...
For some reason I only get the cases that apply to the first part (echo TRUE) and not to the second (echo FALSE).
The same happens if I do this:
test [$a!="$b"] && echo FALSE >>r.txt || echo TRUE...
2,290
Posted By loperam
Ok thanks, but that code is only working for the...
Ok thanks, but that code is only working for the cases where a==b, I don't get the FALSE cases

besides how can I send the output to a file? I tried the next line but doesn't work
test $a==$b echo...
2,290
Posted By loperam
Why this code doesn't work? while read first...
Why this code doesn't work?

while read first second
do
if "$first"!="$second"; then
echo false
fi
done< myfile.txt
2,290
Posted By loperam
check line by line in a file
Hi there

How can I check line by line in a file?

I need to compare the first value with the second to know if they are equal. If those values are equal, I require to send "TRUE" to the output...
2,450
Posted By loperam
compare data line by line from a file
Hi there

How can I compare data line by line from a file?

I need to compare the second value with the fourth to know if they are different.
If those values are different, I require to send my...
Showing results 1 to 15 of 15

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