Search Results

Search: Posts Made By: jkarren
2,576
Posted By jkarren
That did the trick! I modified it to fit of...
That did the trick! I modified it to fit of course, but that did the trick. Thank you very much!

I also removed
set ${ID}
per Nitrodist's suggestion. I don't think it was really doing...
2,576
Posted By jkarren
Sure, the entire contents of the CSV are below: ...
Sure, the entire contents of the CSV are below:

...
2,576
Posted By jkarren
Sorry. I thought it might be overkill. Script...
Sorry. I thought it might be overkill. Script is below (edited out a few things like passwords).


FILE=/path/to/infile
cat ${FILE} | sed 's/,/ /g' | while read ID
do
set${ID}

bteq <<-EOF...
2,576
Posted By jkarren
Set variables from file, then loop
Hello,

I am very, very new to shell scripting, but what I'm attempting to do is read in a list of user ID's to create on a database system from a CSV flat file, and for each entry run the "create...
Showing results 1 to 4 of 4

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