LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-09-2011, 03:29 PM   #1
herman_g
LQ Newbie
 
Registered: Oct 2011
Location: Miami,FL
Posts: 1

Rep: Reputation: Disabled
Angry script writing in fedora14


need help with step by step script writing with vim in fedora14, how to do it i have no idea just beginning, thanks for any help
 
Old 10-09-2011, 03:50 PM   #2
vorbote
Member
 
Registered: Aug 2009
Location: 2,625 m of paranoia above sea level
Distribution: Arch Linux, Debian GNU/Linux, Fedora, Void Linux, FreeBSD, OpenBSD and Win10
Posts: 77

Rep: Reputation: Disabled
Quote:
Originally Posted by herman_g View Post
need help with step by step script writing with vim in fedora14, how to do it i have no idea just beginning, thanks for any help
Not being snide or anything, but a quick search in Google turns up quite a lot of tutorials. To mention the first three interesting links to come up in a search:

http://researchweb.iiit.ac.in/~smr/data/advanced_vim_tutorial.pdf
http://www.ibm.com/developerworks/linux/library/l-vim-script-1/index.html
http://vim.wikia.com/wiki/Category:Scripting

As you notice, vim has a wiki!
 
Old 10-11-2011, 08:45 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
You explain what you want to do, but not where your problems lie. Is it how to use vim? How to learn scripting? What?

vorbote has already posted several links on using vim. See here for bash scripting:

http://mywiki.wooledge.org/BashGuide
http://www.linuxcommand.org/index.php
http://mywiki.wooledge.org/BashFAQ
http://mywiki.wooledge.org/BashPitfalls
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://www.tldp.org/LDP/abs/html/index.html
http://www.gnu.org/software/bash/manual/bashref.html
http://wiki.bash-hackers.org/start

You'll also get a lot more out of scripting if you learn how to use the major tools commonly used with it, sed, awk, and find, along with regular expressions, which all of these programs support.

Here are a few useful sed references.
http://www.grymoire.com/Unix/Sed.html
http://sed.sourceforge.net/sedfaq.html
http://sed.sourceforge.net/sed1line.txt

Here are a few useful awk references:
http://www.grymoire.com/Unix/Awk.html
http://www.gnu.org/software/gawk/man...ode/index.html
http://www.pement.org/awk/awk1line.txt
http://www.catonmat.net/blog/awk-one...ined-part-one/

Here are a couple of links about find:
http://mywiki.wooledge.org/UsingFind
http://www.grymoire.com/Unix/Find.html

A good regular expressions tutorial:
http://www.grymoire.com/Unix/Regular.html

Do note that the grymoire links were written with older Unix versions of the tools in mind, and that Linux generally uses the gnu versions, which offer additional features and occasional operational differences.

The wooledge site is one of the best I've found on scripting. Their BashGuide is an excellent primer on all the basic concepts.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help writing a script... linux_evangelist Linux - Newbie 7 11-15-2010 07:19 AM
Need help for writing Script vikrambhimbar Linux - Software 2 03-05-2006 04:28 AM
Need help writing a script wswartz Linux - Software 3 04-28-2004 03:35 PM
Writing a Script Nyc0n Linux - General 2 05-27-2002 07:21 PM
writing a Script spanky5125 Linux - Security 5 01-08-2002 09:22 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration