![]() |
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 |
| update a file by key | ynixon | Shell Programming and Scripting | 25 | 03-29-2007 09:09 AM |
| How to update a single row in a file with sed | brendanf | Shell Programming and Scripting | 6 | 08-30-2006 07:44 PM |
| File update date | amne | UNIX for Dummies Questions & Answers | 2 | 05-31-2005 08:09 AM |
| update executable file | anent | High Level Programming | 3 | 10-19-2001 03:40 PM |
| Batch file update | cfoxwell | UNIX for Dummies Questions & Answers | 4 | 10-04-2001 04:50 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
You want to update a file means what you exactly want.
Do you want to change the timestamp of the file or contents from the file ? if contents then obviously us vi editor and make changes. if you want to change timestamp then use touch command. check man touch for the same. |
|
||||
|
Quote:
1) Is your file a binary file, or ASCII file? 2) What identifies a particular account or entry? e.g. account number 3) What is the record structure for an account or entry? In general terms you may want to consider using the sed or awk command. Read the contents of your file from standard input. The sed or awk commands will allow you to subsitute some of the input stream as you send it to standard output. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|