Search:

Type: Posts; User: mme oscar; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    509

    Re: Extract certain text from variable

    ok I see what you mean now, then you can just extract it from your previous variable:


    function ialias {
    oldCmd=$(cut -f1 -d"=") <<< "$1"
    newCmd=$(cut -f2 -d"=") <<< "$1"
    baseCmd=$(cut...
  2. [ubuntu] Re: rsync "failed to set times" on ntfs partition

    Thank you for your answer, but if possible I would prefer a more generic solution: if the partition is mounted with a specific user id, it means that another user would not be able to use it, right? ...
  3. Replies
    8
    Views
    509

    Re: Extract certain text from variable

    Which stuff before the echo?

    With something like:
    firstword=$(echo "$hello" | cut -f 1 -d " ")
    the variable "firstword" is assigned all the characters in "hello" until the first space. In the...
  4. Replies
    8
    Views
    509

    Re: Extract certain text from variable

    Alternatively, assuming your words are always space-separated:


    hello="echo Hello World!" ; firstword=$(echo "$hello" | cut -f 1 -d " "); echo "first word is '$firstword'"

    Another way would be...
  5. [ubuntu] Re: rsync "failed to set times" on ntfs partition

    Hi everyone,

    I did some more testing and found out that this is definitely a problem due to the permissions.

    I tried to change the content of my /etc/fstab for this partition; first I tried...
  6. [ubuntu] rsync "failed to set times" on ntfs partition

    Hi everyone,

    I'm updating the backup script I've been using for a while in 12.04 for Ubuntu 14.04 (I've been living dangerously in the past few months ;) ). I ran into an error when using rsync...
  7. [ubuntu] Re: Can not authenticate in Ubuntu One behind a proxy

    For anyone who faces the same problem: after contacting Ubuntu One support, they told me that



    I also tried to configure the proxy manually in the Network settings but it does not work either...
  8. [ubuntu] Can not authenticate in Ubuntu One behind a proxy

    Hi everyone,

    After installing it at home without any problem, I'm trying to install Ubuntu One at work (Ubuntu 12.04, must use proxy). Apparently it can not connect to the server: I can't sign in...
  9. Replies
    11
    Views
    5,142

    [SOLVED] Re: dual boot but grub not installed in MBR

    Done, the bug report is at
    https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1026616

    don't know if I should mark this thread as solved now?
  10. Replies
    11
    Views
    5,142

    [SOLVED] Re: dual boot but grub not installed in MBR

    ok, so in order to see what happened I did a second installation on a different partition using exactly the same process. Indeed I select the "Other" partitioning, and this time I carefully checked...
  11. Replies
    11
    Views
    5,142

    [SOLVED] Re: dual boot but grub not installed in MBR

    there were no errors:


    sudo grub-install /dev/sda
    Installation finished. No error reported.



    Yes, this works! except that I had to install the package using
  12. [SOLVED] Re: Partition table errors -> unallocated for GPartEd

    Sorry for the delay, since everything was still working I didn't want to break anything before being ready to deal with it.

    So recently after doing my backups I tried to rebuild the partitions...
  13. Replies
    11
    Views
    5,142

    [SOLVED] dual boot but grub not installed in MBR

    Hi all,

    I just did a fresh install of Windows 7 and then Ubuntu 12.04 (because of this problem). My problem is that grub did not install in the MBR (Windows starts automatically). I'm able to boot...
  14. [SOLVED] Re: Partition table errors -> unallocated for GPartEd

    Do you know if it's possible to run chkdisk or fixboot without a Windows CD?

    testdisk didn't help me because it does not find any problem to fix: as far as I understand you can only write a new...
  15. [SOLVED] Re: Partition table errors -> unallocated for GPartEd

    ok thanks for the tip about FAT32/NTFS.

    Don't have any windows CD but did a chkdsk from windows, no error found.

    Did not change anything in the BIOS (and btw I forgot to say that GParted used...
  16. [SOLVED] Re: Partition table errors -> unallocated for GPartEd

    For Gparted the whole disk is "unallocated space", no partitions at all.

    Yes I know the FAT32 limitation. until now I wasn't sure if NTFS was properly supported by most Linux tools, which is why...
  17. [SOLVED] Partition table errors -> unallocated for GPartEd

    Hi all,

    I have a minor problem with my partition table (dual boot). "Minor" because I can still boot and everything, the only consequence as far as I'm aware is that GPartEd does not see the...
  18. [ubuntu] Re: utf-8 encoding issue when concatenating in Bash

    Hi David,

    thanks for your answer but my version of cat (the standard one) doesn't have such an option: the link you gave is about a special "MKS" version of cat, isn't it?


    cat --version
    cat...
  19. [ubuntu] utf-8 encoding issue when concatenating in Bash

    Hi,

    I'm experiencing the following problem: I want to concatenate multiple UTF-8 (Russian) files together, but when I did it the resulting file was not a valid UTF-8 file. This is basically what...
  20. Replies
    5
    Views
    314

    [ubuntu] Re: bash error with big file

    made me realize I had forgotten the input redirection "<big.file.txt" in my first post in the second line, sorry.
    now corrected.
  21. Replies
    5
    Views
    314

    [ubuntu] Re: bash error with big file

    Thank you for confirming the problem

    since it seems to really be a bug I reported it here:
    http://groups.google.com/group/gnu.bash.bug/browse_thread/thread/ef4bc62baec3dd05#
  22. Replies
    5
    Views
    314

    [ubuntu] bash error with big file

    Hi all,

    I got a strange error when using one of my scripts with a very big file. I managed to isolate the source of the problem and here is a small test which shows what happens:
    ...
  23. [SOLVED] Re: member of `admin' but not in sudoers file ?

    ok, it works, thank you!

    I did not install it myself on that machine: actually I'm at work, it was installed by a sys admin. Since it's a local machine I asked to have root privilege and they...
  24. [SOLVED] Re: member of `admin' but not in sudoers file ?

    /etc/sudoers content:


    #
    # This file MUST be edited with the 'visudo' command as root.
    #
    # Please consider adding local content in /etc/sudoers.d/ instead of
    # directly modifying this file....
  25. Replies
    23
    Views
    3,162

    [SOLVED] Re: c++ program won't run

    the compiler (here g++) is what will transform your code into an executable program
    when you ran it it said that it can not find the file containing your code
    that means that either the file is...
Results 1 to 25 of 27
Page 1 of 2 1 2