linux - mv wrapped inside an if in shell scripting -


How do you do this? What am I thinking like this .. also, do I need to work and work? Or just one of them

  if [MV 1.txt & gt; 2.txt == '0'] then resonate "success" and then resonate "failure"    

will be enough in the bus:

  mv 1.txt 2.txt & amp; Amp; Echo "success" || If you want to use traditional  if / fi>  
  If using mv 1.txt 2, then echo "failure"  < / Pre> 

.txt then echo "success" and "failure" to echo

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -