Search Results

Search: Posts Made By: Sagramor
4,624
Posted By Sagramor
the one Frans was referring to :)
the one Frans was referring to :)
4,624
Posted By Sagramor
that code seems to terminate after I enter in the...
that code seems to terminate after I enter in the string that I want to search
4,624
Posted By Sagramor
sorry, I should've clarified with an example ...
sorry, I should've clarified with an example

so lets say theres a few names in a list

whether the user enters it eter, Pete, ter

it should output Peter as a match. A partial or full match...
4,624
Posted By Sagramor
that particular part is supposed to check if the...
that particular part is supposed to check if the user input equals or partially equals $Name1
4,624
Posted By Sagramor
ahh okay I understand now! I ran the script...
ahh okay I understand now!

I ran the script and got this
./test: line 5: conditional binary operator expected
./test: line 5: syntax error near `=~"Name1"'
./test: line 5: ` [[ "$S"...
4,624
Posted By Sagramor
I did paste that in a dummy script and renamed it...
I did paste that in a dummy script and renamed it accordingly but it didnt output anything.

The script did run to the user input stage and then concluded. I am trying to understand your code as...
4,624
Posted By Sagramor
I would want to search a partial name within...
I would want to search a partial name within columns 12-26


So what Ive decide to do is make a while loop, that will go line by line in the database file, and then spits out the first(col 12-26)...
4,624
Posted By Sagramor
So lets say I have a file that holds this...
So lets say I have a file that holds this information

Engineering Karen 58 John St. Peters
IT Roch 44 Main Ave. Gardener
IT John 89 Trist St ...
4,624
Posted By Sagramor
Question about partial searching
Hi there!

New user to UNIX scripting. Had a question I was stuck on.

I've been trying to make a script(for a larger project) that would search a file(lets say playerlist).

the file is...
Showing results 1 to 9 of 9

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