Search Results

Search: Posts Made By: marcozd
5,829
Posted By marcozd
That works. Although there is about a 10 second...
That works. Although there is about a 10 second pause before the script pops up the menu.

Thanks very much!



---------- Post updated at 02:11 PM ---------- Previous update was at 02:00 PM...
5,829
Posted By marcozd
Interactive script to give user option of what text to add
Hello all,

I have created a script that will remove the first two lines of one text file (body.txt) and then add the text from a different text file (header.txt) directly to the beginning of the...
1,931
Posted By marcozd
use rsync to update my music server from my windows notebook
Hello all,

I am fairly new to unix/linux. I am using Ubuntu 10.10 as a server.

I use a laptop that is Windows based (windows 7 ultimate) and I store my music library on that machine.

I was...
12,202
Posted By marcozd
Yes - I would need it as a bash script. Thanks...
Yes - I would need it as a bash script. Thanks for your help. I will let you know how it goes.

---------- Post updated at 03:40 PM ---------- Previous update was at 03:36 PM ----------


...
12,202
Posted By marcozd
Yes thanks. I realize that.:o But I have more...
Yes thanks. I realize that.:o But I have more than one output file so I don't understand why there is a part on my example output file within your suggestion.
12,202
Posted By marcozd
Hi Thanks very much for your reply but it...
Hi

Thanks very much for your reply but it doesn't seem to work for me.

Nothing happens when I type in this line of code. The sed version doesn't do anything either.

Thanks though
...
12,202
Posted By marcozd
uname -a gives: Linux 2.6.18-194.21.1.e15...
uname -a gives:

Linux 2.6.18-194.21.1.e15 x86_64 GNU/LINUX
12,202
Posted By marcozd
Extract a block of text??
Hello all,

I have a large output file from which I would like to extract a single block of text.

An example block of text is shown below:

***** EQUILIBRIUM GEOMETRY LOCATED *****
...
6,085
Posted By marcozd
I don't know if I am doing something wrong, but...
I don't know if I am doing something wrong, but it doesn't work on my end.

Any suggestions to try and log what is going wrong?

---------- Post updated at 07:57 AM ---------- Previous update was...
6,085
Posted By marcozd
Here is the output from "uname -a": Linux...
Here is the output from "uname -a":

Linux 2.6.18-194.11.4.e15

---------- Post updated at 02:26 PM ---------- Previous update was at 02:24 PM ----------

I want to remove all the frames that...
6,085
Posted By marcozd
Clarification and thanks
OK.

Sorry - I was unclear in my intial post.

I meant to remove 2,4,6,8.... and then output this as only file. This essentially cuts the total number of frames by half.

Another option would...
6,085
Posted By marcozd
Thanks!
This works exactly as you said, but is there a way to make it print blocks 1,3,5, 7 and 1,4,7,9 etc..?



---------- Post updated at 01:36 PM ---------- Previous update was at 01:29 PM ----------...
6,085
Posted By marcozd
Remove a block of Text at regular intervals
Hello all,

I have a text files that consists of blocks of text. Each block of text represents a set of Cartesian coordinates for a molecule. Each block of text starts with a line that has a only...
3,585
Posted By marcozd
Hey - thanks very much - this worked but I had to...
Hey - thanks very much - this worked but I had to change it slightly:

First, my system doesn't have nawk (i don't know why so I changed it to "awk" instead).

I also had to add a space in front...
3,585
Posted By marcozd
Append text from one file to another based on a search from the end of a document
Hi all,

I have output files that are all text files with various different extensions.

So, if I submit the input file "job_name.inp", when it finishes I get an output file "job_name.dat". A ...
7,334
Posted By marcozd
Hey. SOrry for the late resposnse. I did...
Hey.

SOrry for the late resposnse. I did indeed pass the variable when I executed the script.

I am calling it "vib.sh"

It is only a problem with the variable though I don't know why. If I...
7,334
Posted By marcozd
OK. I tried to run it an d it gave me this...
OK. I tried to run it an d it gave me this error. I realize you may not be able to help with this, but I am going to try anyway! It is so close!

I get:

awk: cmd. line:1 fatal: cannot open...
7,334
Posted By marcozd
OK. You are right - I think I can figure out...
OK.

You are right - I think I can figure out the paths and file names.

However, is there a way to make this a stand alone script - that is, I want to be able to run it when necessary as some...
7,334
Posted By marcozd
Where do I put this? Do I need to make a new...
Where do I put this? Do I need to make a new script or simply replace the last line?

I am a bit confused as the "job_name.rst" file is always located in /scratch/mzd/gamess-scratch/. Don't I...
7,334
Posted By marcozd
When I enter that command I get all of the text...
When I enter that command I get all of the text between the $VIB and it has added $END at the end!:b:

I then used the second command you suggested (without the "^" character and it also works...
7,334
Posted By marcozd
It shows " $VIB"
It shows " $VIB"
7,334
Posted By marcozd
I just checked two or three different .rst files...
I just checked two or three different .rst files and there is always a line containing "$VIB".

It is always on the 3rd line of the file, and it is always preceded by 1 space. It is followed by...
7,334
Posted By marcozd
Hey there. Thanks so much for replying so...
Hey there. Thanks so much for replying so quickly. But I get the same thing, although it seemed to pause for a second before it showed the "$END" in the terminal window.

---------- Post updated...
7,334
Posted By marcozd
I am sorry, but I am not very good at this. ...
I am sorry, but I am not very good at this.

What is your first suggestion supposed to do? What changes am I looking for?

I typed in, and all it did was print "$END" below my command line.
7,334
Posted By marcozd
Script to append text from one file into another
Hello all.

I was wondering if it possible to write a bash script that would do the following:

I perform molecular modelling calculations and the output files are all text files with various...
Showing results 1 to 25 of 37

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