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 strongm 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: arunrr
  • Content: Threads
  • Order by date
  1. arunrr

    output only unique lines, no duplicates

    Hello, I have the following input file. Sri Lanka v Pakistan England v West Indies Sri Lanka v Pakistan West Indies A v India A England v West Indies West Indies A v India A England v West Indies West Indies A v India A Sri Lanka v Pakistan England v West Indies West Indies A v India A Sri...
  2. arunrr

    grep file for strings in multiple lines in external file

    Hello, Here is file1... Fri Feb 17 2012, 03:20 GMT 14:20 Local, Australia v Sri Lanka,Sydney, Commonwealth Bank Series Fri Feb 17 2012, 06:00 GMT 19:00 Local, New Zealand v South Africa,Wellington, 1st T20I Sat Feb 18 2012, 11:00 GMT 15:00 Local, England v Pakistan,Dubai (DSC), 3rd ODI Sat Feb...
  3. arunrr

    Combining 2 files - add (some fields), use larger number, etc.

    Hello, I need to combine File1 and File2 to result in File3... File1: SR Tendulkar,1989-2011,453,18111,200*,48,95,20 RT Ponting,1995-2011,370,13686,164,30,82,20 ST Jayasuriya,1989-2011,445,13430,189,28,68,34 Inzamam-ul-Haq,1991-2007,378,11739,137*,10,83,20 JH...
  4. arunrr

    Insert duplicate field - repeat in long string

    Hello, I have the following input... (continuous line; Field Separator=,)...
  5. arunrr

    Passing variable to PHP from Javascript

    Hello, I am putting together the following rank polling for my site... http://www.bcci.com/Poll/best_test_batsmen/btb.php The entire code may be viewed here... http://www.bcci.com/Poll/best_test_batsmen/btb.txt The following method to assign the value of the javascript variable to PHP...
  6. arunrr

    Date sort - 4 fields

    Hello, Looking for the sort command to sort by date using the following input... Sun Jan 29 2012 Sun Jan 29 2012 Thu Jan 19 2012 Fri Sep 23 2011 Sat Dec 3 2011 Fri Sep 30 2011 Mon Sep 19 2011 Fri Nov 4 2011 Mon Sep 19 2011 Sat Sep 17 2011 Sat Sep 24 2011 Thanks, AR Sat Sep 24 2011
  7. arunrr

    appending line with characters

    Hello, I have the following input file... 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 Basically it is a monthly calendar (June 2011). I need to fill the blanks with 'X', meaning... X X X 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16...
  8. arunrr

    horizontal centering of DIV

    Hello, Please see the following test URL... http://www.bcci.com/Records/Records.html A mouseover on 'TEST' and 'ODI' under 'Batting Records' displays the pop menu. However, i am having trouble aligning this menu. As you can see from the code, I have used "text-align:center" in multiple places...
  9. arunrr

    Insert newline after certain number of fields in long line

    Hello, I have the following input file, one continuous line with no newline characters...
  10. arunrr

    Javascript errors with IE/Firefox, all ok with Chrome

    Hello, I have the following page... http://www.bcci.com/Fantasy/wc_play.php Code may be viewed via right-click, 'view source' As you choose the quarter-final winners, the semi-finalists are populated and the check boxes are enabled. The intended workings of the page can be seen by visiting...
  11. arunrr

    Conditional string substitution - based on first 4 fields

    Hello, I have the following input file (example only, actual file has many more lines)... A1 A2 B2 B1 Q2 Q3 S2 B4 A2 B2 B1 Q2 Q4 S2 B4 A2 B2 B1 Q1 Q3 S1 A1 A2 B2 B1 Q2 Q3 S2 A1 A2 A3 B1 Q2 Q4 S2 I need to first substitute fields 5 & 6, Qn and Qm, with values from the first 4 fields (n and m...
  12. arunrr

    sort field when numeric value has a '+' or a '-'

    Hello, I have the following input file... DCF,1,1,0,0,0,2,+7.620,72-8.0,69-50.0 AQP,1,1,0,0,0,2,+1.820,262-50.0,171-50.0 PMC,1,0,1,0,0,0,-1.820,171-50.0,262-50.0 BCI,1,1,0,0,0,2,+4.200,332-50.0,122-50.0 ZWA,1,1,0,0,0,2,+4.100,317-50.0,112-50.0 IMT,2,0,2,0,0,0,-4.897,181-100.0,389-58.0...
  13. arunrr

    Adding a field for selective lines

    Hello, From input data (sample shown below, actual input is about 300 lines), i need to add a 5th field, ICC Cricket World Cup warm-up, for lines that only have 4 fields. I am using... cat inputfile | awk -F, '{if (NF==4) printf ($0", ICC Cricket World Cup warm-up\n"); else printf $0"\n"}'...
  14. arunrr

    Vertical alignment of iframe

    Please the following cricket world cup schedule page... http://www.bcci.com/WC/frame_wc2011.html Depending on the selection, the number of items (matches) that display in the cell titled "Schedule" varies. You may click any link under Team/Venues/Matches see the functionality. One of the <a>...
  15. arunrr

    Controlling link style

    Firstly, i have the following style specified... <style type="text/css"> a:link {COLOR: #0000FF;} a:visited {COLOR: #0000FF;} a:hover {COLOR: #D40606;} a:active {COLOR: #0000FF;} </style> This behavior works when my <a> tag is something like... <a...
  16. arunrr

    how to ensure wget output is not garbled

    I am looking for a way to ensure that the wget output is not garbled. The wget man pages refers to the use of the -c option which i am not using. I have tried with -o and without. Thanks for your help... Arun
  17. arunrr

    Removing newline within html tags

    Hello, Thanks in advance. I have the following input... <td class="inningsDetails"><b>Did not bat</b> <span><a href="/ci/content/player/44716.html" target="" title="view the player profile for Allan Donald" class="playerName">AA Donald</a></span>, <span><a href="/ci/content/player/44742.html"...
  18. arunrr

    using 'wget' to output to multiple files

    I have the following 'inputfile'... http://www.anrww.com/fixtures/schedules?view=all http://www.anrww.com/events/complete.html http://www.anrww.com/records/2010/highesttotal.html when i use wget as below... wget -i inputfile I get 3 files: schedules?view=all, complete.html, highesttotal.html...
  19. arunrr

    $_SESSION returns blank

    test URL is http://www.bcci.com/test.html Please turn your attention to the Message board login. You may use (test123/test123) to login. After this, it must display "Welcome: test123". But I get blank. Current Code... -------------------------------------------------------- <?php ob_start()...
  20. arunrr

    awk if condition

    Hello, I need to modify the 3rd field (FS=,) of the file... 1,B Lee,4,0,38,0,9.50 2,IK Pathan,3.6,0,29,3,7.25 3,L Ablish,2,0,17,2,8.50 4,PP Chawla,4,0,24,3,6.00 5,Y Singh,2,0,15,0,7.50 6,RR Powar,4,0,28,0,7.00 as below... 3.0 to 3 3.6 to 4 3.* no change If i only had field three as input, i...

Part and Inventory Search

Back
Top