shellscript is having trouble finding a file I have a shellscript that is having trouble finding a file. The text file exists so I don't understand what the issue is.   #!/bin/ksh goodmain $1 | sed -e '1,/mmxxaa/d'  $ ls -l total 1364 -rwxr-xr-x. 1 s student  94563 Apr 23 23:55 a.out -rwxrwxrwx. 1 s student     19 Apr 28 17:13 boo -rw-r--r--. 1 s student     89 Apr 24 00:58 cookies -rw-r--r--. 1 s student   1622 Dec  6 23:49 doc -rw-r--r--. 1 s student    148 Apr 23 16:14 textfile -rw-r--r--. 1 s student 597061 Apr 23 23:56 fn -rwxr-xr-x. 1 s student  94563 Apr 28 16:56 goodmain -rw-r--r--. 1 s student 427993 Apr 23 23:47 main.c -rw-r--r--. 1 s student 145256 Apr 24 00:40 main.o -rw-r--r--. 1 s student     72 Apr 28 16:53 makefile -rwxrwxrwx. 1 s student     46 Apr 28 17:24 p4 $ ./p4 textfile ./p4: line 2: goodmain: not found
Why do we use "./" (dot slash) to execute a file in Linux/UNIX? Why do we use ./filename to execute a file in linux?  Why not just enter it like other commands gcc, ls etc...
Sometimes I found that writing just "J. Doe" may lead, in a justified line with few words, to a big space between the initial and the surname. Using J.\,Doe looks ok but I would like to know if there is a general rule for spacing between initials and surnames. How do I emit light from inside a object? If I select a feature and run self.iface.actionIdentify().trigger() it will open the identify window but won't open the selected feature's data, how can I make it open the data of the selected feature? Have a seat, guys   I think "have a seat" is a fixed phrase that does not change whether you address someone or a group of people.  Is that correct?  If you have more to add to the post, please do so as I would love to know more. How do I limit the number of rows returned by an Oracle query after ordering? Task manager for Ubuntu sum of polynoms of given property I am playing a bit around with Qgis 2.14.6 to understand how it deals with distance measurement.  I took a line-shapefile that I saved in 3 different coordinate systems (4326, 32642 and a national one that doesn't exist in Qgis yet).  Using 32642 and the national one, the length is quite similar (6442m vs. 6428m)  But using 4326 (unprojected WGS84), I get 8057m  In all cases, I just used the Field Calculator and introduced $length.  I was already positively surprised that the result using 4326 was in meters and not in degrees.  To calculate the distance on the dataset in 4326, I assume that Qgis does some kind of re-projection in the background. Does anyone know which one?   Shapefiles here if anyone wants to play around:   EDIT - adding more info after more tests  As you can see, now both my shapefile and the project are in EPSG:4326, so unprojected:    Here the rough measurement of my shapefile, with the Qgis measure tool:   When I use the field calculator, the preview gives me a value in degrees, while the result seems to be in meters:      This would mean that the function $length, like the measurement tool, always gives a result in meters, but using a very coarse approximation of the degrees => meters transformation:    Is this a bug? or should it really behave like this? I find it at best counter-intuitive (but maybe it's just me) and, at worse, completely misleading (it makes very little sense to use, everywhere on earth, the length of 1 degree at the Equator). Any input or opinion here? Should I open a bug report (at least for the inconsistency between the preview and the actual result)? What is the origin of "a cut above/below the rest"? Where did the phrases "a cut above the rest" and "a cut below the rest" come from? I'm supposing they came from the same source. I feel it something very obvious, but I don't know what. The following MWE produces a PDF whose TOC has two entries: “Foo” and “Bar” with correct page numbers. So far, so good. However, upon clicking on the link to “Bar”, I am taken to the page for “Foo” instead.  \documentclass{report} \usepackage{hyperref} \newcommand*\backmatter{\setcounter{chapter}{0}}  \begin{document} \tableofcontents \chapter{Foo} \backmatter \chapter{Bar} \end{document}   (Produced with pdflatex, run twice.)  This MWE is whittled down from a (much!) more complex document but the above does seem to reproduce the error reliably.  Re-setting the chapter count seems to confuse hyperref, even though the page references are still accurate. Notice that in my real document, \backmatter does other things, including setting the numbering style to alphabetical so there’s no chance of confusion even though both chapters are ostensibly labelled as “Chapter 1”.  How do I fix this? Is this a bug? Are there workarounds? How do I get rid of this unwanted bar from Eclipse? How can we play split screen in the XBOX 360 version of Minecraft? My little brother and I want to play Minecraft together on the Xbox 360, and we heard there was a split screen option. We've looked inside the options menu but weren't able to find it. Does the game really have a split screen option, and if so, how do we enable it? Where should I start with Star Trek? (TV series only, not the movies) I haven't seen any of the stuff in the Star Trek franchise, except for one of the movies, and now I want to remedy the situation. I am not interested in the movies, just the TV series. However, since the show has many seasons, I am not interested in watching the show start to finish. So, where (i.e what series/season) should I start with? Do I really need to see the series in real-world chronological order?   Note: I am somewhat familiar with Star Trek, that is I know the basic premise - ships in space, with war between different space-faring sentient species. What is a historical lock, and what is it used for? Historical locks are sometimes applied to questions.   What is a historical lock? What is the purpose of a historical lock? How are questions affected by historical locking? When is it appropriate to lock a question for historical reasons?  When is it not appropriate? How do I request a historical lock for a question? What should I do if I notice a serious problem with a historically-locked question or one of its answers? Statistics module doesn't show the "Enable access log" checkbox I dont know what to do to show "Enable access log" option.  I activated logging all messages and checked all statistics permissions.  Thanks. What Did Lyanna Stark Say to Ned Stark? In the final episode of season 6 we see that Lyanna Stark is whispering something to Ned. What is she saying? Does "Delete Local Content" retain save files? If you remove a single player game installation with the Delete Local Content option from the Steam Libary, in general will save files be deleted or retained? InDesign: How to restore text-frame position/size to be managed by the master page instead of the actual page? I have some designer that moved slightly a text-frame and in order to be managed again by the master page we need to remove the page and create a new one inserting the content in it.  Is there any different way to do it?  I would like to be able to restore the "power" of positioning/size to the master page because now we need to change the master-page to position the text-frame a little bit to the right and in the case above mentioned will not be updated.  Thanks Prove by induction: $\sum\limits_{k=1}^{n}sin(kx)=\frac{sin(\frac{n+1}{2}x)sin\frac{nx}{2}}{sin\frac{x}{2}}$ $\sum\limits_{k=1}^{n}sin(kx)=\frac{sin(\frac{n+1}{2}x)sin\frac{nx}{2}}{sin\frac{x}{2}}$  Base case: For $n=1$  $sinx=\frac{sinx\cdot sin\frac{x}{2}}{sin\frac{x}{2}}=sinx$  Induction hypothesis: For $n=m$  $\sum\limits_{k=1}^{m}sin(kx)=\frac{sin(\frac{m+1}{2}x)sin\frac{mx}{2}}{sin\frac{x}{2}}$  Induction step: $n=m+1$  $\sum\limits_{k=1}^{m+1}sin(kx)=\frac{sin(\frac{m+2}{2}x)sin\frac{(m+1)x}{2}}{sin\frac{x}{2}}$  Prove: $\frac{sin(\frac{m+1}{2}x)sin\frac{mx}{2}}{sin\frac{x}{2}}+sin(m+1)x=\frac{sin(\frac{m+2}{2}x)sin\frac{(m+1)x}{2}}{sin\frac{x}{2}}$  Left side: $\frac{sin(\frac{m+1}{2}x)sin\frac{mx}{2}+sin\frac{x}{2}sin(m+1)x} {sin\frac{x}{2}}$  How to prove this equality? I used $sin(u)sin(v)$ identity but that didn't help. I've gotten stuck at the following exercise;     There are m functions from a one-element set to the set {1, 2, …, m}.   How many functions are there from a two-element set to {1, 2, …, m}?   From a three-element set? Give a recurrence for the number of T(n) of   functions from an n-element set to {1, 2, …, m}. Solve the recurrence.   I'm not sure how to begin solving it?