Search Results

Search: Posts Made By: tipi
Forum: OS X (Apple) 09-19-2008
6,019
Posted By tipi
I'm using Gaussian and opendx through ssh...
I'm using Gaussian and opendx through ssh channels in X11. In the leopard version of X11, the programs stop to work after a few minutes or as soon as a window is closed.

The installation of X11...
Forum: OS X (Apple) 09-03-2008
6,019
Posted By tipi
Install X11 Tiger on Leopard
Hi!

A bug on X11 leopard prevent me from using a program through ssh channel. My unix guru suggest me to install X11 tiger, in which the bug is absent.

So I tried to follow the step given by...
3,067
Posted By tipi
Closing ssh when process run on remote
Hi!

I currently run a very long script (two hour left...) on a remote computer through a ssh session. I wonder whats happend if I close the ssh session, or even, the terminal. Is the script...
4,006
Posted By tipi
So simple... I thought it was different than...
So simple... I thought it was different than functions!

Thanks a lot era,

Tp
3,852
Posted By tipi
I dont understand why I cut and paste only that...
I dont understand why I cut and paste only that part of the command. Maybe I was convinced that the problem was in that part.

Sorry to have made you waste time...
4,006
Posted By tipi
Cleanup script
Hi!

I would like to write a script which remove some files, all beginning with the same prefix :

prefix.1
doc/prefix.2
../prefix.3

etc.

So, I would create a file and chmod it...
3,852
Posted By tipi
Damn, in fact, the code I used was echo...
Damn, in fact, the code I used was

echo `grep "[0-9\.\-].* [0-9\.\-].* [0-9\.\-].*" $FILENAME` >> $REPORT

So the echo was my problem???

EDIT : this is not a real question... I understand!
3,852
Posted By tipi
This work fine too, thanks!
This work fine too, thanks!
3,852
Posted By tipi
Ok, this do exactly what I want sed -n...
Ok, this do exactly what I want

sed -n 's/[0-9\.\-].* [0-9\.\-].* [0-9\.\-].*/&/w $REPORT' <$FILENAME

Thanks for help,

Tipi
3,852
Posted By tipi
I'm looking in my unix reference book...
I'm looking in my unix reference book...
3,852
Posted By tipi
Thank you all for your answers. I...
Thank you all for your answers.



I already gave a input file sample. As I said, the output file from my command is the same as the input, except that everything is on one single line.
3,852
Posted By tipi
From multiple line to one line to multiple line
Hi!

I'm using this code

grep "[0-9\.\-].* [0-9\.\-].* [0-9\.\-].*" $FILENAME >> $REPORT

to get 3D coordinates from a file (FILENAME) like this one :

0.1 0.1 0.1
2 2 2
0.03 0.03 0.03...
75,538
Posted By tipi
Ok, thanks a lot!
Ok, thanks a lot!
75,538
Posted By tipi
Remove white space at the beginning of lines
Hi!

I store some data obtained with grep or awk in a file. The problem is that some lines have white space at the begining :

[w h i t e s p a c e]line1
line2
[whitespace]line3

I use...
5,765
Posted By tipi
Very appreciated!
Very appreciated!
5,765
Posted By tipi
Can we modify it so that patterns dont appear in...
Can we modify it so that patterns dont appear in the output?

Thanks again!
5,765
Posted By tipi
Thanks!
Thanks!
5,765
Posted By tipi
grep all lines from PATTERN1 to PATTERN2
Hi!

From a file like this one :

hello
...
PATTERN1
...
lines between patterns
..
PATTERN2
...

I would like to extract only the lines between patterns, probably with awk I think?
...
5,767
Posted By tipi
Ok, I found the problem. It had nothing to do...
Ok, I found the problem. It had nothing to do with sed... sorry for that :o
5,767
Posted By tipi
I run in bash on Mac OSX... When I type...
I run in bash on Mac OSX...

When I type /bin/bash -x myscript on the prompt, I find about sed (exactly) :

sed -i_temp /WORD/s/10/12/g FILE

is this ok?
5,767
Posted By tipi
Are the last " and ' to be interchanged? Because...
Are the last " and ' to be interchanged? Because I have an open quote error...
5,767
Posted By tipi
My script is really huge so, right after the sed...
My script is really huge so, right after the sed line, I added

echo "before+increment=$[$before+$increment]" >> REPORTFILE
echo "Wrote : `grep WORD FILE`" >> REPORTFILE

When I look in the...
5,767
Posted By tipi
I forgot to say that max, before and increment...
I forgot to say that max, before and increment are in fact arrays. So, when I call, $max, $increment, or $before, I call the element [0] of these arrays.

Maybe this can be the source of the...
5,767
Posted By tipi
Problem with sed (search/replace)
Hi,

In a file FILE, the following lines appear :

WORD 8 8 8
ANOTHERWORD blabla
...


Directly in the prompt, if I type

$sed '/WORD/s/8/10/g' FILE


it replace the 8's by 10's in...
7,553
Posted By tipi
Thank you for your answer, really appreciated! ...
Thank you for your answer, really appreciated!


EDIT: I had to use [0-9\.\-].* instead of [0-9\.].* to grep also negative values...
Showing results 1 to 25 of 33

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