Search Results

Search: Posts Made By: null7
2,397
Posted By null7
Hi RudiC, thank you for your help.. but I've...
Hi RudiC, thank you for your help.. but I've problem where my last value seems to appear as exponential notation. I need to use the value in my script rather than opened it in excel and change the...
2,397
Posted By null7
Append data with substring of nth column fields using awk
Hi guys,
I have problem to append new data at the end of each line of the files where it takes whole value of the nth column. My expected result i just want to take a specific value only. This new...
2,194
Posted By null7
Hi RavinderSingh13, thank i've tried it with the...
Hi RavinderSingh13, thank i've tried it with the sample input. But the problem is when i change the input (maintain the exact column only data different) it messed up. Can u explain a bit what the...
2,194
Posted By null7
To append new data at the end of each line based on substring of last column
Hi guys,
I need to append new data at the end of each line of the files. This new data is based on substring (3rd fields) of last column.

Input file xxx.csv:
U1234|1-5X|orange|1-5X|Act|1-5X|0.1...
1,355
Posted By null7
Understood. Thank you guys for your helped. :b:
Understood. Thank you guys for your helped. :b:
1,355
Posted By null7
Hai Don, Thanks it works perfectly:b:. But can...
Hai Don,
Thanks it works perfectly:b:. But can you explain a bit your second method. I just don't get how the code insert the value 0 in the middle.

Thanks again. :)
1,355
Posted By null7
Insert strings/values between text
Hello Guru,
I'm trying to insert a value between 2 fields (between last and second last field) But end up the script actually replacing the value in the second last field. What should i put to fix...
2,083
Posted By null7
need help, ls in ftp
Good day,

I've a question regarding ls in ftp. What im trying to do is:

1. I've file/files in root folder, eg: abc_123.txt, abc_456.txt and so on.

2. In my SCRIPT1, I pipe the filename into...
43,301
Posted By null7
Hi I already refer to doc but still blur...
Hi I already refer to doc but still blur especially on regexp. Appreciate if u can explain further.


local @ARGV = ($File); # puts $File into the array @ARGV
local $^I = $Bak_ext; # (Backup...
1,470
Posted By null7
Help with awk
hi all, i've some doubt about awk. lets say i have 3 files below:

file.txt
aaaa
bbbb 10
cccc

file1.txt
aaaa
bbbb 12
cccc

file2.txt
aaaa
bbbb 10
cccc

I want to print out the...
43,301
Posted By null7
At last i manage to solve the mystery. thanx to...
At last i manage to solve the mystery. thanx to redouluv. what i'm done, i put close FH outside the while loop so that it capture the new file with new counter line. ;). Btw i still need to undestand...
43,301
Posted By null7
I think i know whats the problem. i tried to...
I think i know whats the problem. i tried to print out the line number. it seems the script reads those files as one file. What can we do so that the script can read one file than loop for 2nd file?...
43,301
Posted By null7
What i mean is when i run the script, there's no...
What i mean is when i run the script, there's no changes to the file (not backup and swap) even the file fulfill the condition. that's weird.


Yes if possible. I'm not trying to avoid but i...
43,301
Posted By null7
I've tried the code and superb.:b:. it's work....
I've tried the code and superb.:b:. it's work. but i don't know why it won't work when i changed @File to another pattern. Is there anything i need to change also. I change @Files = glob "file*"; to...
43,301
Posted By null7
Actually i got the meaning of this code. but if...
Actually i got the meaning of this code. but if can i just want to check only line 2 and contain =1021436587. If other file not fulfill the condition then do nothing. no need to make backup or...
43,301
Posted By null7
Owh..thank you. you opened my eyes. too many...
Owh..thank you. you opened my eyes. too many thing is mind, and i didn't realize it. didn't realize "\n" $0 statement is expression1. phewhh..:b: thanx again.

radoulov/summer_cherry,
Appreciate...
43,301
Posted By null7
Thanx and its work. but can u explain me this...
Thanx and its work. but can u explain me this line:
s1=s1?s1 "\n" $0:$0I know its C conditional and the output pattern but didn't get the meaning. I tried print line by line to see the output. What...
43,301
Posted By null7
Wow. Thanks for your prompt reply. Appreciate it....
Wow. Thanks for your prompt reply. Appreciate it. But i just wondering why the output between line 4-8 is in desending order. I try to play around with the loop so that it is in asc order but didn't...
43,301
Posted By null7
Hi, I'm a newbie in unix script. Currently i'm...
Hi, I'm a newbie in unix script. Currently i'm using script for my daily job. Can anyone here explain in detail above script? I mean the syntax and command line by line. I do understand the script...
Showing results 1 to 19 of 19

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