![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | 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. |
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 05:57 AM |
| Read words from file and create new file using K-shell. | bsrajirs | Shell Programming and Scripting | 4 | 06-01-2007 12: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 12:00 PM |
| Listing words from a file on a Separate Line | Astudent | UNIX for Dummies Questions & Answers | 2 | 03-14-2001 06:44 PM |
![]() |
|
|
LinkBack | 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 |
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|