Shell script to convert the date format in a file I would like to convert the date format in file, using a shell script.  Input:  S.no|Name|Joining_Date|Address 1|asdasd|09/18/2018|asdas 2|asd|09/18/2018|asdasd 3|asdas|09/18/2018|aadadw   Output:  S.no|Name|Joining_Date|Address 1|asdasd|18/09/2018|asdas 2|asd|18/09/2018|asdasd 3|asdas|18/09/2018|aadadw   Below are the scripts which have tried  Input File: cat datesep.txt  :  asdasd|asdasd|asdasd|30/08/2018|sadasd   asdasd|asdasd|asdasd|12/09/2018|sadasd   asdasd|asdasd|asdasd|23/06/2018|sadasd   asdasd|asdasd|asdasd|26/10/2018|sadasd   asdasd|asdasd|asdasd|23/09/2018|sadasd   asdasd|asdasd|asdasd|12/07/2018|sadasd    cat test.sh    #!/bin/bash   date +'%d-%m-%y'   DATE=`date +%d`   MONTH=`date +%m`   YEAR=`date +%y`   echo "${MONTH}/${DATE}/${YEAR}"     cat test1.sh    #!/bin/bash   SOURCEDATE=`awk -F '|' '{print $4}' /home/work/datesep.txt`   TEMP=$SOURCEDATE   echo $TEMP   DATE=`cut -c 1-2 ${TEMP}`   MONTH=`cut -c 4-5 ${TEMP}`   YEAR=`cut -c 7-10 ${TEMP}`   echo "${MONTH}/${DATE}/${YEAR}"     cat test2.sh    #!/bin/bash   awk -F '|' '{print $4}' /home/work/datesep.txt &gt; /home/work/temp.txt   TEMP=$SOURCEDATE   echo $TEMP   DATE=`cut -c 1-2 /home/work/temp.txt`   MONTH=`cut -c 4-5 /home/work/temp.txt`   YEAR=`cut -c 7-10 /home/work/temp.txt`   echo "${MONTH}/${DATE}/${YEAR}"     cat test3.sh    #!/bin/bash   awk -F '|' '{print $4}' /home/work/datesep.txt &gt; /home/work/temp.txt   TEMP=/home/work/temp.txt   COUNT=`cat ${TEMP} | wc -l`   echo $COUNT   echo $TEMP   LINE_NUM=1   while read LINE   do           DATE=`awk -F '/' '{print $1}' LINE`           MONTH=`awk -F '/' '{print $2}' LINE`           YEAR=`awk -F '/' '{print $3}' LINE`           echo "${MONTH}/${DATE}/${YEAR}"           ((LINE_NUM++))   done &lt; $TEMP    cat test4.sh    #!/bin/bash   awk -F '|' '{print $4}' /home/work/datesep.txt &gt; /home/work/temp.txt   TEMP=`/home/work/temp.txt`     for LOOP in `/home/work/temp.txt `   do           DATE=`awk -F '/' '{print $1}' $LOOP`           MONTH=`awk -F '/' '{print $2}' $LOOP`           YEAR=`awk -F '/' '{print $3}' $LOOP`           echo "${MONTH}/${DATE}/${YEAR}"   done
Change date and time format from csv file without using date -d I have a .csv file contains   Data1|Data2|10/24/2017 8:10:00 AM   I want to change date and time format of column 3 as following:  From 10/24/2017 8:10:00 AM (12-Hour) to 20171024 08:10:00(24-hour).  Not using -d
What is the maximum length of a URL in different browsers? What is the maximum length of a URL in different browsers? Does it differ among browsers? Is a maximum URL length part of the HTTP specification? Why does English spelling use silent letters? Deleting a middle node from a single linked list when pointer to the previous node is not available Is it possible to delete a middle node in the single linked list when the only information available we have is the pointer to the node to be deleted and not the pointer to the previous node?After deletion the previous node should point to the node next to deleted node. Can gravity be interpreted as the acceleration of spacetime towards an object? Greetings StackExchange!  We were having a conversation with a peer about stupid ways of interpreting theories. We would go to and fro with an interpretations, but we would always find a way to disprove them. There was one, however, that we couldn't refute:  Gravity on a plane in a bidimensional space can be interpreted as the acceleration of spacetime towards an object.   We tried to invalidate in saying that the inertial mass and gravitational mass would be different, thus violating GR, but after some thought this couldn't be. The gravitational mass would accelerate spacetime towards it. If that object we were to be pushed, the pulling of spacetime would make it difficult for it to move.   We know for a fact this can't be true, and we would greatly appreciate any refutation of this thought. I can clarify if needed, or do a sketch. I apologise in advance as I'm not a native speaker. If $a$, $b$, $c$ are the roots of $x^3-6x^2+3x+1=0$, find all possible values of $a^2b+b^2c+c^2a$ Let $a$, $b$, $c$ be the roots of $$x^3 - 6x^2 + 3x + 1 = 0$$ Find all possible values of $a^2 b + b^2 c + c^2 a$. Express all the possible values, in commas.  I've already tried to bash out all the roots, Vieta's Formula, and try to manipulate the equation to become easier to work with. However, Vieta's didn't get me anywhere, and I couldn't find a way to make the equation simpler or anything. Any hints to start this problem? Entity Framework and SQL Server View gnome-software on Ubuntu 16.04 doesn't work I would like to clarify something that I don't think is clear in   The first automatic delete rule kicks in at 9 days for closed questions:     If the question was closed more than 9 days ago, and ...         was not closed as a duplicate   has a score of 0 or less   has no answers with a score > 0   some other criteria that don't matter right now...      Then, at 30 days, there's:     If the question is more than 30 days old, and ...         has −1 or lower score   has no answers   is not locked      This rule applies to both open and closed questions, but it doesn't mention the same exemption for duplicates.  I'm pretty sure that I've seen old, downvoted duplicates disappear on ServerFault (and that fits what the rule says), but I'm also sure I've seen lots of comments along the lines of  "duplicates aren't deleted."  So what I'm after is a clear statement from a power-that-be or a clear reference that says "duplicate questions fall under the same 30-day automatic deletion rule as any other question."  (or that they don't)  (Note: I realize this doesn't apply the stub left behind when a question is merged into another.  Those "stubs" are locked and are never deleted.) Short story about robots on a farm after losing communications, go out to rule the world $a _{1} = \frac{1}{2}, a _{2} = 1, a _{n}= \frac{1}{2} a_{n-1} + \sqrt{a _{n-2} }$  Show by the induction that it's $\le 4$ and also by the induction that $a_{n+1}-a_n \ge 0$  If it comes to first I don't know what to do and if it comes to second I tried many different ways but I couldn't prove it. Is there a way to run Python on Android? Highlight tags corresponding to our favorites Each of us have our list of favorite tags.  When a question has tag(s) that match one or more of ours, the background gets highlighted, drawing our attention to the question.  It would also be nice to highlight (perhaps using a bold font) the tags(s) that matched our own, so one could quickly do a further filtering of the question to see if it is of interest at the present time, like the following:    e.g. arduino is in my list of favorites, but the other two in each question are not. Exporting PDF with Hyperlinked Attributes from ArcMap? I'm using ArcGIS 10.1 and would like to export a map to a pdf, preserving feature's attributes. I would like to be able to identify, for example, a point feature from the map on pdf with its underlying features (essentially hyperlink to a document or URL). I know one can export to such a pdf in ArcMap, with an advanced option of exporting features with attributes. I use Adobe Acrobat Pro v.10, and cannot seem to be able to find a way to bring these attributes up.   Is this possible? Effective Refractive Index in Paper I am reading the paper, entitled "Artificial uniaxial and biaxial dielectrics with use of two-dimensional subwavelength binary gratings" by Eric B. Grann, M. G. Moharam, and Drew A. Pommet.   In the paper they mention this formula:        Do you know how it can be derived and where it comes from ? I am studying homology groups and I am looking to try and develop, if possible, a little more intuition about what they actually mean. I've only been studying homology for a short while, so if possible I would prefer it if this could be kept relatively simple, but I imagine it is entirely possible there is no real answer to my query anyway.   As I said above, I want to gain a little deeper understanding of what the n-th homology group actually means: I can happily calculate away using Mayer-Vietoris but it doesn't really give me a great deal of intuition about what the n-th homology group actually means. For example, with homotopy groups, the fundamental group is in some sense a description of how loops behave on the object in question, and it is obvious to me why that is what it is for say, the torus or the circle. However, I have no idea what, if anything, I am actually saying about a triangulable object when I talk about it having 0-th homology group this or 1st homology group that.  The best I have been able to find online or in my limited book selection is the brief description "intuitively, the zeroth homology group counts how many disjoint pieces make up the shape and gives that many copies of $\Bbb Z$, while the other homology groups count different types of holes". What 'different types of holes' are there, roughly speaking? I appreciate that it may often be completely non-obvious what the low-order homology groups are for some complicated construction, but perhaps in simpler examples it might be more explicable. Are there (simple) cases where I could say, just from looking something like e.g. the torus, what its zero-th or first or second etc. homology group was based on the nature of the object? I guess in the zero-th case it is, as my source () above says, related to the number of disjoint pieces. Can we delve deeper than this for the other homology groups?   Any book/website suggestions would be welcomed (preferably websites as I am nowhere near a library!) - I have Hatcher but not a great deal else, and I haven't gleaned as much as I wish to from that alone. Of course I know that there is a great deal we don't know about homology groups even today, so I don't expect some magical all-encompassing answer, but any thoughts you could provide would be appreciated. I hope this question is appropriate for SE Mathematics, apologies if not! -M Find the volume common to two circular cylinders, each with radius r, if the axes of the cylinders intersect at right angles. (using disk/washer)  I saw no example of this problem anywhere.. I saw an example how to solve it without calculus but I'm afraid that'll be deductions on my test.. I have the volume of a cylinder and the method of area between two curves but this is out of my reach.... I don't know what I can try... PHP: How do I loop through every XML file in a directory? We add negative numbers and zero to natural sequence to make it closed under subtraction, the same thing happens with division (rational numbers) and root of -1 (complex numbers).  Why this trick isn't performed with division by zero? I need a P&amp;S camera for my family. They would probably use it for family functions,trips etc. I want a camera with flash for taking good night photos with a decent quality. They are not technically inclined and I dont want much manual features apart from the normal modes (potrait,sports,landscapes). Decent picture quality for normal conditions is the criteria I am looking for. If the camera looks little big, it is an added advantage.  I have looked at few models like Fujifilm Fine Pix F800 EXR, the Panasonic Lumix DMC series and a Nikon P510. But I am confused with all the options and the different reviews on different sites. My thinking is that for a point and shoot camera, it is better to consider brands other than Nikon and Canon since they may provide better value for money.   Can someone recommend some good resources for analysis and what kinds of cameras I should consider - a bridge camera, a basic point and shoot, or some other type? When to use "I" and "me" in an answer