Search Results

Search: Posts Made By: jcanale
1,481
Posted By jcanale
I will do it this week-end, I swear ;) ...
I will do it this week-end, I swear ;)

Thanks !
1,481
Posted By jcanale
Extract a value using sed (easy)
I have this command to replace the version value from PROGRAM (for example here PROGRAM == player) by NEWVERSION


sed "/^ *$PROGRAM:/{N; s/[^:]*$/ $NEWVERSION/;}" -i $PRDFILE

player:
...
1,071
Posted By jcanale
sounds great :) Thank you dude !
sounds great :)

Thank you dude !
1,071
Posted By jcanale
You rox :) ---------- Post updated at 11:27...
You rox :)

---------- Post updated at 11:27 AM ---------- Previous update was at 11:12 AM ----------

Last issue (lol): When I want to replace "player", it replaces "player_old" also :) Is it a...
1,071
Posted By jcanale
Thank you, The command line works fine. ...
Thank you,

The command line works fine.

But if I call your command line from a BASH file, it does not work. Sounds weird

if [[ $ENV == "PRD" ]]; then
echo " Environment : $ENV"
echo "...
1,071
Posted By jcanale
Changing value using 1 shell command
Hello all,

I would like to know how to change a value in my file.txt with 1 command. Using sed seems impossible since it contains \n and \s...

For example:

player:
version:...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 02:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy