Search Results

Search: Posts Made By: LMHmedchem
567
Posted By LMHmedchem
When I remove the extension, the file icon...
When I remove the extension, the file icon changes from the Atom text editor icon to the terminal icon. The script does work as expected now. I wonder if MacOS reads the first line of a file that...
592
Posted By LMHmedchem
Splitting a text file into smaller files with awk, how to create a different name for each new file
Hello,

I have some large text files that look like,
putrescine
Mrv1583 01041713302D

6 5 0 0 0 0 999 V2000
2.0928 -0.2063 0.0000 N 0 0 0 0 0 0 0...
545
Posted By LMHmedchem
Sorry, I was in a pretty bad accident last night...
Sorry, I was in a pretty bad accident last night and I just got back from the Hospital. I probably won't be able to respond more completely until tomorrow. I will answer your questions in my next...
481
Posted By LMHmedchem
In so far as I have tested this, it works and...
In so far as I have tested this, it works and gives the same output as my script.

Just to illustrate the difference between a working solution and a well formed solution, my script took 16+...
664
Posted By LMHmedchem
Supress java error output to shell
Hello,

I know this isn't exactly a shell script question but I'm not sure where else to post it.

I am running a java program out of a shell script. There are times when I get an error like,...
5,167
Posted By LMHmedchem
In the end, I did this based on the code posted...
In the end, I did this based on the code posted by Scrutinizer,

error_record=$(awk '{getline s<f} $0!=s{print; exit}' f=file2 file1)

It seems like it will work well enough and was the fastest...
573
Posted By LMHmedchem
Thanks very much for the suggestions. We just got...
Thanks very much for the suggestions. We just got 8 inches of snow and it has turned to rain. It's supposed to freeze again this afternoon so I have to go out and get rid of the snow. I will be back...
349
Posted By LMHmedchem
If you use a standard tool like rsync, you can...
If you use a standard tool like rsync, you can have it only backup files in the src directory that are new, meaning that were not there the last time the backup was run. If your "latest config back...
3,033
Posted By LMHmedchem
This is more or less always what I end up doing...
This is more or less always what I end up doing and I guess it is a reasonable way to proceed in most cases. I keep notes on what I have used for various situations, especially those methods that...
19,441
Posted By LMHmedchem
Thanks, that worked fine. Another quick...
Thanks, that worked fine.

Another quick question, is there an easy way to append something like "MC_" to every field on the first line?


fieldName1 fieldName2 fieldName3

MC_fieldName1...
Forum: Programming 12-08-2011
3,692
Posted By LMHmedchem
Am I making a correct assertion that the runtime...
Am I making a correct assertion that the runtime components of these languages (java, c#, python, etc) contain allot of assembler? What allows for allot of the interpretation in interpreted languages...
Forum: Programming 03-30-2011
6,286
Posted By LMHmedchem
Well I found it, :b: #ifdef RELEASEVERSION ...
Well I found it, :b:

#ifdef RELEASEVERSION
freopen( "/dev/null", "w", stdout);
freopen( "/dev/null", "w", stderr);
#endif
I didn't think that RELEASEVERSION was defined in the make, but...
Forum: Programming 03-29-2011
6,286
Posted By LMHmedchem
Thank you so much for your help so far. I just...
Thank you so much for your help so far. I just took some medicine and I need to lie down for a while, so I don't fall off my d**n chair. I will add the system ls line and post the output in a little...
Showing results 1 to 13 of 13

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