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: *

  • Users: rao12
  • Order by date
  1. rao12

    Hi, I have a set of files and i ne

    Hi, I have a set of files and i need to substitute an existing pattern with a new one.I have used sed to do the simple substitution. sed -e 's/Old/New/g' file_name > new_file But it is case sensitive. I have a set of files which are having a different case for the pattern. Can anyone let me...
  2. rao12

    pattern substuitution idea solution required.

    Hi, I have a set of files and i need to substitute an existing pattern with a new one. I have used sed to do the simple substitution. sed -e 's/Old/New/g' file_name > new_file But it is case sensitive. I have a set of files which are having a different case for the pattern. Can anyone let...
  3. rao12

    Could anyone help me to sort out my text file !!

    I have a input file which looks like john /ghsgd/kjhfdf/kjdfkjd john /ruey/oieroiern/oieroeiroi jim /kjskksj/kdjfkdjf/kdjfkjd john /jdkfjd/kjdfdfjh/fjgfjg/kdfikdhf jim /gdhfgdf/lgkfjg/orit mike /kdjfjdk/jhjdfhjdf/jdhfjdhf/jhdjfhdjf .............. ................ many other names and many...
  4. rao12

    Regular exp help needed !!

    Hi, I have a file with many input lines and i want to exclude the lines which look like from my output file "output_file".. -----------------|------------------[ added ]---------- my code which i thought could solve looks like this open(INP, "input_file"); open(ONP ...
  5. rao12

    peculiar problem in appending !!

    Hi, I have an input file with about 330 lines in it. The input file is created as a result of this script. script1 ======== #!/usr/local/bin/perl open(IPF, &quot;/home/dc5/uniq.txt&quot;); open(OPF, &quot;>> /home/dc5/uniqout.txt&quot;); while(<IPF>) { $buffer .= $_} close IPF; $buffer =~...
  6. rao12

    how to find last word in a line??

    Hi, I have a text file with each line having variable number of words.. how do i print the first few words and last word of a line in to an output file. I was doing with $NF for the last feild in shell scripts how do i do it in perl. sample text file ==================== hgahgdhsgd...
  7. rao12

    combining 2 lines into one

    Hi , I have an input file with entries in each lines aaaaa bbbbb cccccc dddddddd eeee fffff gggg hhhh iiii jjjj ..... .... .... ..... .... .... i would like to have an output file with contents aaaaa bbbbb cccccc dddddddd eeee fffff gggg hhhh iiii jjjj i.e., 1st and 2nd line to be in...
  8. rao12

    how to take out some lines !!

    i have a file with contents like <<< file1: abcd.c >>> file2: abcd.cx --------[after 12]-----|-----------[inserted 67-80]------ ---------[deleted 67-89]---|---------[after 56]---------- <<< file1: def.c how do i select only lines that come in between >>> and <<< ie., --------[after...
  9. rao12

    how do take out some lines !!

    i have a file with contents like <<< file1: abcd.c >>> file2: abcd.cx --------[after 12]-----|-----------[inserted 67-80]------ ---------[deleted 67-89]---|---------[after 56]---------- <<< file1: def.c how do i select only lines that come in between >>> and <<< ie., --------[after...

Part and Inventory Search

Back
Top