LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2010, 09:49 AM   #1
poonamkhirolia
LQ Newbie
 
Registered: Dec 2010
Posts: 8

Rep: Reputation: 0
scripting


Write a regular expression (or sed script) to replace all occurrences of the letter f, followed by any number of characters, followed by the letter a, followed by one or more numeric characters, followed by the letter n, and replace whats found with the string UNIX.
 
Old 12-17-2010, 10:02 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: pclinuxos slackware64 tails kali
Posts: 3,372
Blog Entries: 33

Rep: Reputation: 217Reputation: 217Reputation: 217
http://www.ibm.com/developerworks/vi...for+a+new+user
 
Old 12-17-2010, 10:08 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Smells like homework to me -- like the OP's other threads, all posted in the last 30 minutes.
 
Old 12-17-2010, 10:32 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,610

Rep: Reputation: 4063Reputation: 4063Reputation: 4063Reputation: 4063Reputation: 4063Reputation: 4063Reputation: 4063Reputation: 4063Reputation: 4063Reputation: 4063Reputation: 4063
Quote:
Originally Posted by poonamkhirolia View Post
Write a regular expression (or sed script) to replace all occurrences of the letter f, followed by any number of characters, followed by the letter a, followed by one or more numeric characters, followed by the letter n, and replace whats found with the string UNIX.
Do your own homework....if you don't want to learn, then drop out of school. Asking others to do your work for you is not only lazy, but you gain no knowledge.
 
Old 12-17-2010, 11:36 AM   #5
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,608

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Quote:
Originally Posted by poonamkhirolia View Post
Write a regular expression (or sed script) to replace all occurrences of the letter f, followed by any number of characters, followed by the letter a, followed by one or more numeric characters, followed by the letter n, and replace whats found with the string UNIX.
Here is a tutorial on RegEx:
http://www.regular-expressions.info/tutorial.html

And there are a lot of more out there. Here is how you find them
Step 1.) type 'regular expressions tutorial' in Google.
Step 2.) brace yourself for an overwhelming amount of results.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
scripting help DD554 Linux - General 2 06-06-2010 11:29 AM
Firefox Scripting Add-on (Scripting HTML / Javascript inside Firefox) linuxbeatswindows Programming 1 09-18-2009 10:09 PM
scripting help akhil.mud Programming 4 12-14-2007 06:28 AM
Scripting Help chefsride Linux - Newbie 3 11-06-2006 01:52 PM
teaching shell scripting: cool scripting examples? fax8 Linux - General 1 04-20-2006 04:29 AM


All times are GMT -5. The time now is 12:40 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration