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...
Type: Posts; User: mme oscar; Keyword(s):
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...
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? ...
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...
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...
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...
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...
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?
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...
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
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...
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...
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...
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...
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...
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...
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...
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...
made me realize I had forgotten the input redirection "<big.file.txt" in my first post in the second line, sorry.
now corrected.
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#
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:
...
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...
/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....
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...
just tried (even restarted the computer): did'nt work, still not a sudoer. Other ideas?
Hi all,
I'm trying to add my single user 'moreaue' to the sudoers. this user seems to be have admin privilege but is not in the sudoers:
moreaue@bloom:~$ sudo ls
[sudo] password for moreaue:...