The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Shell Programming and Scripting
Vi *
Tags
shell scripts
Login to Discuss or Reply to this Discussion in Our Community
Thread Tools
Search this Thread
Top Forums
Shell Programming and Scripting
Vi *
#
1
07-14-2003
tullo
Registered User
14,
0
Join Date: Jul 2003
Last Activity: 1 July 2004, 11:52 AM EDT
Posts: 14
Thanks Given: 0
Thanked 0 Times in 0 Posts
Vi *
hi all,
i want read several programs with vi *pgm.
Can i start to read file from for exsample pgm 10?
ex.
1
2
3
4
5
6
7
8
9
10 i want start the vi *pgm HERE !!!
11
12
13
14
15
.
.
.
THANKS IN ADVANCE!!!
tullo
View Public Profile for tullo
Find all posts by tullo
#
2
07-14-2003
oombera
Registered User
804,
6
Join Date: Aug 2002
Last Activity: 3 October 2004, 6:07 PM EDT
Location: Cleveland, OH
Posts: 804
Thanks Given: 0
Thanked 6 Times in 5 Posts
You could use a loop...
Code
:
for FILE in `ls *pgm` do vi $FILE done
oombera
View Public Profile for oombera
Find all posts by oombera
#
3
07-14-2003
tullo
Registered User
14,
0
Join Date: Jul 2003
Last Activity: 1 July 2004, 11:52 AM EDT
Posts: 14
Thanks Given: 0
Thanked 0 Times in 0 Posts
from pgm10
hi,
ok, but to start from pgm 10?
tullo
View Public Profile for tullo
Find all posts by tullo
#
4
07-14-2003
oombera
Registered User
804,
6
Join Date: Aug 2002
Last Activity: 3 October 2004, 6:07 PM EDT
Location: Cleveland, OH
Posts: 804
Thanks Given: 0
Thanked 6 Times in 5 Posts
Now I think I know what you're asking.. you should read up on the man page for vi though...
Code
:
for FILE in `ls *pgm` do vi +10j $FILE done
If you want to have the file be read-only, use the -R option.
oombera
View Public Profile for oombera
Find all posts by oombera
Login or Register to Ask a Question
Previous Thread
|
Next Thread
Login or Register to Ask a Question
Member Badges and Information Modal
×