Search Results

Search: Posts Made By: cmccabe
1,870
Posted By cmccabe
Thank you for your help :), works perfect.
Thank you for your help :), works perfect.
1,870
Posted By cmccabe
I only printed the array to see what values were...
I only printed the array to see what values were there and didn't change IFS (I don't think anyway). Thank you :).
1,870
Posted By cmccabe
Hopefully, this is better and helps: # Set...
Hopefully, this is better and helps:

# Set run array
array=( $(awk -F '\n' -v RS="" -v ref="$s5" '$0 ~ ref {d=split($0, val, " "); for(i=2;i<d;i+=2) printf "%s ",val[i]; printf "\n"}' list | tr...
1,870
Posted By cmccabe
Hopefully this is better. Thank you :). ...
Hopefully this is better. Thank you :).


├──/path/to/
│ ├── ${ID}* --- unique ${ID}* represents random text ---
│ │ └── /this/ID/folder
│ ├── ${ID}* --- unique ${ID}* represents...
1,870
Posted By cmccabe
Directory structure: ...
Directory structure:

/path/to/${ID}*/path/to/folder (always this format)


The ${ID} will always be unique and have some random text after it that the * is used for. At the last folder in the...
1,870
Posted By cmccabe
Yes i did but then i had to run and will post the...
Yes i did but then i had to run and will post the output with code as soon as i can. Thank you :).
1,870
Posted By cmccabe
The contents of array are and yes I can go to...
The contents of array are and yes I can go to each directory manually, so the array is the issue? Thank you :).

declare -p array='([0]="ID1" [1]="ID2")'
1,870
Posted By cmccabe
Each value in ID is unique and the wildcard is...
Each value in ID is unique and the wildcard is for the additional text after each unique value. Thank You :).
1,870
Posted By cmccabe
So if I understand and am reading the error...
So if I understand and am reading the error correctly the * is not expanding on the remote machine? I think this because tee looks good but the terminal doesn't like the *. I am testing this on...
1,870
Posted By cmccabe
I tried it two ways both resulting in file or...
I tried it two ways both resulting in file or directory not found, but I can manually ssh to them. This is not the full code but I hope it's enough as I don't want to post code that is not needed....
1,870
Posted By cmccabe
With the echo the output is correct, but with...
With the echo the output is correct, but with sshpass added I get the file not foung though I can manually finnd the directory but the .png that is there is cn_results and when it is transferred by...
1,870
Posted By cmccabe
Bash to append array value to file before copying
The bash stores each uniqueid in an array and then passes them to %q to get the unique path. That seems to work what I am having trouble with is renaming each .png with the unique value in %q. I...
Showing results 1 to 12 of 12

 

Featured Tech Videos

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