Search Results

Search: Posts Made By: sekfarok
14,831
Posted By sekfarok
Thank you so much. tested your solutions and it...
Thank you so much. tested your solutions and it works. all my calculations are correct too now :):b:
14,831
Posted By sekfarok
if i add that part, it gives me error: no space....
if i add that part, it gives me error: no space. my example is a snapshot of what my awk file have. and those numbers without the '-' sign needs to be converted too but that has no issue. only the...
14,831
Posted By sekfarok
Thanks Ravinder. I've tested your solutions and...
Thanks Ravinder. I've tested your solutions and it works if i use a single line awk command. But my scripts are in an awk script file. so my scripts is calling my myscript.awk file.

here is how my...
14,831
Posted By sekfarok
ahh sorry. Currently (ignore the position)....
ahh sorry.

Currently (ignore the position). Let say i have a few records with 15 character long (fixed length).

Input
T00001000000234
T0000200000-123 <-- this should become -123...
14,831
Posted By sekfarok
Wonder where shall i put it in my code. basically...
Wonder where shall i put it in my code. basically my awk script looks like below:


BEGIN {
some codes here
}
#so it search for some Trailer with T as indicator
/^T/{
...
14,831
Posted By sekfarok
Converting String To Integer/Float (weird case)
Hi guys,

I'm new here. I have a problem at work. One of our scripts was eventually having a bug and only detected recently. Here's the issue and background:

Bash Script which calls AWK script
...
Showing results 1 to 6 of 6

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