Search:

Type: Posts; User: Peterinall; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. [ubuntu] Re: How to delete all instances of "

    Ya it is working nicely. Can you please describe the code a lil bit, so i can use them in informed way.

    Thanks for your time and help.
  2. [ubuntu] Re: How to delete all instances of "

    I guess that "e" in the command is an trouble besides your code does remove some <a href= ...../> but deleting whole lines after the link anchor and it is also not working properly to remove all...
  3. [ubuntu] Re: How to delete all instances of "

    I think i have made a little mistake. Sorry. Actually the string patterns are
    <a href="#[1-9]|[1-4][0-9]|50">See [1-9]|[1-4][0-9]|50</a> and
    <a href="#[1-9]|[1-4][0-9]|50">See...
  4. [ubuntu] How to delete all instances of "

    Hello folks,
    Again have hundreds of large file, from where i want to delete all internal and external link with their texts. Any idea about how can i do so with SED or ant other utility in...
  5. Replies
    2
    Views
    878

    [ubuntu] Unable to replace diphthong with sed.

    Hello there,
    I have large files with diphthong characters and want to replace them with alphabets. I have tried the below command without any result

    sed -r 's::a:g' <in >out
    I am pasting...
  6. Re: Combining sed and head/tail commands in bash script.

    Thank you very much for your time n help.

    Regards
  7. Re: Combining sed and head/tail commands in bash script.

    Sorry for the silly question but can i add more sed commands to the line like


    tail -n +35 "$file" | head -n -11 | sed -r 's_...__g' -re 's_..._g' and so on..... > "$file"_new

    Thanks you...
  8. Combining sed and head/tail commands in bash script.

    Hello great folks,

    As the title says i want to join 2 or more sed and head/tail command in a script. How should i do it ?
    I have
    #!/bin/sh

    for file in ./*.htm
    do echo $file
    ...
  9. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    Thanks Vaphell, It is doing miracles for me.:guitar:\\:D/
    You guys just save my hundreds of hours. & all-hail "LINUX" :)

    I would like to know more about this "sed" command, Can any one plz...
  10. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    it worked like a charm.




    Indeed ! as i was testing on single file in a new directory, i have totally forgotten abt it. That part contain both capital & small letter as well as dot"." and...
  11. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    Hello great folks,
    Sorry for such unwanted delay but work work work...

    Thanks Zero 2xii for ur help but the later script does not seem to removing the second one
    e 's_\[[1-9]\]\ \[<a...
  12. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    I am just looking at these things like i look at aeroplanes going over my head they are so high above my head.:( I wish i could get all these things. linux is awesome .

    Regards
  13. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    Sorry for delay in replying

    Here is a full sentence where colored parts have to be removed the blue ones were removed by ur previous bash script but with the same command only replacing what i...
  14. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    hahahaha.... that's a newbi's crooked output hahaha.....
    Thank you zero2xiii for ur time & excellent help.
    By the way still there is a bit confusion . I tried to apply ur command to remove
    ...
  15. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    Thank you folks, Great helping hands here !!!
    SOLVED


    echo '<font color="#800000">&nbsp;<a name="5"></a>' | sed s_'<font color="#800000">&nbsp;<a name="[0-9]"></a>'_' '_g
    echo '<font...
  16. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    This does the trick but i just want to delete the line not replace it with "nothing".
    So how can i do so ?

    Regards.
  17. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    Though i am using ubuntu from 11.04 but not familier with it's advance & powerful commands.
  18. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    I JUST WANT TO DELETE"<font color="#800000">&nbsp;<a name="[0-50]"></a>" [0-50] WHERE EACH HAVE A NO BETWEEN 0 TO 50

    REGARDS.
  19. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    Thisone is doing the trick. how do i just delete it not replace with any thing.

    Regards.
  20. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    I tried
    ubuntu:~/Desktop$ grep -v "<font color="#800000">&nbsp;<a name="[0-50]"></a>" *.htm > new.htm
    ubuntu:~/Desktop$ grep -v "<font color="#800000">&nbsp;<a name="[0-50]*"></a>" *.htm > new.htm...
  21. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    Thank you for the reply,
    The last two commands do delete the line mentioned but still leaving the final & important part i.e. "="2"></a>" & also not working in all lines.

    Regards.
  22. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    Thanks for ur time & kindness dear,

    I have earlier searched for some tools & came to know about "kfilereplace" but the problem never ends with those different numbers.

    Thanks & regards.
  23. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    This one dose somthing with showing all my file texts in terminal but the input files are as before.

    Thanks & regards,
    Peter
  24. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    I tried with a greater-than mark before input file & the error is

    ubuntu:~/Desktop$ sed '/</font><font color="#800000">&nbsp;<a name/d' <*.htm
    bash: *.htm: ambiguous redirect

    Regards.
  25. Replies
    45
    Views
    2,247

    [SOLVED] Re: Find & Replace !!!

    The whole lines look somthing like

    **********0ff">&nbsp;Chorea.<br></font><font color="#800000">&nbsp;<a name="2"></a>&nbsp;&nbsp;</p>*********
    & I only want to delete the colored part.
    Regards
Results 1 to 25 of 31
Page 1 of 2 1 2