James via linux wrote on 2025-06-22 19:23:

I want a one liner to edit a file in place to change:
CONFIG_TARGET_ROOTFS_PARTSIZE=103
to
CONFIG_TARGET_ROOTFS_PARTSIZE=255


Assuming file is called $file_name, try this:

sed -i -e 's/CONFIG_TARGET_ROOTFS_PARTSIZE=103/CONFIG_TARGET_ROOTFS_PARTSIZE=255/' $file_name




To unsubscribe send a blank message to [email protected]
To get help send a blank message to [email protected]
To visit the archives: https://lists.linux-ottawa.org

Reply via email to