Results 1 to 3 of 3

Thread: Recovering a string in bash

  1. #1
    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

  2. #2
    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.

  3. #3
    Join Date
    Jan 2009
    Posts
    34

    Re: Recovering a string in bash

    Super, thank you.

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,671,719.55652 seconds with 16 queries