Search Results

Search: Posts Made By: ahamed101
1,665
Posted By ahamed101
Use -e with the echo in the above code as in echo...
Use -e with the echo in the above code as in echo -e "$output"

Or another approach

#!/bin/bash

read -p "Please enter a name : " name
awk -F":" '
BEGIN{ fmt="%20s%20s\n" }
function...
1,665
Posted By ahamed101
This is not right. Did you try the code which I...
This is not right. Did you try the code which I gave to see if it works for you without integrating it to your script?
I think what you are trying to do here is, get a input and display the details...
1,665
Posted By ahamed101
Well, it works for me. Did you omit the new line...
Well, it works for me. Did you omit the new line in the code? Are you using the exact code I have given? which is your OS?

root@maximus:/tmp# awk '
BEGIN{ fmt="%20s%20s\n" }
function prt()...
1,665
Posted By ahamed101
awk ' BEGIN{ fmt="%20s%20s\n" } function...
awk '
BEGIN{ fmt="%20s%20s\n" }
function prt()
{
printf(fmt, "First Name:", data[1])
printf(fmt, "Last Name:", data[2])
printf(fmt, "Phone Number:", data[3])
printf(fmt,...
Showing results 1 to 4 of 4

 

Featured Tech Videos

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