Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: LMHmedchem
8,466
Posted By LMHmedchem
This is probably just a copying error by me. I...
This is probably just a copying error by me. I also fixed the error noted by Scrutinizer. I added the || because some comments are two characters.

I have attached a .zip with test files. The...
Forum: Programming 01-29-2020
4,556
Posted By LMHmedchem
Thanks for the suggestion, I did fix this error...
Thanks for the suggestion, I did fix this error but it did not resolve the issue.

I decided to move the assignment of archdir to after the definitions of ${BDIR} and ${TESTDIR}.

Now the revised...
1,085
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...
1,271
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...
907
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...
614
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+...
747
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,...
7,651
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...
660
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...
397
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,532
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...
21,211
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,765
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,485
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,485
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 15 of 15

 

Featured Tech Videos

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