|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
hi,
I am a begginer in unix and i want to know how to open a file and read it and separate the numbers & words and storing it in separate files, Using shell scripting. Please help me out for this. Regards S.Kamakshi |
| Sponsored Links | ||
|
|
|
|||
|
Is this a homework question? If it isn't what is the "real world problem" of your question and what have you done to attempt to solve this problem yourself?
Post your sample script, and we'll see how we can assist. Regards |
|
|||
|
Hello,
Please correct me if i am wrong, #! /bin/bash FILE1="$1" FILE2="$2" FILE3="$3" sed 's/[0-9]//g' $FILE1 > $FILE2 sed 's/[a-zA-Z]//g' $FILE1 > $FILE3 This is the script where filenames are fetched from command prompt. ![]() Regards S.Kamakshi |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Read and store each line of a file to a variable | seijihiko | UNIX for Dummies Questions & Answers | 4 | 06-17-2007 06:57 AM |
| Read words from file and create new file using K-shell. | bsrajirs | Shell Programming and Scripting | 4 | 06-01-2007 01:15 PM |
| how to read each letter from file and store it in variable. | rajan_ka1 | UNIX for Advanced & Expert Users | 7 | 03-06-2006 09:03 PM |
| store output to a file and read from it | afadaghi | Shell Programming and Scripting | 2 | 10-04-2005 01:00 PM |
| Listing words from a file on a Separate Line | Astudent | UNIX for Dummies Questions & Answers | 2 | 03-14-2001 06:44 PM |