The  find command  find /MOS -name "001.txt"   The print      /MOS/XNF/N01/001.txt   My questions  Which option could only print the filepath,without the filename ?  The print       /MOS/XNF/N01/
Please check the below  awk '/SOURCE/ {print $3}' /MAC/Delete_Name.txt |      while IFS= read -r file; do find /OS/ -iname "$file.pdf" ; done    This results in output like this:  /OS/001DAY/11file/cooke.pdf   We want it to only print the file's path, like this:    /OS/001DAY/11file/
I'm trying to build a datapack that lets you craft xp bottles from glass bottles at the expense of 7 xp per bottle (because they drop 3 to 11 xp so the average is 7). I have almost everything working except for a check for if they have too little xp. If they have 7 or less xp, I would like to remove one bottle of enchanting from their inventory and give them one glass bottle, because the function for removing xp is called after they've crafted one and a scoreboard has counted it. My remove function currently looks like this:  #create dummy scoreboard to multiply bottles crafted by seven to get xp to be removed scoreboard objectives add 7xp dummy scoreboard players set @s 7xp -7 scoreboard players operation @s xpCrafted *= @s 7xp  #how do I get the value in xpCrafted into the command to remove xp? xp add @s -7 points  #cleanup scoreboard players reset xpCrafted scoreboard players reset 7xp scoreboard players set @e xpCrafted 0 scoreboard objectives remove 7xp   And my tick function like this:  execute as @e[scores={xpCrafted=1..}] at @s run function craft_xp:removexp   As the inline comment says, how do I get that value in xpCrafted into my xp removing command, and also how should I check to make sure the player has enough xp for the operation in the tick command (or elsewhere)? Presumably I would run a different command to remove the extra bottle if they didn't have enough xp, but I don't know how because there doesn't seem to be any type of if/else structure in commands. Finally, should a question like this be in two different questions or is one ok on this forum? I'm trying to include a file with a specific shape (cup) into another TikZ image, in order to use the cup as a "stamp" to draw more complex figure. The file is located in /usr/share/tikzit/shapes/cap.tikz  \documentclass{article} \usepackage[svgnames]{xcolor} \usepackage{tikz} \usetikzlibrary{decorations.markings} \usetikzlibrary{shapes.geometric} \pagestyle{empty}  \pgfdeclarelayer{edgelayer} \pgfdeclarelayer{nodelayer} \pgfsetlayers{edgelayer,nodelayer,main}  \tikzstyle{none}=[inner sep=0pt] \tikzstyle{node1}=[cap,fill=White,draw=Black]  \tikzstyle{simple}=[-,draw=Black,line width=2.000] \tikzstyle{arrow}=[-,draw=Black,postaction={decorate},decoration={markings,mark=at position .5 with {\arrow{&gt;}}},line width=2.000] \tikzstyle{tick}=[-,draw=Black,postaction={decorate},decoration={markings,mark=at position .5 with {\draw (0,-0.1) -- (0,0.1);}},line width=2.000]  \usepackage[graphics,tightpage,active]{preview} \PreviewEnvironment{tikzpicture} \newlength{\imagewidth} \newlength{\imagescale}  \begin{document} \begin{tikzpicture}     \begin{pgfonlayer}{nodelayer}         \node [style=node1] (0) at (-2.5, 1.5) {};     \end{pgfonlayer} \end{tikzpicture}  \end{document}   The code i want to include is the following:  \begin{tikzpicture}         \path [use as bounding box] (-2,-2) rectangle (2,2);         \begin{pgfonlayer}{nodelayer}                 \node [style=none] (0) at (0, 0.75) {};                 \node [style=none] (1) at (-0.5, 0) {};                 \node [style=none] (2) at (0.5, 0) {};         \end{pgfonlayer}         \begin{pgfonlayer}{edgelayer}                 \draw [in=0, out=90] (2.center) to (0.center);                 \draw [in=270, out=-90, looseness=0.75] (1.center) to (2.center);                 \draw [in=90, out=180] (0.center) to (1.center);         \end{pgfonlayer} \end{tikzpicture}   But it seems I miss how to specify the directory of cup. I get this error:     Package pgfkeys Error: The key '/tikz/cap' requires a value. I am   going to ignore this key.   It seems like I have to deal with tikzstyle or pgfkey, but I don't know how to specify an external file. How do you define an arbitrary sort sequence for views? What is the most preferred and easiest way to do pagination in ASP.NET MVC?  I.e. what is the easiest way to break up a list into several browsable pages.  As an example lets say I get a list of elements from a database/gateway/repository like this:  public ActionResult ListMyItems() {     List&lt;Item&gt; list = ItemDB.GetListOfItems();     ViewData["ItemList"] = list;      return View(); }   For simplicity's sake I'd like to specify just a page number for my action as parameter. Like this:  public ActionResult ListMyItems(int page) {    //... } Does SOQL join not respect OWD /sharing settings? A->B are two objects connected using lookup relationships. If somehow, I get read only access to child record but do not have access on parent record then still i am able to see data from parent record through formula fields. Similarly will SOQL in Apex also allow me to fetch fields from parent record regardless of using 'WITH Sharing ' keyword at class level? Spacial curvature and expanding space If we take the analogy that in an empty space the space is just a flat sheet then if there is a single planet or a star then the flat sheet will curve below the planet leaving a curvature shaped like a hemisphere below the object, my question is, Does this curvature change as space expands? I'm trying to identify a novel about an alien race coming to Earth. They are rabbit-like.    I thought it was Niven or Pournell but I cannot remember the title.  It was Quotzal or something like that. For example, rigid bodies and fluid. I know it's kind of possible by setting the rigid bodies as fluid obstacles, but it's not "true" interaction in that the fluid does not affect the rigid bodies...  By "true" interaction I mean where two (or more) physics systems affect each other simultaneously. For example, with rigid body and cloth, the rigid body affects the cloth but the cloth doesn't affect the rigid body (at least the way I'm doing it), so the rigid body just eventually stretches the cloth to an extreme and falls through...  Are there any ways to achieve this? (for any interaction, not just rigid bodies and fluid)  Or, if not, does anyone know whether there are any plans to implement this sort of feature?  Thanks How many combinations of groups are there where no member of a group has been with another member before? I found this hard to word in the title, so let me give an example. I have 16 students, and I want to split them up into 4 groups of 4. However, I want to make sure that every time I have a new combination of groups, that a student has never been with any of their new groupmates before. I found info on how to separate objects into groups, but not in only unique ways as I've described above. I think I figured this out the rote way, by assigning each student a number and then finding the unique combinations, and got 3. But I'd like to know the math behind it, and how it could be applied to other configurations (20 students w/ 4 groups of 5?). Thanks for any help you can give! Can't start ubuntu-desktop after upgrade to 18.04 After the restart step of upgrading Ubuntu to 18.04, tty is opening instead ubuntu-desktop. And when I enter my login name and password, I am still in the tty. This is happening again in every restart. How can I start the graphical desktop as normal? Getting Windows 7 admin account password? Singular verb after two noun phrases joined by "and" that can be thought of as a single thing I am having trouble with the following sentence:      "The complexity and diversity of the new platforms is worrying us."   If "complexity" and "diversity" constitute two subjects, then the verb should presumably be "are"; however, the sentence feels more natural with "is". Is this correct? Is there a linguistic term for this occurrence?    The following questions address the general topic of compound subjects, but not specific cases like this:             And the following question seems to have somewhat inconclusive answers:         So this question is not really a duplicate of these three. The proof of shrinking coefficients using ridge regression through "spectral decomposition" I have understood how ridge regression shrinks coefficients towards zero geometrically. Moreover I know how to prove that in the special "Orthonormal Case," but I am confused how that works in the general case via "Spectral decomposition." Prove the following in $S_n$:  Let $\alpha = (a_1,a_2,\ldots,a_s)$ be a cycle and let $\pi$ be a permutation in $S_n$. Then $\pi\alpha\pi^{-1}$ is the cycle $(\pi(a_1),\ldots,\pi(a_s)).$     I'm not sure where to even start. What regulations should a European driver know when driving in the US? There are the obvious ones. The US has the keep-your-lane system, where as in Europe you are expected to keep to the right (left for UK) as long as possible.  On my latest travel to the US, I was confronted with the possibility to go through a red light if you turn right, unless it is explicitly not allowed.  What should a european driver know when driving in the US? What are the do's and don'ts compared to driving in Europe. Why is my network interface named enp0s25 instead of eth0? A lot of my scripts stopped working after installing Ubuntu 15.10 and I have trouble remembering this new name as I was used to ethx and wlanx for years. Is there a reason for this change? Do I have to get used to this or can I just rename it and go back to good old eth0?  $ ifconfig  enp0s25   Link encap:Ethernet  HWaddr 77:5a:5e:a6:86:d5         inet addr:192.168.31.239  Bcast:192.168.31.255  Mask:255.255.255.0       inet6 addr: fe80::725a:b6ff:fea6:86d7/64 Scope:Link       UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1       RX packets:4833 errors:1332 dropped:0 overruns:0 frame:666       TX packets:5589 errors:0 dropped:0 overruns:0 carrier:0       collisions:0 txqueuelen:1000        RX bytes:3266446 (3.2 MB)  TX bytes:1046654 (1.0 MB)       Interrupt:20 Memory:d3500000-d3520000 Cancellation of addition on convex sets I  found a question about a property of the . However the question was not properly answered (it used a projection argument which might not be true in a general Banach space).  I was wondering whether the following (weaker) statement holds:  Let $X$ be a Banach space and suppose $A,B,C_0\subset X$ are bounded, closed, convex and non-empty subset. Do we then have $$A+C_0=B+C_0\implies A=B?$$ Quotes insert problem while working with webservice quotes are not inserting may i know what i have to do. my code is     for(integer l=0;l&lt;reqquotes;l++){          qu = new Quote();          qu.Name = qName;          //opp.CloseDate =system.today();           qList.add(qu);             insert oppList;          insert qList;     } I want to make someone a present by subscribing for him to a mathematical journal. (It should appear every month or every two months). The contents should be comprehensible to an undergraduate in mathematics, and be about a broad selection of topics (for example not only analysis).   I expect the content to be something like proposing interesting problems and then giving solutions with some references for further study. Are there some famous journals you could suggest me? How can I find color codes on Mac? I used to find color codes which I want to use for texts or background colors on htmls with color edit tool of MS paint which pre-installed on Windows. But now I use Mac instead of Windows. How can I find color codes with Mac? Is an software like MS paint pre-installed on Mac?