Search Results

Search: Posts Made By: da2357
3,945
Posted By da2357
Eureka, I found it! #!/bin/bash ...
Eureka, I found it!

#!/bin/bash
USERLIST="/Users/johndoe/.bin/xBackup_users"
SRCHFOR="W8735UL8Z5V"
#
USERNAME=`awk -F "," '/^'"$SRCHFOR"'/ {print $2}' $USERLIST`
PASSWORD=`awk -F ","...
3,945
Posted By da2357
Great (and thanks), this got me 99% there. Here's...
Great (and thanks), this got me 99% there. Here's a snippet of what I have, using your idea:

#!/bin/bash
USERLIST="/Users/johndoe/.bin/xBackup_users"
SRCHFOR="W8735UL8Z5V"
#
USERNAME=`awk -F...
3,945
Posted By da2357
Search flat file and return 3 fields
I need to be able to search a flat file (comma-separated values) for a specific value and then return the following 2 fields into variables. Here's a sample flat file:

SN,Account,IPaddress...
Showing results 1 to 3 of 3

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