Shell script to -10 to a text file
Ok, not the best title...
I have this small text file my music player uses to state current data.
looks like this
"
audio_device_state:1:Sound Card
state: play
current: 0
time: 596
random: 0
repeat: 0
single: 0
consume: 0
crossfade: 0
playlist_begin
0:Voyage of the Beagle
...
"
I need a tiny script to change the "time: A" part to "time: A-10", in other words I want script to remove 10 from the time value.So my player with start playing 10seconds earlier in the file. How can I do this? sed? awk? grep?
Last edited by StaneASDASD; 10-07-2010 at 05:37 AM.
|