Results 1 to 3 of 3

Thread: Data extract among two characters

  1. #1
    BarnesHarris is offline Senior Member
    Join Date
    Dec 2009
    Posts
    213
    Rep Power
    3

    Default Data extract among two characters

    I want to extract data between two characters. For example if the input is abc efg hig - 99.4% (16337276 kB) used then I want to extract 99.4 from it. So please provide me any suggestions about it.

  2. #2
    HowardAllen is offline Senior Member
    Join Date
    Dec 2009
    Posts
    196
    Rep Power
    3

    Default

    cut -d'-' -f2 < myfile | cut -d'%' -f1 --- This command is used to extract between two characters. Also, GNU edition of awk, i.e. gawk, which is on many Linux distros, supports many field separators. This should solve your problem.

  3. #3
    MyersGray is offline Senior Member
    Join Date
    Dec 2009
    Posts
    197
    Rep Power
    3

    Default

    Thanks a lot for your reply. This command really works for me.

Similar Threads

  1. extract data from website
    By Scott Fleming in forum General Internet Terms
    Replies: 1
    Last Post: 04-12-2010, 12:05 PM
  2. Extract .Rar Files on a Mac
    By Alan Knott in forum Operating System
    Replies: 0
    Last Post: 03-03-2010, 08:01 AM
  3. Winrar extract here not working
    By Okaf8547 in forum Networking Jargons
    Replies: 1
    Last Post: 10-26-2009, 05:57 PM
  4. Cps (characters per second)
    By allster in forum General Networking
    Replies: 0
    Last Post: 03-20-2009, 05:54 AM
  5. Extract Information from the Web
    By brendin44 in forum Everything Else
    Replies: 0
    Last Post: 12-19-2008, 07:02 AM

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
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48