[GNC] - File Path for associated files

Stephen M. Butler kg7je at arrl.net
Wed Sep 12 18:21:49 EDT 2018


On 09/12/2018 02:56 PM, John Sears via gnucash-user wrote:
> I tried gedit and atom ..  but only seem to get gibberish..    my
> first few lines..  ù
>
> "�a�`��0;��F����%V����f
�`uK@�S@�g�u�t����|Ϭ�����<>���==>=����mx먞��r|�������ݒ���������O����_��?������7���7����~����o}�,ǧ߼}z��;���'���o�||�����뗎O������~��w��{|.��~R��C?��{�=;�u�=�#.�������\~Ƿ���yK?��{������>?;�=\_�|���ß^:���.��޿W}���g5?;;SH����.����xu-b)g�����q��������������������8��;�o�����8���}{v���1��5Ϟ�?�~��w�'�>>����֋�.����l�z8��{�O�;��;zq̥����i�=���U>+׭r?���(~
��������<��M痏������������������I��<
�r���o�z��.����\�����⠷AU���}��
=?��ώ�[�Fc,��V
;+��5��e�����Ż^��Kħ��
> �������?����û������__z����Y��t;�O�[�_�t��'���__>|�t79���|�=��_}���g�s�z�ˏ�.�tx����y�r��������"
>
>
>
> I'll investigate sed
>
>

I think this is a compressed file.  Your earlier editor must have
automatically uncompressed it.  Perhaps why GNC couldn't open as it may
have left it uncompressed.  On my box I made a copy of the gnucash file
and called it 'smb.gz'  then the command 'uncompress smb.gz' worked
great and left a file called 'smb' that I could open with vi.  Sed
should also be able to handle the resulting file.

Just remember to compress it again and change the name back to the
original (keep the original under a different name).

--Steve

PS.  I forgot what strings you were changing but I used to use sed on a
daily basis.  So, if you need help just hit the list again.
> On 12/09/2018 23:53, Adrien Monteleone wrote:
>> You should not need to manually mount any external drive like a USB
>> key. It will automount for you in the /media part of the file tree as
>> you noticed.
>>
>> Your issue is likely more as John noted that LO mucked up the XML. If
>> you don’t want to attempt sed or nano, try Gedit (all come with
>> Ubuntu) or Atom. (need to install that one separately)
>>
>> I’d have to say, sed is probably the fastest method but you’ll need
>> to read over a few pages of sed command examples on replacing text,
>> be mindful of escaping special characters like “/“ and “:”.
>> Otherwise, Gedit and Atom are straight forward with no learning curve
>> with Find & Replace operations similar to LO.
>>
>> Regards,
>> Adrien
>>
>>> On Sep 12, 2018, at 8:23 AM, John Sears via gnucash-user
>>> <gnucash-user at gnucash.org> wrote:
>>>
>>> Hi,
>>>
>>> yep, I have no problem finding the files and opening them on the
>>> filing system ( naultilus) ..
>>>
>>> Although I have not done any mounting per se..  should I ?
>>>
>>>
>>>
>>> On 12/09/2018 21:17, Michael or Penny Novack wrote:
>>>> On 9/11/2018 8:00 PM, John Sears via gnucash-user wrote:
>>>>
>>>>> So my files were all stored on G:/documents/xxx.pdf
>>>>>
>>>>> Now that I have transferred to Linux, this path is not recognised - "
>>>>> GNUCash could not open the associated URI:
>>>>> file:///G:/documents/xxx.pdf"
>>>>>
>>>>> Is there a way to bulk edit the paths of all the  links so that Linux
>>>>> will recognise  the SD path?  I would prefer not to go  into every
>>>>> single transaction to do this, as I have a lot of linked files.
>>>>>
>>>>> Or is there someway ( and this might be more of a Linux question)
>>>>> to map
>>>>> the SD card to the "file:///G" terminology.
>>>>>
>>>>> Thanks!
>>>>   Been a while since I used a 'nix operating system and I don't
>>>> know what modern linuxes might provide for "automounting". But in a
>>>> traditional 'nix environment you don't just stick in removable
>>>> devices. You also have to "mount" (and when removing, "umount") them.
>>>>
>>>> In other words, I think yours is a "new 'nix user" problem. Forget
>>>> gnucash for a moment. Can you put a file (say a document) on a
>>>> removable device and then plug that device into your 'nix machine
>>>> and open it? The path will not be the same as in Windows. The path
>>>> to the data (in linux) will depend on WHERE in the linux file
>>>> system you mounted it? << The "mount" command will have specified
>>>> that >>
>>>>
>>>> Michael
>>>>
>>>> Michael D Novack 

-- 
Stephen M Butler, PMP, PSM
Stephen.M.Butler51 at gmail.com
kg7je at arrl.net
253-350-0166
-------------------------------------------
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8



More information about the gnucash-user mailing list