User Tools

Site Tools


linux:bashshell

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
linux:bashshell [2016/07/08 07:14] – [update array to file] adminlinux:bashshell [2017/01/12 02:12] – external edit 127.0.0.1
Line 338: Line 338:
 update array to files: update array to files:
 <code bash> <code bash>
-index=0;for i in `cat configs.txt | awk '{print $3}'`; do let "index = $index + 1";echo $i > c$index; done+index=0;for i in `cat configs.txt | awk '{print $3}'`; do let "index = $index + 1";echo $i > c$index.txt; done
 </code> </code>
linux/bashshell.txt · Last modified: 2022/10/29 16:15 by 127.0.0.1