Wednesday, May 10, 2023

How to write or append a file without opening in Linux?

 echo "hello world" >> /directory_path/my_file.txt

No comments:

Post a Comment

SQL to delete all WooCommerce products except those with "draft" status

 -- Disable foreign key checks (important for InnoDB) SET     FOREIGN_KEY_CHECKS = 0;     -- Delete product meta DELETE     pm FROM     wp_p...