Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 30-01-2009
Member
 
Join Date: Jan 2009
Posts: 34
Recovering a string in bash

Hi,
I wish I could recover in bash author: I channel file: / var / cvs / project / dir / file author: I have an idea someone? I thought about sed but I can not make the regular expression to remove everything that is before author: me
Reply With Quote
  #2  
Old 30-01-2009
Member
 
Join Date: Dec 2008
Posts: 50
Re: Recovering a string in bash

more with simple cut :

Code:
  echo "file: / var / cvs / project / dir / file author: Me" | cut-d ''-f 3 --
Returns from any third field separated by spaces.
Reply With Quote
  #3  
Old 30-01-2009
Member
 
Join Date: Jan 2009
Posts: 34
Re: Recovering a string in bash

Super, thank you.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Recovering a string in bash"
Thread Thread Starter Forum Replies Last Post
How to create CGI script in bash? Mulan Software Development 5 01-09-2010 08:19 PM
Eval in bash shell Carnie Software Development 4 12-03-2010 09:52 PM
Create bash script for ftp teenQ Operating Systems 4 04-03-2010 07:37 PM
How to Manipulate String using PHP String Functions ComPaCt Software Development 3 21-09-2009 09:07 AM
Bash script if then else help Unix'EM Software Development 3 18-08-2009 06:34 PM


All times are GMT +5.5. The time now is 05:12 PM.