Search Results

Search: Posts Made By: gobi
Forum: Linux 03-08-2010
2,361
Posted By gobi
Compiling with multiple versions of a library
Hello!

I have a set of headers and libraries I want to use but they are mixed with ones I do not want to use. They are part of some official stuff, so I cannot modify them while begging and...
2,683
Posted By gobi
Perfect! Thanks so much, I guess I should read up...
Perfect! Thanks so much, I guess I should read up a bit on awk

Thanks!!
2,683
Posted By gobi
Thanks for the help but its still not what I...
Thanks for the help but its still not what I want.

I tried

*> set line="12343 words here that can chage (hat:98-345) more word and numbers here"
*> echo $line | sed 's/hat:\([0-9-]*\).*/\1/'...
2,683
Posted By gobi
Thanks but this just replaces (hat and ) with...
Thanks but this just replaces (hat and ) with white spaces.

I would like to use this in a script and for each line of the file get those numbers

ie.
cat test
12343 words here that can chage...
2,683
Posted By gobi
Hi, Thanks but this does not work for me ...
Hi,
Thanks but this does not work for me

*> cat test
12343 words here that can chage (hat:98-345) more word and numbers here
*> tr "(hat:" " " test | tr ")" " "
tr: too many arguments
Try `tr...
2,683
Posted By gobi
simple sed
Hello Experts,

I am being silly here and just need someone to point out what the silliness is

I have a bunch of lines that are
12343 words here that can chage (hat:98-345) more word and...
2,939
Posted By gobi
Franklin52, Am I missing something because...
Franklin52,

Am I missing something because this does not work.

joeyg,

Thanks! I had something similar to this but yours is better. I was hoping to get some slick awk or sed command to do...
2,939
Posted By gobi
extract x lines after a pattern - place each result in separate file
Hi all,

I have many files that have 1 or more occurrences of the information I want. There are two distinct sets of information. I want get this info and place each occurrence in its own file.
...
18,617
Posted By gobi
Thanks! thats nice. I must take some time and...
Thanks! thats nice. I must take some time and learn the ways of awk
18,617
Posted By gobi
I did not know awk could add. Sorry about that. ...
I did not know awk could add. Sorry about that.

The file which name is stored in $LOG_FILE contains

bc misstep (hi)............34
bc misstep (hello)..2
bc misstep (bye)......0

This...
18,617
Posted By gobi
arithmetic in tcsh
Yes I know tcsh sucks for scripting and arithmetic but I have to write a script for multiple users and they all use tcsh.

I have this variable that I 'set' with but pulling numbers off of stings...
2,864
Posted By gobi
yes thank you. I left out the \.\. from the...
yes thank you.

I left out the \.\. from the sed command. like I said its been a long day.

Thanks!
6,426
Posted By gobi
misspelling
I believe the administrator meant gopi will soon be banned
2,864
Posted By gobi
extracting numbers from strings
Hello all,

I am being dumb with this and I know there is a simple solution.

I have a file with the follwing lines

bc stuff (more)...............123
bc stuffagain (moretoo)............0
...
Showing results 1 to 14 of 14

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