Search Results

Search: Posts Made By: alister
2,967
Posted By clx
Again, Does it really take hard to try at least...
Again, Does it really take hard to try at least one solution yourself?
If you can not access your system now, please come back to us whenever you try.
4,067
Posted By vgersh99
no-no, this is all good - no ill feelings here! ...
no-no, this is all good - no ill feelings here!
I see your point - and yes, we solved this case earlier - I need to revert to my previous code:

awk '{
for(i=1;i<=c;i++) {
if (!(i...
1,193
Posted By clx
How this problem is related to your initial...
How this problem is related to your initial problem?
Moreover, if its different, then create a new thread.
Did your initial problem solve with the solutions provided in various posts? We deserve...
8,765
Posted By bakunin
You need to understand how "variable expansion"...
You need to understand how "variable expansion" works: lets assume we have a variable assigned (i suggest you try the examples yourself at the shell prompt and play around a bit with them to get...
2,629
Posted By wisecracker
Produce the number 2014 without any numbers in your source code...
Hi guys and gals...

Someone pointed me to this URL this morning and thought I might be interested.
Not the best bash solution but at my level I solved it this way, in around 5-10 minutes...
...
Forum: Fedora 04-26-2014
5,482
Posted By Azrael
Well, I finally got it. I had remove all the .ko...
Well, I finally got it. I had remove all the .ko driver from my previous attempts and then used the following script which did most of the work for me:

http://smxi.org/sg/sgfxi

It was made for...
2,016
Posted By Don Cragun
Note that unless you happen to be sitting in...
Note that unless you happen to be sitting in /home/emd/Desktop when you run this script, mkdir will create 1234 in whatever directory you're sitting in; not necessarily /home/emd/Desktop.

It has...
677
Posted By SriniShoo
Whats the content of the first line in your file...
Whats the content of the first line in your file "list1"
If that is blank, then sort is conserding null and 0 as same and excluding the field with "0"
1,333
Posted By fpmurphy
Using a case statement: #!/bin/bash ...
Using a case statement:

#!/bin/bash

echo -n "Read the letter >(enter a or b or c) "
read letter

case $letter in
a|b|c) echo "Character Accepted"
;;
*) echo...
654
Posted By Scott
If you have a doubt about what a command option...
If you have a doubt about what a command option does, you should first consult the command's manual page.
2,599
Posted By Perderabo
Just burn the file on to a CD. It will mount...
Just burn the file on to a CD. It will mount read-only. Root won't be able to delete that.

I thought that I had seen thumb drives with a switch to render them read-only. But I don't see any...
1,335
Posted By Corona688
Also, "no such file or directory" can sometimes...
Also, "no such file or directory" can sometimes mean "can't find all the libraries it needs" or "wrong file type", so ldd executablename and see if anything's missing.
1,315
Posted By Don Cragun
No. This forum is intended to help you learn how...
No. This forum is intended to help you learn how to use the tools available on Linux and UNIX Systems so you can effectively use these wonderful platforms. We are not here to do your job for you.
...
997
Posted By Scrutinizer
In ksh93 and bash4 you can use fall through,...
In ksh93 and bash4 you can use fall through, using ;&:
case $yourch in
0) exit 0 ;;
1) function1 ;&
2) function2 ;&
3) function3 ;&
4) function4 ;;
*) echo "...
2,778
Posted By Corona688
Probably because that's exactly what stderr is...
Probably because that's exactly what stderr is there for. Being 'clever' about it would make obvious things, like redirecting a trace's output into a file, difficult. A shell can't make too many...
6,757
Posted By Chubler_XL
Data seems to contain leading blanks so sort...
Data seems to contain leading blanks so sort should probably include -b:

sort -b -k4.7,4.10 -k4,5
1,268
Posted By rbatte1
Consider this logic:- You want to read a...
Consider this logic:-

You want to read a file called colours
For each line it contains, you want to do the following

You want to read a file called fruits
For each line, you want to...
1,268
Posted By rbatte1
What have you tried so far? What language would...
What have you tried so far?
What language would you like to use?
What OS and version are you using?
Do you want a space between colours and fruit or not?

Mostly, what have you tried so far.

...
2,001
Posted By Scrutinizer
From this I gather you are not the least bit...
From this I gather you are not the least bit sorry for your behavior. Please rethink and understand that we do not tolerate this kind of attitude and with good reason.
This thread is closed..
4,411
Posted By Scrutinizer
I retested and can confirm that without the...
I retested and can confirm that without the leading spaces in the output of wc it now works on all platforms, except HPUX, where the file still became 0 bytes like before.. It did not change anything...
4,411
Posted By drl
Hi. Both of the solutions, shell variable...
Hi.

Both of the solutions, shell variable and "dd move" are about the same as far as system resources go. I used alister's amended solution; his first failed (the one that went out with an email...
4,411
Posted By Scrutinizer
Hi Alister, that looks ingenious :) . I presume...
Hi Alister, that looks ingenious :) . I presume you mean tail -n 50000 and wc -m? Could you elaborate why the file needs be redirected read/write on stdout?

I tried it on Linux with tail -n 5 and...
4,640
Posted By blackrageous
It's not clear what you are doing or what you are...
It's not clear what you are doing or what you are asking. Give more context and expected behavior.
1,856
Posted By Corona688
...and if you'd posted your code the first time...
...and if you'd posted your code the first time we asked, it wouldn't have taken us 2 days to learn that you use the C Shell.
Forum: What is on Your Mind? 10-07-2013
3
1,111
Posted By Don Cragun
The C and POSIX standards do not require that the...
The C and POSIX standards do not require that the C (and POSIX) Locales be based on the ASCII codeset. The POSIX standards do require that the collation order of the 128 characters in the ASCII...
Showing results 1 to 25 of 164

 

Featured Tech Videos

All times are GMT -4. The time now is 09:20 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy