웹마짱구의 블로그

linux find & replace

Linux2020. 7. 31. 14:27
728x90

https://linuxize.com/post/how-to-use-sed-to-find-and-replace-string-in-files/

 

sed -i 's/SEARCH_REGEX/REPLACEMENT/g' INPUTFILE

 

 

sed -i 's/Date(2013, 1, 1)/Date(2020, 1, 1)/g' *.php
sed -i 's/Date(2020, 6, 25)/Date(2025, 12, 31)/g' *.php

728x90

https://stackoverflow.com/questions/18024237/increment-row-number-with-laravel-pagination

 

increment row number with laravel pagination

How to make increment row number with laravel pagination ? When i use pagination and i go to page 2 and above it will back to beginning. for example i will paginate(3) <tr...< p=""> </tr...<>

stackoverflow.com

 

 

@foreach ($telephone as $key=> $whatever)

<td>{{ $key+ $telephone->firstItem() }}</td>

@endforeach