| View previous topic :: View next topic |
| Author |
Message |
lehe
Joined: 02 Apr 2009 Posts: 9
|
Posted: Thu Apr 02, 2009 10:13 am spacing in html |
|
|
|
Hi,
I learn to use " " instead of space for spacing in html. However, in my example, I never make it.
| Quote: |
awk: { print ${ids[${i}]}" "$1; }
awk: ^ syntax error
awk: { print ${ids[${i}]}" "$1; }
awk: ^ syntax error
awk: fatal: invalid subscript expression
|
Can anyone help? Thanks |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
|
lehe
Joined: 02 Apr 2009 Posts: 9
|
Posted: Thu Apr 02, 2009 1:56 pm |
|
|
|
I am not sure, but it is just like here when I am posting in this forum:
awk: ^ syntax error
awk: ^ syntax error |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
|
lehe
Joined: 02 Apr 2009 Posts: 9
|
Posted: Thu Apr 02, 2009 2:22 pm |
|
|
|
Hi, it is just the output of awk I want to post on a linux forum for my awk usage problem.
But I have not figured out how to get the spacing between "awk:" and "^ syntax error" so that the arrow could point exactly at where the error occurs. |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
|
lehe
Joined: 02 Apr 2009 Posts: 9
|
Posted: Thu Apr 02, 2009 2:48 pm |
|
|
|
Sorry my example is misleading. My intention is to ask how to write in html so that we can get spacing in online posts.The output of awk is what I want to post somewhere else and it contains spacing which does't show in my posts correctly. So let's forget about awk. It's just an example, my question actually can be more general than simply posting output of awk somewhere online.
I assumed the language for posting at online forums is also html, however, when using " ", I don't get any spacing but " " itself.
Hope you don't mind my awk example mislead you. |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4883 Location: MS
|
Posted: Thu Apr 02, 2009 6:29 pm |
|
|
|
| lehe wrote: |
I am not sure, but it is just like here when I am posting in this forum:
awk: ^ syntax error
awk: ^ syntax error |
This and most forums use BBCode and have HTML turned off for security reasons among others. To show html, we use the BBCode tags which the forum editor inserts using the handy little editing button(s). Some character entities in forums will show as typed without the BBCode code tags.
Can give you the HTML code for maintaining spacing, but don't think it is going to solve your problem for what you want to do. If you just want to show your code as it should be, I recommend making a text image of it, hosting it online and using the BBCode image tags to display it in the forum. |
|
lehe
Joined: 02 Apr 2009 Posts: 9
|
Posted: Fri Apr 03, 2009 2:18 pm |
|
|
|
Thanks, Ron!
Can you show which BBCode tag / button for spacing in this forum and "the HTML code for maintaining spacing"? |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
|
lehe
Joined: 02 Apr 2009 Posts: 9
|
Posted: Fri Apr 03, 2009 3:02 pm |
|
|
|
What I posted here is just the error info from the output when running my bash script, where I am using awk.
Thanks, Corey. I'll take a look at the BBCode Guide. |
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8748 Location: Castle Pines North, CO USA
|
Posted: Sat Apr 04, 2009 4:19 am |
|
|
|
OK, so no spaces are created with this.
Now knowing more & definitely understanding this is not HTML but another beast, I'll move this to the proper zone.
Having said that, you code you gave:
| Code: |
awk: { print ${ids[${i}]}" "$1; }
awk: ^ syntax error
awk: { print ${ids[${i}]}" "$1; }
awk: ^ syntax error
awk: fatal: invalid subscript expression |
Try something like
| Code: |
awk: { print ${ids[${i}]}" "$1; }
awk: " ", ^ syntax error
awk: { print ${ids[${i}]}" "$1; }
awk: ^ syntax error
awk: fatal: invalid subscript expression |
I am not certain if that work (I do not know if you provided the complete output or not in your response), but if you did this might not work.
_________________
Corey
Toll Free Solutions | Mile High Merchant Accounts | Expression Web Blog |
|
|