Search Results

Search: Posts Made By: placroix1
10,945
Posted By placroix1
How to remove ^Z (eof) using sub in awk
I am looking for the substitution expression to remove the eof ^Z character at the end of a file in UNIX.

Can anyone help?

Thank you !
42,574
Posted By placroix1
Thanks 80)
Thanks 80)
42,574
Posted By placroix1
Absolute value
Is there a function in awk to get the absolute value of a-b which can be negative or positive, I just care for the absolute value...
5,756
Posted By placroix1
Forget about my last request. I was picking up a...
Forget about my last request. I was picking up a carriage return in one of my variables causing the line to wrap.

Everything is fine now!
5,756
Posted By placroix1
Line wrapping problem when using awk
I am fairly new at this,

I wrote a awk program to give me some summary information about a file. At the end of the program I want to print some variables but for some reason it keeps wrapping the...
1,628
Posted By placroix1
I was using Notepad and accessing the directory...
I was using Notepad and accessing the directory through a mapped drive in explorer and Bingo, you were right! there was a ^M character at the end of the first line. As soon as I removed it. It...
1,628
Posted By placroix1
Help for a newby
I am new to using nawk. When I put the following line in script file test1.awk
I get the results:

{ print NR, length($0),NF}

>nawk -f test1.awk head.txt

1 63 5
2 2622 188
3 2166 155
4...
Showing results 1 to 7 of 7

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