I know this should be simple, but sorry I am fairly new to UNIX and can't find the syntax to make this work.
I have following two commands in a script:
x=`expr $(head -1 filename.ext | cut -c16 | grep [A-Z] | wc -l) + 16`
del=`head -1 filename.ext | cut -c$x`
This works fine as I expect it...
Annihilannic -
uname -a returns:
HP-UX cl00hp99 B.11.23 U 9000/800 1012723164 unlimited-user license
echo $0 gives me:
-sh
Although I entered ksh to go to a korn shell and I got the same results with the grep commands above.
Thanks.
Thanks for the help. I figured out after I posted why the first one didn't work, as you explained. But not why the other pairs yielded different results when I escaped the asterisk. For whatever reason my version of UNIX does not interpret those as I would expect. There IS a literal asterisk...
Hello - Sorry, I'm new at UNIX and regex and even the simplest of issues seem to be throwing me.
Can someone explain this to me:
In a file f1 this line is contained:
MH76M*ME5G4GCKOVICHJEFFREY0187405......
The command
grep MH76M*M f1
yields the line, as I would expect. I read this as MH76...
Hmm.
Well - I guess it must just be a version thing.
Escaping the + does nothing - your first line above still yields no results.
Adding the extended -E option works - when I used your second line I get all of the names listed.
The -P option is not recognized - tells me illegal option.
I am...
Simple Regular Expression Question
OK - I'm new to UNIX and reg. ex, so this is probably very basic, but I can't figure it out. Given a simple text file called namelist with a list of names such as
John Doe
Bob Cat
Billy Bob
Joe Mama
etc,
the command:
grep '[A-Z][a-z]*' namelist
yields...
Ahhh... Just like you said in your first response a few minutes ago. Should have paid closer attention.
This is just for a mockup I am doing on my machine, so I'm good to go using the javascript.
Thanks again for the info.
Sorry - I'm new to webstuff, so I'm not clear on what your saying in either case.
When you say style the link so it looks like a button, do you mean in css or inline style just set color, background-color, width, etc, so it looks like a button on the screen?
As for the javascript, I tried that...
I know this is probably ridiculously simple, but I can't seem to get it to work. I just want a button on an html page to link to another html page. Nothing going back to the server - just a straight link to another static page.
I've tried just wrapping the button tag in an anchor like this...
Well actually I have 2 columns in the outer table. Basically a link bar taking up the left couple inches or so of the screen, and then the main pane that I was talking about that contained the table I am trying to center. So I set it up as a two column table. I'm sure there's a better way to...
Vragabond -
Thanks for the tips. Found a couple of things. First of all, I didn't have that <!DOCTYPE node in my page. Not sure what that does (I'm new at this) but I assume it makes it adhere to some HTML standards. When I took that out of your code, yours did the same thing mine did...
Vragabond -
Thanks for the border vs. td tip - this is now working fine in both NN an IE. But centering the table using margin: 0 auto still doesn't work. The table is still all the way to the left of the <td> in NN. And if I remove the align=center property, it does that in IE as well...
What can I do to force <td>'s to render to a desired width in NN (I have NN 6.2) For example, if I want a black vertical bar in a table - if I use
<td style={width:1px;background-color:black}></td>
this works fine in IE, but in NN it does not dispay it since there is nothing else in the td. If...
I have a couple of similar questions.
1) I have a kind of table that will always have 3 columns, each with various styles defined. I know I can define a class for each column:
col.co11 {.....}
col.col2 {.....}
col.col3 {.....}
and then start my table
<table><col class=col1><col...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.