Search Results

Search: Posts Made By: Robert_M
2,742
Posted By Robert_M
Latest version of Ubuntu. Found the error....
Latest version of Ubuntu.

Found the error. Was a coding problem. Since I generated the file on a Windows machine, the line ending was different. Now, it works 100%.

Once more!

THANK YOU VERY...
2,742
Posted By Robert_M
lorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem...
lorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsumlorem ipsum
lorem...
2,742
Posted By Robert_M
Ok. Did not know this. BTW, your solution...
Ok. Did not know this.

BTW, your solution does not work, if there are special charcters between the [ and ]. Any idea why?

Robert
2,742
Posted By Robert_M
What do you mean with this? How do I add a...
What do you mean with this? How do I add a newline?

Best
Robert
2,742
Posted By Robert_M
BIG THANKS!!!
Hi radoulov and Scrutinizer,

checked now both solutions. And they both lead to the the same result.

When I checked radoulov's solutions, I used "awk '/\[/ {sub(/^\[/, x, $1); sub(/\].*/, x,...
2,742
Posted By Robert_M
---------- Post updated at 10:00 AM ----------...
---------- Post updated at 10:00 AM ---------- Previous update was at 09:55 AM ----------

I get an syntax errror at the $1 = $1?

Did not find the error by myself.

Thanks
Robert
2,742
Posted By Robert_M
Wow!!!! I am depply impressed. I forgot to...
Wow!!!! I am depply impressed.

I forgot to mention one little thing, which is not dramatic. But between the groups there is some rubbish text.

For instance:

[aa1 bb1] jkjlk
cc1
dd1
...
2,742
Posted By Robert_M
Indeed. Was a typo! Thanks for correcting...
Indeed. Was a typo!

Thanks for correcting it.

Best
Robert
2,742
Posted By Robert_M
Text manipulation with gawk
Hi all,

I have a very long document in the following format:
[aa1 bb1] jkjlk
cc1
dd1

[aa2 bb2]
cc2
dd2

[aa3 aaa3 bb3]
cc3
dd3

and so on ...

The expected result should be a table...
Showing results 1 to 9 of 9

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