Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. deepagovind

    Follow up: Replace space with new line.

    Actually it is any word and any number i.e the word to replace is *<#> and teh replace string is .*<#> (*[#]), # could be any number and * could be any word. Thanks!
  2. deepagovind

    Follow up: Replace space with new line.

    Thanks for the valuable prompt replies. Is it possible to search and replace each string with some prefix using awk? For e.g.: \X<7> with ".\X<7> (X[7])", where X could be any word in the file? Thanks, I once again appreciate your inputs!
  3. deepagovind

    AWK to have each word in a text written on a new line

    Hello all, I have a text file that looks like this: Today, tomorrow, perl, \birds<7>, \animals<4>, awk, gawk I wish to write it to a file in this manner Today, tomorrow, perl, \birds<7>, \animals<4>, awk, gawk I tried the following: awk '{sub(" ", "\n", $0)}' space >...
  4. deepagovind

    How to write each word in a text file on a new line

    Hi, I am new perl user. I wish to write each word in a text file separated by spaces on to a new line. e.g: temp.txt: This is a nice forum Good learning Perl Output: This is a nice forum Good learning perl My script: #!/usr/intel/bin/perl open LIST, &quot;temp&quot; or die...

Part and Inventory Search

Back
Top