![]() |
|
|
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 |
| redirecting variable content to a file! | lloowen | Shell Programming and Scripting | 2 | 05-24-2008 05:30 PM |
| Redirecting <talk> output to a file | cej | Shell Programming and Scripting | 4 | 01-21-2008 03:26 PM |
| Redirecting to Error File | lorcan | UNIX for Advanced & Expert Users | 1 | 10-12-2007 02:07 AM |
| redirecting serial inputs to a file? | guilartec | Shell Programming and Scripting | 4 | 02-27-2006 11:30 PM |
| redirecting output to file in network | anent | UNIX for Advanced & Expert Users | 1 | 11-16-2001 06:51 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
redirecting a file
Hi,
I have a normal txt file which contains say 5 lines. in that i need to change few of the the parameters dynamically. for eg.. line 1..contains account line 2 contains date line 3 contains user .. .. .. i will be taking the input using read command and store it in variables account,date and user variables.. but now.. how will i capture that in the txt file.. Pls help. Thanks |
|
||||
|
redirecting
sorry .. i didnt mention one thing..
How to read from the file.. or how to store the contents of a file using script. i mean.. I have a file called total.txt and i want to take some data from the file to do some manipulations.. is this the right command.. a << total.txt |
|
||||
|
Quote:
Code:
a=$( sed -n "3,10 p" total.txt ) Retrieve text from third to tenth line. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|