Search Results

Search: Posts Made By: LMHmedchem
2,312
Posted By LMHmedchem
Thanks for this, it makes the code much more...
Thanks for this, it makes the code much more usable since I can call it in a function instead of having to hard code the find line for each instance.

The number of shared memory pages could...
2,312
Posted By LMHmedchem
Script using awk to find and replace a line, how to ignore comment lines
Hello,

I have some code that works more or less. This is called by a make file to adjust some hard-coded definitions in the src code. The script generated some values by looking at some of the src...
443
Posted By LMHmedchem
I temporarily removed the spaces from both the...
I temporarily removed the spaces from both the test input files and the shell code to eliminate the space as a possible source of problems. I try to avoid having spaces within a single field of a...
443
Posted By LMHmedchem
Thank you for the reply but I don't see in the...
Thank you for the reply but I don't see in the above how my stats will be found in the huge stats output file when there is no notation of how to find what I am looking for. The stats I need are the...
443
Posted By LMHmedchem
Dozens of these files are generated and I need to...
Dozens of these files are generated and I need to pull out some of the statistics and put them into a form where I can look at all of the results in one file.

There will probably be a header row...
443
Posted By LMHmedchem
Pass an array to awk to sequentially look for a list of items in a file
Hello,

I need to collect some statistical results from a series of files that are being generated by other software. The files are tab delimited. There are 4 different sets of statistics in each...
522
Posted By LMHmedchem
These scripts have always been run by double...
These scripts have always been run by double clicking on a launcher, shortcut, or alias. Command line arguments like sudo -i scriptname can generally be executed from a launcher or shortcut, but I...
522
Posted By LMHmedchem
This is mostly an exercise in ways to run a...
This is mostly an exercise in ways to run a script with root privileges without a user needing to open a terminal, navigate to a directory, and either call the script with sudo or su root from...
522
Posted By LMHmedchem
Thank you for taking the time to put together...
Thank you for taking the time to put together this informative post. I'm sure that others will read it as well.


Some of my issue was how to go about running from the admin account. The account I...
522
Posted By LMHmedchem
Issue with shutdown command in script (MacOS High Sierra)
Hello,

I have a backup script that runs an rsync backup to an external drive. I use the script frequently on Windows and Linux and have installed it on a Mac. The script has an option to run ...
252
Posted By LMHmedchem
for echo $0, ${0%/*} I get, ...
for echo $0, ${0%/*} I get,
/Volumes/external_backup/00_i7-8600k_z370_backup/rsync_log/archive_logs_and_clear, /Volumes/external_backup/00_i7-8600k_z370_backup/rsync_log

I also tried echo...
252
Posted By LMHmedchem
Issue with pwd for script run by double click on script (MacOS High SIerra)
Hello,

I have the following script that just archives and clears some log files.

#!/bin/bash

# script: archive_logs_and_clear
# add date to logfile names and copy archive directory
#...
521
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...
521
Posted By LMHmedchem
Here is the output, My-iMac:rsync_backup...
Here is the output,
My-iMac:rsync_backup my_user$ ls -l
total 392
-rwxrwxrwx@ 1 my_user staff 88056 Mar 5 20:22 data_backup_icon.png
-rwxrwxrwx@ 1 my_user staff 102078 Mar 5 20:24...
521
Posted By LMHmedchem
This is the same process I used to create the...
This is the same process I used to create the alias (on MacOS 10.13.6, a bit behind yours).


It was not creating the alias that required me to run the script. When I double click on my alias, the...
521
Posted By LMHmedchem
In windows, I perform, Send to > Desktop (create...
In windows, I perform, Send to > Desktop (create shortcut) on the script file, which lives in /cygwin/usr/local/bin. I then modify the properties of the shortcut to,
Target: C:\cygwin\bin\sh.exe...
521
Posted By LMHmedchem
Terminal running bash/rsync script does not close with exit (MacOS High SIerra)
Hello,

I am running a bash script to do an rsync back on a computer running MacOS High Sierra. This is the script I am using,
#!/bin/bash

# main backup location, trailing slash included...
579
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...
515
Posted By LMHmedchem
Thank you for the solution. I have not seen that...
Thank you for the solution. I have not seen that syntax to supply a default argument. I have always just tested the value of the argument and set a value if there isn't one. Your suggestion is much...
515
Posted By LMHmedchem
Thanks, this board is always a great help. ...
Thanks, this board is always a great help.

For data like,
index name col_1 col_2 col_3 col_4 col_5
1 name_1 6.55903 0 0 0 3.44097
2 name_2 6.73342 0 4.45826 0 5.80832...
515
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...
515
Posted By LMHmedchem
Sorry, I am a bit tired myself. This is a...
Sorry, I am a bit tired myself.

This is a some input. There could be up to 100 cols or so in theory.

1 1.83958 0.0 0.0 0.0 -0.330313
2 0.450996 0.112848 0.0 0.0 0.136161...
515
Posted By LMHmedchem
Bash script to print the smallest floating point number in a row that is not 0
Hello,

I have often found bash to be difficult when it comes to floating point numbers. I have data with rows of tab delimited floating point numbers. I need to find the smallest number in each...
391
Posted By LMHmedchem
Script to record max memory usage of program
Hello,

I am working on an application that uses allot of memory depending on the input. I am also working on more than one processing algorithm.

The program has a long processing time (hours)...
722
Posted By LMHmedchem
Your script works in part. In the test file there...
Your script works in part. In the test file there are two sets of duplicate strings with three instances each,(1R)-1,2,3,3-tetraamino-2-propen-1-ol
(1R)-1,2,3,3-tetraamino-2-propen-1-ol...
Showing results 1 to 25 of 320

 

Featured Tech Videos

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