Jump to content

7 posts in this topic

Recommended Posts

Posted

Hi. I have a .dat file which looks like this(very small portion of it just to show how it is)

,"roulette":{"ticketsToPlay":0,"balance":0,"lastNumbers":[],"coinflipBetAmount":0,"depositedItems":[],"betAmount":0},"money":9998.42,"statistics{"signedContracts":0,"boughtCollections":3,"roulettesLost":0,"crashProfit":0,"crashWon":0,"boughtSouvenirs":0,"boughtCollecti9ns":0,"totalClicks":109,"openedCapsules":0,"dailyRewards":0,"jackpotsWon":0,"watchedAds":0," 

 

What I want is to use Shell to go edit the value held by money in the .dat file but I have no clue how. I've searched the internet and found no ways to do what I want. I would want to go to statistics, go back 3 spaces and delete until "money": to have "money":$COINS,"statistics":

Posted

Lookup the SED documentation. Or Google sed specifics like how to replace something in line xyxy because it's doable.

Posted (edited)
8 minutes ago, DiDA said:

Lookup the SED documentation. Or Google sed specifics like how to replace something in line xyxy because it's doable.

The problem with going in lines is that if multiple values are changed above, the lines can change by putting more text over it.

 

EDIT: Nevermind

Updated by japankairu
Posted
3 hours ago, japankairu said:

The problem with going in lines is that if multiple values are changed above, the lines can change by putting more text over it.

 

EDIT: Nevermind

filza use Text editor ?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines