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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -