Search Results

Search: Posts Made By: ronaldxs
18,064
Posted By ronaldxs
* bash #!/bin/bash while read line; do ...
* bash

#!/bin/bash
while read line; do
a=($line)
sum=0
for i in "${a[@]}"; do
sum=$((sum+$i))
done
echo "= $sum"
done <input.txt
* awk
awk '{sum=0; for(i=1; i<=NF; i++) sum += $i; print...
795
Posted By ronaldxs
Feedback on "withsome" open source project
I have been developing an open source UNIX project for a few years and am looking for feedback on whether further development of the "withsome" project is of interest to other programmers.

One...
2,391
Posted By ronaldxs
Just wondering if last printf END {printf ORS}...
Just wondering if last printf END {printf ORS} might not be slightly improved as END {printf QRS} to suppress empty line for empty input.
3,597
Posted By ronaldxs
I will post code for a more robust and...
I will post code for a more robust and sophisticated solution that should avoid slow down with size below. If you can depend on file1, the filter range file, being sorted with no overlaps than you...
1,320
Posted By ronaldxs
Another working solution might be to change mkdir...
Another working solution might be to change mkdir "$1" to env mkdir "$1"
4,705
Posted By ronaldxs
The IFS (input field separator) default includes...
The IFS (input field separator) default includes a space so even though "find" is pulling the right file name when the assignment happens to the variable "file" in your for loop the trailing spaces...
3,597
Posted By ronaldxs
It looks to me like your program can be fixed...
It looks to me like your program can be fixed with just small changes to one line. I get the same output as R. Singh

change
NR == FNR {min[$1]=$2; max[$1]=$3; Gene[$6]=$NF; next}to
NR == FNR...
Showing results 1 to 7 of 7

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