I want to move(archive) the multiple files from say directory /users/wahasan to /users/wahasan/old. The archive files should be autodated.  files are of the format CHKBOI.pos, CHKUTI.pos, CHKSBI.pos,so on. here CHK and .pos are common in every file name.  I need a single shell script that should move all the files from source directory to destination with date-stamp.
I have several files that I ftp each hour.  The receiving system needs to have some sort of identifier that they came from the same batch, so I would like to append a timestamp to the filename.  That alone is fairly easy, but since I want each file to have the same timestamp (so it can serve as the batch identifier), I cannot figure out how to do this.  So, I have:  file1.txt file2.txt file3.txt   And I want to have:  file1_20141110184303.txt file2_20141110184303.txt file3_20141110184303.txt   Any use of the date +%Y%m%d%H%M%S after the first use will obviously result in a different values in seconds, so I would like to have the first timestamp appended to the remaining files.
How to space columns evenly in a table with multicolumns? Use a partitioned live usb I have a USB device and i'm trying to create it in a way that it has 2 partitions: one for a live linux disc and the other for document storage.  I created the partitions using gparted and and set a boot flag to the one I want to use as the live disc. Now, I have a usb like this:  Disk /dev/sdc: 14.6 GiB, 15623782400 bytes, 30515200 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xc3072e18  Device     Boot   Start      End  Sectors  Size Id Type /dev/sdc1       8439808 30515199 22075392 10.5G 83 Linux /dev/sdc2  *      51200  8439807  8388608    4G  b W95 FAT32   I then used dd to flash an Ubuntu iso to /dev/sdc2  sudo dd if=/dev/shm/ubuntu-17.04-desktop-amd64.iso of=/dev/sdc2 bs=4M   When the disc is flashed onto the usb drive, I try to boot from my laptop and it shows "Operating system not found". When i try to use qemu/kvm, it shows a kernel panic like this:    How would I be able to do this properly? Does $k+\aleph_0=\mathfrak{c}$ imply $k=\mathfrak{c}$ without the Axiom of Choice? I'm currently reading a little deeper into the Axiom of Choice, and I'm pleasantly surprised to find it makes the arithmetic of infinite cardinals seem easy. With AC follows the Absorption Law of Cardinal Arithmetic, which states that for $\kappa$ and $\lambda$ cardinal numbers, the larger infinite and the smaller nonzero, then $\kappa+\lambda=\kappa\cdot\lambda=\max(\kappa,\lambda)$.  I was playing around with the equation $k+\aleph_0=\mathfrak{c}$ for some cardinal $k$. From the above, it follows that $\mathfrak{c}=k+\aleph_0=\max(k,\aleph_0)$, which implies $k=\mathfrak{c}$.  I'm curious, can we still show $k=\mathfrak{c}$ without the Axiom of Choice? Is it maybe possible to bound $\mathfrak{c}-\aleph_0$ above and below by $\mathfrak{c}$? But then I'm not quite sure such algebraic manipulations even mean anything, or work like that here. Certainly normal arithmetic does not! Thanks. Showing that a function is not differentiable error in running bash script as root I have a simple shutdown script which i want to run as root  shutdown -h +30; echo "succesfull";   I have followed these answer, to make my script root.  first I run this command  sudo chown root.root $HOME/test/test.sh sudo chmod 4755 $HOME/test/test.sh   and then made changes in sudoers  sudo visudo   added this command after this line %sudo   ALL=(ALL:ALL) ALL  eka ALL=(ALL) NOPASSWD: $HOME/test/test.sh   But when i executed my script its showing this error  shutdown: Need to be root succesfull Recovering an accidentally deleted  folder in OSX - no Time Machine or backup available I am a longtime Windows user, recently switched to Mac. I replaced folder with another folder (they had the same name) thinking that OS X will merge the contents of both folders. But OS X deleted the original folder and replaced it with the new one. Windows merges both the folders (I do this often in Windows). I have now lost hundreds of files. I haven't enabled Time Machine. I've tried using Finder's Undo, but that doesn't work.  Currently, I am trying to recover my data using . It shows estimated time as 7 hours, 31 minutes. Does anyone know any free data recovery software that's faster and more powerful? How to set date format when manually inserting date on excel, without changing regional settings? In my locale, date is inserted as dd/mm/yyyy or variations of that (including dd-mm-yy). I made an Excel form (in normal Excel file), already formatted to show date as dd/mm/yyyy, but when I typed "05/04/2015" it will be shown as "04/05/2015". I know this can be solved by changing the regional setting to my local setting, but I need to distribute this form to a lot of people with no knowledge of changing regional setting, and assuming no one can teach how to, hence my question :  Is there any way to input "05/04/2015" and be recognized as "5 April 2015", without having to change regional settings ?  Additional note: When I mean "4 May 15" (typed in 4/5/15), Excel will recognize this as "5 April 15" because Excel takes input as "mm/dd/yy" format. I need to change the default behavior of Excel to take as "dd/mm/yyyy" as this is the way the users will input.  If possible, the setting should also included/embedded on the file to allow end-users use the form without even changing setting.  I'm not familiar with macros and VBA, but willing to try those :)  EDIT : this is related to my question :   but I don't need to change the whole formula bar, as long as Excel recognize that I'm typing in dd/mm/yy format. $ax\equiv b\pmod{\! n}$ has a unique solution if $\gcd(a,n) = 1$ How can I prove that $\,ax\equiv b\pmod{\! n}\,$ has a unique solution if $\,\gcd(a,n) = 1$?  I suspect that the Bezout identity for $\,\gcd(a,b) = 1$ is the key but I don't see how to proceed. Prove that   $$\sum^{n}_{i=1}\binom{n}{i}i=n2^{n-1}$$   I can't find counting interpretations for either of the sides. A hint of "if $S$ is a subset of $\{1, . . . , n\}$ and $S^\prime$ is its complement then $|S| + |S^\prime| = n$" was also given, but I still don't know how to begin. How to install Wi-Fi driver for Realtek RTL8821CE on Ubuntu 18.04? How to work the BibTeX? I have searched the tutorials but have not been successful in understand them. The tutorials always mensionam concepts that I do not know. I would like to understand the basics of BibTeX.  By basics I mean:   How do I install BiBTeX? How to build a file in bib? For this question assume that I already have the bibtex format each reference provided by databases like MathSciNet. See observation 1 below. What I write commands in the file format. Tex to call call the format file bib? How to exploit the format of the bibliography that comes out in PDF? The commands are made in the preamble of the file. Arquifo bib or format. Tex? What must be the BiBTeX with biblatex? Is there any tutorial (in pdf or video) that teaches step by step how to operate BiBTeX?   Observation 1 I already have the bibtex format each reference provided by databases like MathSciNet:   @article {MR2373353,  AUTHOR = {Avila, Artur and Lyubich, Mikhail},  TITLE = {Hausdorff dimension and conformal measures of {F}eigenbaum {J}ulia sets},  JOURNAL = {J. Amer. Math. Soc.},  FJOURNAL = {Journal of the American Mathematical Society},  VOLUME = {21},  YEAR = {2008}, NUMBER = {2},  PAGES = {305--363},  ISSN = {0894-0347},  MRCLASS = {37F35 (37F10 37F25)},  MRNUMBER = {2373353 (2009i:37112)},  MRREVIEWER = {Feliks Przytycki},  DOI = {10.1090/S0894-0347-07-00583-8},  URL = {http://dx.doi.org/10.1090/S0894-0347-07-00583-8}, } Comparing nullable column values using "IS NULL" versus "= NULL" I'm dealing with nullable values in a column of a table, i'm wondering why this:  with cte as (     select 'c1'::text as c1,null::text as c2     union     select 'c2'::text as c1,null::text as c2 ) select * from cte where c2 is null   returns a result set with the two "rows" having a null value in c2; comparting to this query:  with cte as (     select 'c1'::text as c1,null::text as c2     union     select 'c2'::text as c1,null::text as c2 ) select * from cte where c2 = null   that returns an empty result set!!  so it looks like that field is null is actually different from field = null? the question is... is there "null-compatible operator" to use? so i can write the comparision like: column_name = $1 and argument $1 can be a not null or null value. IF $1 is a null value then it will semantically equals to write as IS NULL, ELSE (if $1 is not a null value) then it would be semantically equals to = $1.  P.D: This question also applies to the case is NOT NULL versus &lt;&gt; NULL If $p$ and $q = 2p + 1$ are both odd primes, show that $-4$ and $2(-1)^{(1/2)(p-1)}$ are both primitive roots modulo $q$.   I cannot get heads nor tails of how to even start this let alone finish it Real life uses of Moment generating functions In most basic probability theory courses your told moment generating functions (m.g.f) are useful for calculating the moments of a random variable. In particular the expectation and variance. Now in most courses the examples they provide for expectation and variance can be solved analytically using the definitions.   Are there any real life examples of distributions where finding the expectation and variance is hard to do analytically and so the use of m.g.f's was needed? I'm asking because I feel like I don't get to see exactly why they are important in the basic courses. "inputenc Error: Unicode char \u8" error while trying to write a degree symbol (invisible character) No matter how I try to do it I always get the following error :      ! Package inputenc Error: Unicode char \u8:­ not set up for use with LaTeX.    I have tried using ­­­$^{\circ}$, \deg, \textdegree, pasting the ° symbol directly, to no avail.  Here is the header of my document, in case one of those could be causing the errors :  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[francais]{babel} %\FrenchItemizeSpacingfalse \frenchbsetup{CompactItemize=false} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amsthm} List all the directories under the current one If $f_k \to f$ a.e. and the $L^p$ norms converge, then $f_k \to f$ in $L^p$ Let $1\leq p &lt; \infty$. Suppose that    $\{f_k\} \subset L^p$ (the domain here does not necessarily have to be finite),  $f_k \to f$ almost everywhere, and  $\|f_k\|_{L^p} \to \|f\|_{L^p}$.    Why is it the case that $$\|f_k - f\|_{L^p} \to 0?$$   A statement in the other direction (i.e. $\|f_k - f\|_{L^p} \to 0 \Rightarrow \|f_k\|_{L^p} \to \|f\|_{L^p}$ ) follows pretty easily and is the one that I've seen most of the time. I'm not how to show the result above though. Can someone help me elucidate the definition of "income" from a tax perspective? More specifically, if Joe is paid for his work in avocados instead of dollars, then would Joe be exempt from paying any income tax for the year? Or would the value of avocados earned for the year be translated into dollars which would then be considered Joe's annual income? If so, what guidelines would one use to make this translation? (Make the assumption that Joe does not sell the avocados (for dollars) at a later date and either eats them or trades them for other real property)  What if he was paid in gold instead of avocados? Limit position rigidbody How can I limit the position of a rigidbody, between two values ​​if I use this code:  public Vector3 dir;  Rigidbody rb;  void Awake() {     rb = GetComponent&lt;Rigidbody&gt;(); }  void FixedUpdate() {     rb.velocity = new Vector3(0f, 0f, 6f);      rb.AddForce(dir * 1f, ForceMode.VelocityChange); }   If I use Vector3.Clamp then the object will shake CommonMark regression: image embed exclamation sign syntax broken after  tag