Wikipedia:Reference desk/Archives/Computing/2010 February 13

Computing desk
< February 12 << Jan | February | Mar >> February 14 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


February 13

edit

Ubuntu format taking forever

edit

I've plugged an external 1.5TB hard disk into this PC here and booted from the latest Ubuntu install disk. I went through the install wizard and the "Installing system" dialog is now showing, claiming "Partitions formatting". It's been stuck at 5% for a really long time. Is there a way to figure out whether it's dead or not? Comet Tuttle (talk) 00:28, 13 February 2010 (UTC)[reply]

run iotop (or better yet iotop -a); you should see a mkfs.ext3 process chucking out a fair amount of write iops; no writes means no progress. -- Finlay McWalterTalk 00:52, 13 February 2010 (UTC)[reply]
Thanks for the tip — iotop isn't installed, so it recommended I do a sudo apt-get iotop, but then apt-get didn't recognize iotop as a package; so off the power went! Thanks - Comet Tuttle (talk) 01:05, 13 February 2010 (UTC)[reply]
As can be seen here iotop is in the universe section of ubuntu repositories. Universe isn't enabled by default so you would have needed to enable it to install iotop. --194.197.235.240 (talk) 13:12, 13 February 2010 (UTC)[reply]

Google Buzz

edit

I've been sucked into Google Buzz just like a horrific number of other people, and, because I don't like the idea (I will save my reasons for another site as Wikipedia is not a soapbox) I want to get out from it. Is there any way that I can exit this intrusive project that came along to my email account with no warning nor any information whatsoever on how to use it? TIA! --KageTora - (影虎) (A word...?) 01:36, 13 February 2010 (UTC)[reply]

First off, go to Settings/Labels, and you can hide the "Buzz" label. If you want to completely filter out Buzz, see this Lifehacker Article: Hide/Remove Google Buzz Updates from Your Gmail Inbox. -Avicennasis @ 03:10, 13 February 2010 (UTC)[reply]
It's not the hiding/removing of the updates that I am concerned about. I don't want people following me. [soapbox] As a case in point, when I opened gmail a couple of days ago and found that I had this GoogleBuzz added to my account, I was automatically already following 6 people, completely without my consent. One of these people was a person who had contacted me a while back about translation of Japanese manga - we talked for a while, but the project fizzled out for various reasons and we both eventually forgot we'd even met. Anyway, now, GoogleBuzz is inviting me to go and look at pictures of his family that he put on Picasaweb (and emailed me the pictures anyway even if I didn't want to have a look), and he probably doesn't even know that GoogleBuzz has done this. This is why I don't want to be part of it and completely out of it. It's a privacy thing. Is there any way to just disable the ability for people to follow me? Also, I've written on here about Facebook and the complete lack of control that you have over people writing whatever they want on your 'wall', and I am thinking that this will become the same. I already know the names and personal interests of many of the friends of the six people whom, by default, I am supposedly following, and really, I don't want my boss looking around and seeing what my mates, and their mates, and then THEIR mates are into. Ridiculous! Email and who I talk to should be my own business and no-one else's. [/soapbox] So, is it possible to disable it completely? --KageTora - (影虎) (A word...?) 07:15, 13 February 2010 (UTC)[reply]

I noticed this too, and I can't find a way to disable it either. I suggest writing to google and threaten to leave them for another email provider if they don't rectify the situation. If enough people don't want it and complain, they'll have to do something or risk losing their ad-revenue. This is also worth reading. —Preceding unsigned comment added by 82.43.89.27 (talk) 14:51, 13 February 2010 (UTC)[reply]

Cheers. That link shows there are plenty of people who have the same idea, though there is no information on how to opt out of this feature. Writing to Google may be the only option, and that is what I have just done, but, not surprisingly, in the drop-down menus where you have to select what service you are referring to, GoogleBuzz is nowhere to be found. 'Other' was the most appropriate one. We'll see how long this takes. Cheers. --KageTora - (影虎) (A word...?) 17:07, 13 February 2010 (UTC)[reply]
FWIW, I never clicked on any link connected with Buzz and only clicked the "Turn off Buzz" link. Now I can't find any mention of Buzz except for the link to turn it back on. Perhaps that;s the secret to maintaining your privacy. Astronaut (talk) 18:19, 13 February 2010 (UTC)[reply]
The first rule of Google Buzz is not to talk about Google Buzz. --Mr.98 (talk) 21:40, 13 February 2010 (UTC)[reply]
I believe (though I can't be sure) that if you haven't "connected" anything (like Chat status messages, or Google Reader or Twitter) to Google Buzz, no on will be able to see anything from you (if you have connected those things, you can remove them). (There's also a public profile might have set up.) So I believe that everything is private-by-default (except that other people can see that you exist; but the people who can follow you know that already). If my analysis is correct, Buzz is not inherently intrusive, it's just that Google should have been more clear. Paul Stansifer 00:10, 14 February 2010 (UTC)[reply]
Google has now added a way to disable Buzz completely. Also, it looks like I was wrong -- it used to connect to public Picasa and Google Reader items automatically. Paul (not signed in) 71.174.127.229 (talk) 17:11, 14 February 2010 (UTC)[reply]
Nice. Thanks for the update —Preceding unsigned comment added by 82.43.89.27 (talk) 17:46, 14 February 2010 (UTC)[reply]

Make server think I'm a browser

edit
  Resolved

Hello! I'm using Java to query a server (specifically, http://www.rae.es, a Spanish dictionary website), but if I do the exact same query (http://buscon.rae.es/draeI/SrvltGUIBusUsual?LEMA=tomar&origen=RAE&TIPO_BUS=3) in Firefox, then copy-and-paste it into my Java code, I get two different responses. For Firefox, I get the proper response to the query, but for Java, I get a response from the home page (http://www.rae.es). It seems like the server knows I'm using a automated program and is refusing my request. Is there any way to make the server think the request is coming from a browser, or otherwise fix this problem? Of course, I know about etiquette and will program a delay between queries. Thank you for any advice!--el Aprel (facta-facienda) 01:39, 13 February 2010 (UTC)[reply]

Try changing the user agent string. --Spoon! (talk) 02:59, 13 February 2010 (UTC)[reply]
Thanks for the tip, but googling "java change user agent" has only brought up dead threads on forums and incomplete answers. Can anyone help me with an implementation specific to Java? I mean, it should be as easy as calling a method like setUserAgent(String userAgent), but I haven't found something like this by browsing through the java.net package.--el Aprel (facta-facienda) 21:24, 13 February 2010 (UTC)[reply]
Assuming you're using URLConnection then an example is here -- Finlay McWalterTalk 22:10, 13 February 2010 (UTC)[reply]
Thank you, Finlay McWalter. This is exactly what I needed.--el Aprel (facta-facienda) 03:50, 14 February 2010 (UTC)[reply]

Better performance tracking than htop

edit

I'm using Kubuntu. Is a free utility available that can track CPU and memory usage for each program over the past few hours (rather than just the past second as htop does) and that can also track time spent reading to and writing from memory and disk, and ideally also GPU usage? NeonMerlin 08:02, 13 February 2010 (UTC)[reply]

Nagios is great, but may be overkill for your needs (it's usually for monitoring entire clusters, but can be used on one machine). Tracking GPU usage is a tough nut for technical reasons ("GPU usage" is a poorly-defined metric - do you mean bus traffic, GPU utilization, etc)... and it depends heavily on your hardware and drivers, so it's hard to get any utilities that track GPU usage well. Nvidia has some performance monitoring tips and a few tools in their developer area on their website - e.g., PerfHUD (unfortunately Windows-only). Nimur (talk) 20:38, 14 February 2010 (UTC)[reply]
edit

Something I found useful in Internet Explorer was that you could see the URL of a hyperlink, that you put the cursor over, at the base of the browser. Is there any way to get the same thing in Firefox? Sometimes the URL is shown in Firefox in a small yellow pop-up, but this is unreliable and you have to wait a long time for it, and it may just be a description rather than an URL. 92.29.55.65 (talk) 12:12, 13 February 2010 (UTC)[reply]

View --> Status bar. Friggums (talk) 13:36, 13 February 2010 (UTC)[reply]

TalkTalk ISP and eMail timeout.

edit

I have a friend in the UK who uses the "TalkTalk" ISP - she is extremely computer-illiterate and a very slow typist. She says that: "after 20 minutes,my computer sent message to say "your > time has expired" while i was sending you an email and i had to type it all again". I'm guessing that this 20 minute limit is due to the nature of the "free broadband" service that they offer. I assume that there must be a way to compose email offline and use the 20 minute time limit to actually send it - but she's going to need step-by-step instructions on how to do that. Do any of you guys know enough about this service to give me a click-by-click account of what to do? I have no idea what email client she's using - but I strongly suspect that it's one that came with the TalkTalk service. Since I have no clue how TalkTalk works, any help would be greatly appreciated. SteveBaker (talk) 14:34, 13 February 2010 (UTC)[reply]

Well the obvious answer is simply to open Notepad, Wordpad or another text editor, compose the email in that then copy and paste into the email client when complete. Exxolon (talk) 14:43, 13 February 2010 (UTC)[reply]
If it is a broadband service, it will not expire. I'm wondering if she's using a webmail application, which has a session timeout? What she actually got was the mail service saying it had timed out, since she had not accessed any new pages? I'd suggest checking what she actually does for email - it may be possible to save drafts. But, as Exxolon says, she could compose using notepad and paste it in. --Phil Holmes (talk) 15:19, 13 February 2010 (UTC)[reply]
I have to correct Phil Holmes — I don't know anything about TalkTalk, but some broadband connections do "expire" — I used to be a Qwest DSL customer, and they intentionally disconnected my connection every 2 hours because that was the main inconvenience that incentivized customers to pay more for an upgraded plan. The ostensible reason was to "free up connections" for other users, but, suspiciously, they always assigned me the same IP address.... Comet Tuttle (talk) 16:08, 13 February 2010 (UTC)[reply]
I don't believe any broadband connections expire in the UK, which is where Steve was referring to. --Phil Holmes (talk) 11:34, 14 February 2010 (UTC)[reply]
Some modem/routers will also disconnect after a certain amount of inactivity (this can usually be turned off). In Malaysia time limited broadband (ADSL) packages exist Nil Einne (talk) 18:37, 13 February 2010 (UTC)[reply]
I'm a TalkTalk customer and my connection never expires/disconnects/timeouts due to inactivity. I would imagine it's as Phil Holmes says and her site session is timing out. TalkTalk do not package a standalone email client with their installation discs, they do offer webmail though at talktalk.com/mail. Nanonic (talk) 20:40, 13 February 2010 (UTC)[reply]
OK - so it's likely to be the talktalk.com/mail server. I'll try explaining how to cut/paste from notepad. Thanks guys. SteveBaker (talk) 23:24, 13 February 2010 (UTC)[reply]
No, not the mail server ("Message Transfer Agent"), but more likely the Webmail client, which has the role of a Mail User Agent. But copy&paste will solve it. --Stephan Schulz (talk) 20:07, 14 February 2010 (UTC)[reply]

Software Question

edit

Hello, I was looking for a specific software that allows you to take pieces of different pictures and make it look like one. I don't want a morph program, I was thinking more along the lines of what they have at a plastic surgeons office where they could take your picture and change the nose or eyes to show how you could look if you got acertain procedure. Does anyone have any idea of what a program like that is called? —Preceding unsigned comment added by 71.137.255.212 (talk) 15:16, 13 February 2010 (UTC)[reply]

I don't know what you're referring to, but it does sound like morphing of some sort. --Mr.98 (talk) 20:39, 13 February 2010 (UTC)[reply]

there is a specialty software called FotoShop or PhotoShop that professionals use. It's used to make magazine cover girls have impossibly thin arms and legs, among other things. However, because it is specialty software it may be very expensive, maybe as much as several thousand dollars, I haven't looked. —Preceding unsigned comment added by 82.113.106.195 (talk) 20:27, 13 February 2010 (UTC)[reply]

Do you mean Photoshop? It's expensive, to be sure, but there are free alternatives (like GIMP, which does the same stuff). It isn't the kind of thing where you can just say "make them thin," it's just image editing software. It's not what the original poster is asking about, I am sure. --Mr.98 (talk) 20:37, 13 February 2010 (UTC)[reply]
The operation you are talking about is called photo stitching. It is usually used to make wide panoramic scenes. See photo stitching and panorama. Also, a simple Google search of "photo stitching freeware" returns many good free programs that can do this. —Preceding unsigned comment added by Roberto75780 (talkcontribs) 21:53, 13 February 2010 (UTC)[reply]
Any decent graphics software should be able to do what you want eg Paintshop Pro and FREE versions are available. This software won't do the job for you, it's more of a sophisticated electronic paintbrush. It requires some practice, and experience with other graphics software helps. Tools to "change the nose or eyes" are definitely included, these allow you to select an area and move it or alter its shape. Whether the result looks realistic is up to the users skill--220.101.28.25 (talk) 03:48, 14 February 2010 (UTC)[reply]

Article in TFA, ITN, OTD and DYK?

edit

First of all, I did not post this in the help desk because, well, it does not deal with a technical problem on the Wiki. Now for my question: Has there ever been an article which was on the Main Page for TFA,DYK In The News and On this Day?

Regards,

Buggie111 (talk) 15:31, 13 February 2010 (UTC)[reply]

I'm not sure about OTD, since we don't seem to keep records of that on the talk pages, but for the other three we can take an intersection of Category:Featured articles that have appeared on the main page, Category:Wikipedia Did you know articles that are featured articles, and Special:WhatLinksHere/Template:ITN talk. Give me a few minutes. —Akrabbimtalk 16:17, 13 February 2010 (UTC)[reply]
Update: There are zero DYK-FAs that were ITN, let alone featured as TFA. Sorry to disappoint you. —Akrabbimtalk 16:26, 13 February 2010 (UTC)[reply]
That's impossible under the current rules, which disqualify articles that have been ITN for DYK. I am sure ITN has a similar provision. decltype (talk) 16:29, 13 February 2010 (UTC)[reply]

I didn't meen all on one day.

Buggie111 (talk) 19:50, 13 February 2010 (UTC)[reply]

We didn't either. DYK and ITN are mutually exclusive. Apart from that, there have been no FAs that were ever ITN, let alone TFAs. There have been 503 FAs that were DYKs, 216 of which were TFAs:

Sorry. I got it. Thanks.

Buggie111 (talk) 23:07, 13 February 2010 (UTC) [reply]

TFA+DYK
  1. €2 commemorative coins
  2. 1 − 2 + 3 − 4 + · · ·
  3. 1880 Republican National Convention
  4. 1960 South Vietnamese coup attempt
  5. 1968 Illinois earthquake
  6. 1980 eruption of Mount St. Helens
  7. 1981 Irish hunger strike
  8. 1999 Sydney hailstorm
  9. 2000 Sri Lanka cyclone
  10. 2000 Sugar Bowl
  11. 2006 Westchester County tornado
  12. 243 Ida
  13. A Very Merry Unauthorized Children's Scientology Pageant
  14. A Vindication of the Rights of Men
  15. Accurate News and Information Act
  16. Act of Independence of Lithuania
  17. Akutan Zero
  18. Alaska Mental Health Enabling Act
  19. Amagi class battlecruiser
  20. Amateur radio in India
  21. An Experiment on a Bird in the Air Pump
  22. Anekantavada
  23. Anglo-Zanzibar War
  24. Anti-tobacco movement in Nazi Germany
  25. Aradia, or the Gospel of the Witches
  26. Arrest and assassination of Ngo Dinh Diem
  27. Article 153 of the Constitution of Malaysia
  28. Azerbaijani people
  29. Bale Out
  30. Barthélemy Boganda
  31. Battle of Smolensk (1943)
  32. Battle of the Gebora
  33. Beauchamp–Sharp Tragedy
  34. Beijing opera
  35. Belton House
  36. Bob Meusel
  37. Boydell Shakespeare Gallery
  38. Branded to Kill
  39. Brazilian battleship Minas Geraes
  40. Brown Dog affair
  41. Cædwalla of Wessex
  42. Carabane
  43. Cardinal-nephew
  44. Carucage
  45. Caspian expeditions of the Rus
  46. Catherine de' Medici's building projects
  47. Charles Atangana
  48. Charles Edward Magoon
  49. Checkers speech
  50. Chicago Board of Trade Building
  51. Chinese classifier
  52. City and South London Railway
  53. Clem Hill
  54. Clement of Dunblane
  55. Confederate government of Kentucky
  56. Creatures of Impulse
  57. Cyclone Orson
  58. Don Tallon
  59. Draining and development of the Everglades
  60. Dürer's Rhinoceros
  61. Economy of the Han Dynasty
  62. Edgar Speyer
  63. Edward Wright (mathematician)
  64. Eli Lilly
  65. Elizabeth Needham
  66. Elwood Haynes
  67. Emery Molyneux
  68. Émile Lemoine
  69. Emmeline Pankhurst
  70. Emmy Noether
  71. England expects that every man will do his duty
  72. Evolution
  73. Fauna of Puerto Rico
  74. Fauna of Scotland
  75. Flag of India
  76. Flight feather
  77. Four Times of the Day
  78. Franklin Knight Lane
  79. Free Association of German Trade Unions
  80. Freedom Monument
  81. Funerary Monument to Sir John Hawkwood
  82. Geology of the Grand Canyon area
  83. German occupation of Luxembourg in World War I
  84. Getting It: The Psychology of est
  85. Gray's Inn
  86. GRB 970508
  87. Great Lakes Storm of 1913
  88. Hamlet chicken processing plant fire
  89. Harbhajan Singh
  90. Harold and Inge Marcus Department of Industrial and Manufacturing Engineering
  91. Hasekura Tsunenaga
  92. Hero of Belarus
  93. History of Baltimore City College
  94. History of Stoke City F.C.
  95. History of Tamil Nadu
  96. House of Gediminas
  97. Ice hockey at the Olympic Games
  98. Inaugural games of the Flavian Amphitheatre
  99. Inner German border
  100. Ion Heliade Rădulescu
  101. Italian War of 1542–1546
  102. Jerry Voorhis
  103. Jersey Shore shark attacks of 1916
  104. John Brownlee sex scandal
  105. John Bull (locomotive)
  106. Joseph Priestley House
  107. KaDee Strickland
  108. Kengir uprising
  1. Ketuanan Melayu
  2. Kolkata
  3. La Peau de chagrin
  4. Layla
  5. Lessons for Children
  6. Lisa del Giocondo
  7. Lost: Missing Pieces
  8. Maiden Castle, Dorset
  9. Maraba coffee
  10. Matthew Boulton
  11. Medieval cuisine
  12. Meerkat Manor: The Story Begins
  13. Meteorological history of Hurricane Wilma
  14. Michael Tritter
  15. Millennium '73
  16. Mom and Dad
  17. Murray Chotiner
  18. Myxobolus cerebralis
  19. Ngo Dinh Diem presidential visit to Australia
  20. Nguyen Ngoc Tho
  21. Niagara Falls Suspension Bridge
  22. Nikita Zotov
  23. Nirvana (band)
  24. NoitulovE
  25. O-Bahn Busway
  26. Oliver Typewriter Company
  27. Operation Auca
  28. Operation Passage to Freedom
  29. Operation Ten-Go
  30. Operation Uranus
  31. Overman Committee
  32. Pennsylvania State Capitol
  33. Peter Jones (missionary)
  34. Peterloo Massacre
  35. Phan Xich Long
  36. Pioneer Zephyr
  37. Polish culture during World War II
  38. Pre-dreadnought battleship
  39. Priestley Riots
  40. Princess Louise, Duchess of Argyll
  41. Puerto Ricans in World War II
  42. Pulmonary contusion
  43. Quneitra
  44. Rampart Dam
  45. Raptor Red
  46. Red Barn Murder
  47. Red River Trails
  48. Renewable energy in Scotland
  49. Report of 1800
  50. Restoration of the Everglades
  51. Rhodes blood libel
  52. Richard Cordray
  53. Richmond Bridge, London
  54. Robert Sterling Yard
  55. Rudolf Wolters
  56. Saint-Sylvestre coup d'état
  57. Saxbe fix
  58. Scattered disc
  59. Scene7
  60. Scout Moor Wind Farm
  61. Second Malaysia Plan
  62. Shrimp farm
  63. Slavery in ancient Greece
  64. Sophie Blanchard
  65. Splendid Fairywren
  66. SS Christopher Columbus
  67. SS Ohioan (1914)
  68. St. Michael's Golden-Domed Monastery
  69. Sydney Riot of 1879
  70. Sylvanus Morley
  71. T206 Honus Wagner
  72. Tech Tower
  73. Template:ArticleHistory
  74. Template:ArticleHistory/testcases
  75. The Chaser APEC pranks
  76. The Four Stages of Cruelty
  77. The Log from the Sea of Cortez
  78. The Lucy poems
  79. The Raft of the Medusa
  80. The Slave Community
  81. The Swimming Hole
  82. The World Without Us
  83. Third Battle of Kharkov
  84. Thoughts on the Education of Daughters
  85. Toa Payoh ritual murders
  86. Toilets in Japan
  87. Tomb of Antipope John XXIII
  88. Toronto Magnetic and Meteorological Observatory
  89. Triptych, May–June 1973
  90. Tropical Storm Allison
  91. Truthiness
  92. Tyrone Wheatley
  93. Ulm Campaign
  94. United Nations Parliamentary Assembly
  95. Ununoctium
  96. USS Connecticut (BB-18)
  97. Vauxhall Bridge
  98. Verdeja
  99. Victoria Cross for Australia
  100. Viet Nam Quoc Dan Dang
  101. West Indian cricket team in England in 1988
  102. Western Chalukya architecture
  103. William Barley
  104. William Cooley
  105. Winter service vehicle
  106. Woodes Rogers
  107. Yukon Quest
  108. Z. Marcas

Akrabbimtalk 20:17, 13 February 2010 (UTC)[reply]

Windows Media Player: removing the delay between repeated playings of a file

edit

Might anyone be able to tell me whether I may remove the delay between playings of a file being repeated in Windows Media Player, such that it is continuously playing; and if so, how?

Thank you in advance,

88.189.248.66 (talk) 16:40, 13 February 2010 (UTC)[reply]

I don't think there is a delay on my computer. Perhaps your file needs trimming? Dbfirs 21:36, 13 February 2010 (UTC)[reply]
This is the file that I wish to have continuously playing; in between repeated playings, I have a delay which is as noticeable as it is short, whence my query. Do you hear it also? 88.189.248.66 (talk) 23:03, 13 February 2010 (UTC)[reply]
I tried with a trimmed file on my computer and noticed placing the same file on the playlist several times in a row results in a slightly shorter delay compared to the delay at the end of the playlist starting the list all over. —Preceding unsigned comment added by Roberto75780 (talkcontribs) 21:51, 13 February 2010 (UTC)[reply]
Thank you for your helpful suggestion! 88.189.248.66 (talk) 23:03, 13 February 2010 (UTC)[reply]
Yes, on checking carefully, there is always a short delay (sorry if I implied there wasn't - I hadn't tried white noise files). One solution would be to use sound editing software (GoldWave is shareware) to create a single file with many copies of the original sound end-to-end without a gap. The delay in Media Player would then not be a problem. Dbfirs 08:36, 14 February 2010 (UTC)[reply]

Connecting a DVD player into a computer

edit

Can DVD players, in general, be used as a CD-ROM or DVD reader for a PC?--Quest09 (talk) 18:13, 13 February 2010 (UTC)[reply]

No. --Mr.98 (talk) 18:25, 13 February 2010 (UTC)[reply]
None of them?--Quest09 (talk) 18:29, 13 February 2010 (UTC)[reply]
(ec) In most DVD players the digital datastream is converted into composite video and analogue audio by the electronics in the player. I guess that someone with sufficient skills might be able to dismantle a DVD player and intercept the datastream, but it might not work and could permanently break a perfectly good DVD player. It would be a lot of trouble to go to when a computer DVD drive can be bought for as little as $15. Astronaut (talk) 18:30, 13 February 2010 (UTC)[reply]
No regular DVD players (for playing movies on TVs) are likely to have the requisite hardware to interface with a computer. They are fairly specialized devices. There is no reason they would have this capability built into them. --Mr.98 (talk) 19:45, 13 February 2010 (UTC)[reply]

awk problem

edit

i have this script, where the input files have been sorted over $1 (using sort -k 1,1n in > out.sort), the problem is that is runs too fast, it makes only one output file of ~200k when i would be expecting 60 files each in the mb-gb region. I'm guessing its a problem with the next/exit statements as there the newest bits i added but i cant see whats going wrong. The idea is to split the input files into files of overlapping ra ($1), by looping through the file untill its close to the region is question, printing that out untill its out of the region then exiting and going to the next number in the list.

#!/bin/bash

for j in $(seq 1 1 60)
do
	ra=$j
	ARCSECMIN=$(echo "scale=6;$ra-0.002778" | bc -l)
	ARCSECPLUS=$(echo "scale=6;$ra+1.002778" | bc -l)
	
	PATHOUT="/path/out/$ra.ra"
	
	for i in "/path/in/*.sort"
	do
		awk '{ if($1 < ra1){next}
			else if ($1 < ra2) {print >> "'"$PATHOUT"'"}
			else{exit}
			}' ra1="$ARCSECMIN" ra2="$ARCSECPLUS" $i
	done

done

--86.27.192.94 (talk) 21:41, 13 February 2010 (UTC)[reply]

First, general shell script debugging: use the -x option. Add it to the #! line, or put set -x before the part that's not working the way you want.
Now the reason your script isn't working: you put the *.sort glob in quotes, so it's not getting expanded there. The inner for loop is only being run once, with i set to that literal string, including the asterisk. Later, when you reference $i, it gets expanded and globbed so all of the filenames get passed to single awk instance, and it treats them as if they were one big concatenated file. 98.226.122.10 (talk) 04:47, 14 February 2010 (UTC)[reply]