How to edit a config file using the command line?

user6033608

How can I edit a config file in Linux using the command line? For example I would like to update value for FLAGS_PLATFORM or get the value.

Here is the file

FLAGS_PLATFORM=X86
FLAGS_BUILD_TYPE=DEBUG
Diego Torres Milano

You can use sed.

For example:

sed 's/^FLAGS_PLATFORM=X86$/FLAGS_PLATFORM=whatever/' < file

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can we edit generated config file with my project specific parameters in Doxygen using command line?

From Dev

How to read a config file from a command line using perl (automation)

From Dev

How to edit a file from the command line Mac OS X?

From Dev

how do I edit a ~/.git/config file using a text editor?

From Dev

how do I edit a ~/.git/config file using a text editor?

From Dev

How to create .sln file using command line

From Dev

How to create batch file using command line?

From Dev

How to download a zip file using the command line

From Dev

How to elegantly combine Getopt::Long with a config file when the config file can be specified on the command line

From Dev

UNIX command line file edit functionality

From Dev

edit a txt file with DOS Windows command line FOR

From Dev

Edit config file using bash and sed

From Dev

how to edit the nlog config file programmatically

From Dev

How to run a .py file through a batch file using Command line

From Dev

Open file using custom command: how to specify the file in cmd line?

From Dev

How to edit pdf metadata from command line?

From Dev

How to edit pdf metadata from command line?

From Dev

How to use Ruby's command line in-place-edit mode to remove lines from a text file

From Dev

Edit xml file using shell script / command

From Dev

Zipping file using command line

From Dev

Zipping file using command line

From Dev

How can I edit local Group Policy settings using command line?

From Dev

How to get command-line arguments using a text file?

From Java

How do I import an SQL file using the command line in MySQL?

From Dev

How to execute jar file with a external dependency using command line on Windows?

From Java

How to create a signed APK file using Cordova command line interface?

From Dev

How to copy an image to the clipboard from a file using command line?

From Dev

How to copy a file to multiple folders using the command line?

From Dev

How do I deploy a file to Artifactory using the command line?

Related Related

  1. 1

    How can we edit generated config file with my project specific parameters in Doxygen using command line?

  2. 2

    How to read a config file from a command line using perl (automation)

  3. 3

    How to edit a file from the command line Mac OS X?

  4. 4

    how do I edit a ~/.git/config file using a text editor?

  5. 5

    how do I edit a ~/.git/config file using a text editor?

  6. 6

    How to create .sln file using command line

  7. 7

    How to create batch file using command line?

  8. 8

    How to download a zip file using the command line

  9. 9

    How to elegantly combine Getopt::Long with a config file when the config file can be specified on the command line

  10. 10

    UNIX command line file edit functionality

  11. 11

    edit a txt file with DOS Windows command line FOR

  12. 12

    Edit config file using bash and sed

  13. 13

    how to edit the nlog config file programmatically

  14. 14

    How to run a .py file through a batch file using Command line

  15. 15

    Open file using custom command: how to specify the file in cmd line?

  16. 16

    How to edit pdf metadata from command line?

  17. 17

    How to edit pdf metadata from command line?

  18. 18

    How to use Ruby's command line in-place-edit mode to remove lines from a text file

  19. 19

    Edit xml file using shell script / command

  20. 20

    Zipping file using command line

  21. 21

    Zipping file using command line

  22. 22

    How can I edit local Group Policy settings using command line?

  23. 23

    How to get command-line arguments using a text file?

  24. 24

    How do I import an SQL file using the command line in MySQL?

  25. 25

    How to execute jar file with a external dependency using command line on Windows?

  26. 26

    How to create a signed APK file using Cordova command line interface?

  27. 27

    How to copy an image to the clipboard from a file using command line?

  28. 28

    How to copy a file to multiple folders using the command line?

  29. 29

    How do I deploy a file to Artifactory using the command line?

HotTag

Archive