![]() |
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 |
| please help immediately | infyanurag | Linux | 4 | 11-02-2007 10:06 AM |
| I need help immediately. Please help me | Sheethal | UNIX for Dummies Questions & Answers | 4 | 07-26-2007 06:11 AM |
| UIDs being overwritten immediately | xsys2000 | AIX | 2 | 05-08-2007 01:00 PM |
| Volcheck does not respond | nikk | UNIX for Advanced & Expert Users | 2 | 01-10-2005 05:08 AM |
| Need a Shell Program immediately | praji | Shell Programming and Scripting | 4 | 01-22-2002 04:09 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I have a file say x and i need to update with some values in it, and check te output. I need the commands to edit the file, save the file , run the file and how to insert the text and delete the text in the file in bash(bourne shell). Please give me these commands. that shud help me.
thanks |
|
||||
|
Quote:
file name is x-- 1.. vi x --> file is open in commad mode. 2.. for navigation in vi use these commands- a. h->to move left b. j->to move down c. k-> to move up d. l-> to go right 3.. To write something in vi you have to press i or a to put u in insert mode or append mode.write something in file. 4.. press x to delete a word,dd to delete a line,r to replace a word. 5.. see man vi ->there are so m any commands to do editing and navigation. 6.. To save press escape :wq ->it will save and exit. escape :w ->only save escape :q quit escape :q! ->quit without save. Thanks, Namish |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|