Search Results

Search: Posts Made By: yonkers062986
1,958
Posted By yonkers062986
Help with perl subroutines
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:

This...
1,028
Posted By yonkers062986
Still having the same problem.
Still having the same problem.
1,028
Posted By yonkers062986
Problem with formatting text with awk
I want the following output:


User ID: 4071
Last Name: Gills
First Name: Roberts
Address: Maple Dr.
Phone#: 702346789


from this command:

grep "$uId" database.txt | awk...
972
Posted By yonkers062986
Thanks. I will try it on my VM. ----------...
Thanks. I will try it on my VM.

---------- Post updated at 12:46 PM ---------- Previous update was at 04:55 AM ----------

I should have stated this before. I want the user to enter a User Id...
2,161
Posted By yonkers062986
sed substitution
How can you use sed with a line of code that reads:

67899:Bill:Williams:Maple Dr.:45908600

Let us say we want to replace Maple Dr. with Oak St.
4,342
Posted By yonkers062986
Sounds good. Calling that variable would simply...
Sounds good. Calling that variable would simply require a $USER_ID correct?
4,342
Posted By yonkers062986
Generate unique user id with each addition of data
As I add new data to database.txt I want to generate a unqiue User Id. This is my current solution.

echo $RANDOM:$lname:$fname >> database.txt

But I seem to have problems when I try and use...
972
Posted By yonkers062986
Piping from grep command
The code looks like it would filter a text file with a single line of entry.
But what Im trying to do is extract one line of code via its User ID which is the first column of data and format it to...
972
Posted By yonkers062986
Help with Sed
I am trying to format the following text:
4873:Ken:Williams:Maple Dr.:(845)674-3849

to read like so
User ID: 4873
Last Name: Williams
First Name: Ken
Address: Maple Dr.
Phone #: ...
Showing results 1 to 9 of 9

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