Search Results

Search: Posts Made By: 1tempus1
1,414
Posted By 1tempus1
Yes correct :D Thank you... It works...
Yes correct :D Thank you... It works...
1,414
Posted By 1tempus1
Yes, it should be awk... But i have got an...
Yes, it should be awk... But i have got an idea... I am going to try it first... i wonder if it is catch...
1,414
Posted By 1tempus1
Awk replacement problem
Hello everyone,
I have a problem with awk replacement... I need to replace "|\n" for "\n"
I tried thisawk '{ sub(/\|\\n/, "\\n"); print }'
but it seems like it doesn't work properly. Can anyone...
12,023
Posted By 1tempus1
I think, that simplier is to write it with awk......
I think, that simplier is to write it with awk...
But i have another problem with it... I need to fix arguments incoming to the script. The argument can't be empty, non exist, it must be text...
12,023
Posted By 1tempus1
I am not able to write it into command line... In...
I am not able to write it into command line... In the middle of statement it just start from the beginning... I tried to rewrite it mannualy but it was same...


Well, i finnaly write it there,...
12,023
Posted By 1tempus1
Looks like good idea but it show error message: ...
Looks like good idea but it show error message:
[: =: unary operator expected
12,023
Posted By 1tempus1
It is working just nice... It now write all...
It is working just nice... It now write all information i need... Except one... I need before that and after a '... How can i do that? Nearly our i tried " ' ` and nothing works... If you know how to...
12,023
Posted By 1tempus1
well, that error message was cant open file.......
well, that error message was cant open file.... My fault... That automatic test provide som stdin and test it... But i wonder, how can i fix that awk, because if it is not possible, i must rewrite...
12,023
Posted By 1tempus1
Well, i just finish testing... Awk is now good...
Well, i just finish testing... Awk is now good but it put all the lines into variable... So if i have 3 longest lines with same length, awk save all three to riadok... So it is not very good. But if...
12,023
Posted By 1tempus1
i tried to use awk inside of for to ensure, that...
i tried to use awk inside of for to ensure, that awk will be executed for every file, that comes in. And then, the longest line or possible lines should be written to the variable. So in the and, i...
12,023
Posted By 1tempus1
It looks like i didn't tell clearly... Sorry for...
It looks like i didn't tell clearly... Sorry for that... The input could be files, or nothing and in that case i should use stdin. Then should script find the longest possible line or eventually...
12,023
Posted By 1tempus1
Well, i am bit confused... So i make changes you...
Well, i am bit confused... So i make changes you was writing... Script isn't working, so you are right, i need to check it... Thanks a lot... And that array.
I need to put the the longest line or...
12,023
Posted By 1tempus1
Thank for that, i really appreciate that. But now...
Thank for that, i really appreciate that. But now something more difficult. I have written a bash script which should find the longest line or lines from all of the files which are arguments for...
12,023
Posted By 1tempus1
OK, thank you for you time, it works nice :b: ...
OK, thank you for you time, it works nice :b:



---------- Post updated at 06:38 PM ---------- Previous update was at 11:17 AM ----------




May i ask, is it possible to do same thing...
12,023
Posted By 1tempus1
Bash script find longest line/lines in several files
Hello everyone...
I need to find out, how to find longest line or possibly lines in several files which are arguments for script. The thing is, that I tried some possibilities before, but nothing...
Showing results 1 to 15 of 15

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