Search Results

Search: Posts Made By: Camrikron
1,667
Posted By Camrikron
@ahamed101 and Scrutinizer Thanks for the...
@ahamed101 and Scrutinizer

Thanks for the help guys. They both worked. Sorry for the silly mistakes, bash scripting and programming in general is rather new to me.
1,667
Posted By Camrikron
Yes. It works perfectly. Yes. I'm trying to...
Yes. It works perfectly.

Yes. I'm trying to search for all users who have a first name matching the input and display the details of the matching users.
1,667
Posted By Camrikron
I'm using ElementaryOS. Here's my code: ...
I'm using ElementaryOS. Here's my code:

#!/bin/bash
echo -n "Please enter a name:"
read input
echo `grep -w "$input" list.txt | awk `

BEGIN{ fmt="%20s%20s\n" }
function prt()
...
1,667
Posted By Camrikron
Thanks for the help, but I still have a minor...
Thanks for the help, but I still have a minor problem.The output is displayed on a single line.

First Name: John Last Name: Shepherd Phone Number: 770-767-4040 Country: U.S.A State: New York First...
1,667
Posted By Camrikron
How do I split a single-line input into five lines?
Example input:

John:Shepherd:770-767-4040:U.S.A:New York
Mo Jo:Jo Jo: 666-666-6666:U.S.A:Townsville


Expected Output:

First Name: John
Last Name: Shepherd
Phone Number: 770-767-4040...
Showing results 1 to 5 of 5

 

Featured Tech Videos

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