SilkyFalcon

Generation

linuxMon, 05 Dec 2022

If "Karcsi" is not in the list add Karcsi 100 times, then delete and add again

grep -q -F 'Karcsi' test.txt || (for idx in $(seq 1 100); do echo 'Karcsi' >> test.txt ; done; rm test.txt; touch test.txt)

Questions about programming?Chat with your personal AI assistant