Search Results

Search: Posts Made By: NickC
10,241
Posted By NickC
Thank you. I'll have to look into perl a little...
Thank you. I'll have to look into perl a little more!
10,241
Posted By NickC
Got it - that works!! :) Now I have to figure...
Got it - that works!! :) Now I have to figure out just what you did! :)

Thanks again all of you for your patience and help!
10,241
Posted By NickC
Yeah, sorry - when I posted the first thread I...
Yeah, sorry - when I posted the first thread I didn't think it made such a big difference but now I know! Live and learn...

I tried those two commands but I'm getting no output at all. Not sure...
10,241
Posted By NickC
ahmad.diab: the perl script worked well, but only...
ahmad.diab: the perl script worked well, but only printed out the first instance of the number string after /Start/

Scrutinizer: I'm sorry - what I failed to mention was that when the number...
10,241
Posted By NickC
Thanks Scrutinizer for the clarification! ...
Thanks Scrutinizer for the clarification!

I'm confused by your other code suggestions though. If I want awk to look for the next time that a scientific notation is NOT used, then how does...
10,241
Posted By NickC
Wonderful! Now I'm going to have to go read to...
Wonderful! Now I'm going to have to go read to figure out what you did! :)

I also realized something that might have made this easier. The list of numbers seems to always include one positive...
10,241
Posted By NickC
Scrutinizer: Reading some more on awk, I thought...
Scrutinizer: Reading some more on awk, I thought the ^ inside the [ ] means that the script will look for a number at the beginning of the line, and the ^ outside the [ ] means it will exclude that. ...
10,241
Posted By NickC
Weird. That looks perfect - it should do what I...
Weird. That looks perfect - it should do what I want. But when I try that, I only get the one line that has the word Start in it.

I'm using AIX and ksh, if that makes any difference.

I...
10,241
Posted By NickC
Thanks both of you for the fast answers! ...
Thanks both of you for the fast answers! Unfortunately, they didn't work for my case.

I'm not sure if I'm understanding the coding you are suggesting. Like I said in my initial post, the end of...
10,241
Posted By NickC
Using awk to find next word available
I'm trying to use awk to extract certain text from a file. The file looks like this:


Start
1 10
2 20
3 30
...
...
...
<some word>


Now what I want to extract is the list of...
7,395
Posted By NickC
Thanks for the clear explanation!
Thanks for the clear explanation!
7,395
Posted By NickC
Worked like a charm - thanks!! :) Could you...
Worked like a charm - thanks!! :) Could you briefly explain what the stuff following the prinf means? With printf, it seems you're printing column 1 and 2 side by side of 8 characters per column. ...
7,395
Posted By NickC
Convert two column data into 8 columns
Apologies if this has been covered - I did search but couldn't find what I was looking for.

I have a simple X-Y input file. I want to convert it from two columns into 8 columns - 4 pairs of X-Y...
Showing results 1 to 13 of 13

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