and want to replace the Text between "file://localhost/ and /Documents/ with whatever. (Not literaly whatever, just any other text).
( in BASH/SHELL)
Since this is not a normal sorted text file and instead a plist it seems a quite :wall: task to do.
I guess sed and gawk should be able to do this, yet neither of the solution provided anywhere helped me to accomplish this
I really hope anyone could help me with this since it is driving me crazy.
Thanks in advance for helping out a desperate shell scripting newb:
pasc
BTW: if there is a solution: Can these replacements also be limited to the ocurrences (e.g. only replace the first, second or maybe third occurence ?
Also: Is there any plist parsing utility for shell or awk that can write the parsed result to a new file in easily readable format ?
Do the above, but instead of the "whatever"
read a file in /var/mobile/ called "RELINKING.txt" and paste the first line of that file instead of "whatever"
Is there a way to apply this only to the first, second whatever occurence of finding the strings localhost and Documents in the file ? (not all inisde the file ?)
(unlikely), is there a plist parser for shell or awk ?