Search Results

Search: Posts Made By: SimonWhite
24,350
Posted By SimonWhite
Check
Is the second example:



If so, the output is still:

ObsID = 914
Bin size = 2000 100 500
ObsID = 3188
Bin size = 2000 100 500
ObsID = 3189
Bin size = 2000 100 500
ObsID = )
Bin...
24,350
Posted By SimonWhite
New method
Thanks for the effort. I've tried your code but the output is now this:

ObsID = 914
Bin size = 2000 100 500
ObsID = 3188
Bin size = 2000 100 500
ObsID = 3189
Bin size = 2000 100 500...
24,350
Posted By SimonWhite
Thanks for the reply. I'll copy and paste my...
Thanks for the reply. I'll copy and paste my code. I tried to make it simpler for the initial post but I think this might make it clearer:

file.txt

Group_ID: A1991
OBS_ID: 914 3188 3189...
24,350
Posted By SimonWhite
foreach command
Hi,

Thanks for your reply. The code does what I require but I will be changing file.txt with different values for var1 and var2. Also, instead of

echo "var1 = " $a
echo "var2 = " $b

I will...
24,350
Posted By SimonWhite
Using foreach with two lists
Hi everybody,

I'm trying to use a foreach command with two lists. The file.txt looks like this:
var1: 100 200 300
var2: 3 6 9

I'm trying to use a foreach command to associate the two...
4,344
Posted By SimonWhite
Great, thanks for your help. It seems to have...
Great, thanks for your help. It seems to have worked. I needed to use chsh -s /bin/bash :b:

Any ideas with 2 or 3?
4,344
Posted By SimonWhite
Simple Problems to Solve!
Hi,

I'm pretty poor at using UNIX but I'm learning. Please help me with these simple problems! Much appreciated!

1. I've changed my shell from bash to csh but I prefer bash. How do I change...
Showing results 1 to 7 of 7

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