|
Home > Archive > Unix Shell > March 2004 > shell script
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Hai can anyone help
i have a shell script accept the list of personal information so...
how to cut and paste the data for example i want the name and the id
to be display what is the script to cut the particular detail and
display it on the monitor.
| |
| Alan Connor 2004-03-25, 4:42 am |
|
On 25 Mar 2004 00:19:24 -0800, titi <wwwtay@yahoo.com> wrote:
>
>
> Hai can anyone help
>
> i have a shell script accept the list of personal information so...
> how to cut and paste the data for example i want the name and the id
> to be display what is the script to cut the particular detail and
> display it on the monitor.
There are lots of ways to do that. We need to know what shell you are using and
to see an example of the text you want to extract and display. Several examples
would probably be a good idea.
AC
| |
| Ed Morton 2004-03-25, 8:43 am |
|
titi wrote:
> Hai can anyone help
>
> i have a shell script accept the list of personal information so...
> how to cut and paste the data for example i want the name and the id
> to be display what is the script to cut the particular detail and
> display it on the monitor.
If the name and id are in fields 7 and 10, then use "cut -f7,10". If you
want any more, you'll need to post your code, sample input, and desired
output.
Ed.
|
|
|
|
|