Search Results

Search: Posts Made By: shaner
3,404
Posted By shaner
Dear Don Cragun, Thanks so much! This works...
Dear Don Cragun,

Thanks so much! This works great and is exactly what I was trying to do. Sorry again for all the miscommunication on my part, I really appreciate the help!
3,404
Posted By shaner
Like I said I'm new to this and I tried to...
Like I said I'm new to this and I tried to explain it the best I could. I'll try to give the full run down. I have a 46 column data input file that looks like this:
3701 09 39 51.42 85 22 48.02 ...
3,404
Posted By shaner
Can you indicate how this solves my problem?...
Can you indicate how this solves my problem? Everything seems to be working fine with my script except for the print command that doesn't want to print the columns that I give it...
3,404
Posted By shaner
You mentioned something like this before but I'm...
You mentioned something like this before but I'm not sure where in my code this belongs. What is the "..." in the while? Sorry for apparently being an idiot.
3,404
Posted By shaner
Ok data to be read is as follows: 3701 09 39...
Ok data to be read is as follows:
3701 09 39 51.42 85 22 48.02 15.544
3800 09 35 45.07 85 14 19.24 15.908
3825 09 44 39.06 85 12 04.66 16.113
3829 09 39 52.06 85 11 44.99 16.252
3935 10 16...
3,404
Posted By shaner
Ok my apologies for not being clear enough. I was...
Ok my apologies for not being clear enough. I was trying to get right at at but here is the whole code.

# Get input file from user
echo "Provide name of master file for use"
read infile
sed...
3,404
Posted By shaner
Could you elaborate on this? As I mentioned I'm...
Could you elaborate on this? As I mentioned I'm new to shell scripting so I'm not exactly sure what this accomplishes. I did something like
while read COL1 COL2 COL3
do
echo "cool"
done <...
3,404
Posted By shaner
I tried this and it just prints whatever value c...
I tried this and it just prints whatever value c is through the loop, so the columns end up as 1 2 3 etc. So I just need to make it recognize that I wanted the cth column of the data file that I'm...
3,404
Posted By shaner
Print arguments using array elements not working?
Hey guys,

I'm new to shell scripting and I'm trying to write a script that takes user input and copies the specified columns from a data file to a new one. In order to account for the possibility...
Showing results 1 to 9 of 9

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