Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
basharrayadd [2018/06/03 13:15]
yassine chaouche
basharrayadd [2018/06/03 13:56] (current)
yassine chaouche
Line 3: Line 3:
 [[index|Home]] > [[Computers | Computers]] > [[programming|programming]] > [[scripting]] > [[:​bash|bash]] > [[BashArrays]] > [[basharraydd]] | [[About]] [[index|Home]] > [[Computers | Computers]] > [[programming|programming]] > [[scripting]] > [[:​bash|bash]] > [[BashArrays]] > [[basharraydd]] | [[About]]
  
-You don't, you just recreate a new array w/ the old one plus the new value(s)+First method : use +=(new elements) 
 + 
 +<​code>​ 
 + for file in ${files[*]} 
 + do 
 +     EXTRAFILES+=($CURRENTFOLDER/​$file) 
 + done 
 +</​code>​ 
 + 
 + 
 +Second method
  
 <​code>​ <​code>​

QR Code
QR Code basharrayadd (generated for current page)