Search:

Type: Posts; User: toad3000; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.06 seconds.

  1. Replies
    1
    Views
    250

    [ubuntu] How to tell if I upgraded properly

    Hi I Just updated to ubuntu 12.04 from 10 and the strange thing is that the window that says you have been upgraded didn't show up when I restarted my computer. And the other strange thing is that...
  2. Replies
    6
    Views
    541

    Reading from a file using a for loop

    When I want to read a file using a while loop all I do is just
    while read line; echo $line done <$file
    But I am unable to do something similar like this using a for loop.
    for...
  3. Re: assigning a variable an integer value from a string

    cool thanks! I didn't know that. you made the code a lot simpler to read.
  4. Replies
    11
    Views
    912

    Re: How to call each argument in a while loop

    because I tried many ways to accomplish this using a while loop and It wasn't working. I made a counter and I tried ${$counter} but I get bad substitutional error.
  5. Replies
    11
    Views
    912

    Re: How to call each argument in a while loop

    is it possible to accomplish this using a while loop?
  6. Replies
    11
    Views
    912

    How to call each argument in a while loop

    I want to access each argument so I tried doing ${$counter2}} because that was my first intuition but I keep getting bad substitution error. Does anyone know how to do this?


    typeset -i...
  7. Replies
    6
    Views
    707

    Re: What does #Source: mean/do?

    This is one of the examples I'm studying from


    #!/bin/bash
    #Source: countod
    #read in a number of strings from user (until
    #user enters END or end) and output the total
    #number of strings...
  8. Replies
    6
    Views
    707

    Re: What does #Source: mean/do?

    I have a hunch that it means run this script first and use the variables but when I tried an example of my own it didn't work. Like I made a script with variables x=100. I made another script with...
  9. Replies
    6
    Views
    707

    What does #Source: mean/do?

    Some example scripts I see on the top after #!/bin/bash I see #Source: ......
    The .... contains just random words. I suppose they are other script names.

    Thanks
  10. Re: assigning a variable an integer value from a string

    wow thanks for those examples. I tried them and played with them a bit and I think i got the hang of it!
  11. Re: assigning a variable an integer value from a string

    ahhh i created another post by mistake and don't know how to delete it.....
  12. Re: assigning a variable an integer value from a string

    Oh I think i get it now.
    So I guess in the future If I want to assign a value something I should not do it in a pipe stream I Guess? Like in the code I wrote before I was assigning 'a' a value...
  13. Re: assigning a variable an integer value from a string

    My gosh! Thank you so much! This is exactly what I wanted! Thank you!!
    if you could could you tell me whats wrong this the coded I wrote before

    wc -l file | a= cut -d ' ' -f1
  14. assigning a variable an integer value from a string

    Hello I have some confusion.


    wc -l ${list[$y]} | a= cut -d ' ' -f1a=$a+0
    echo "$a --test a"

    when I do this I am suppose to get a value for the variable a. And before this code I wrote...
  15. Replies
    2
    Views
    270

    [ubuntu] Re: Help with read command

    Hey thanks a lot! I didn't know that read returns a true or false. Thank you. This clears up so much!
  16. Replies
    2
    Views
    270

    [ubuntu] Help with read command

    I'm having trouble with the read command. So I want to keep asking the user to keep entering values but once the user stops I have to stop.

    I was thinking of doing while [ true ]
    but then I need...
  17. Thread: Sed command

    by toad3000
    Replies
    4
    Views
    445

    [ubuntu] Sed command

    Does anyone know what this sed commands works. I keep looking at the man pages but I can't seem to find any info.


    sed -e 'sx/..../..../xx

    Let's just say .... and .... are some random words....
  18. Replies
    2
    Views
    329

    [ubuntu] Default Command Line Argument

    If one of my command requires a command line argument and the the person forget to type the argument when running, how do I specify the default argument in my script? Thanks
  19. Replies
    2
    Views
    342

    [ubuntu] File name extension doubt

    If I Make a file called "abc.xyz.adb", is the file valid? Meaning that is .adb really a valid extension for a file?
  20. Replies
    10
    Views
    610

    [ubuntu] Re: Command - making rows and columns

    I see what you're saying there.
    But it just it seems pretty tedious to say right the name of one column and press many space bars to right the name of the second column? Is there a way of doing...
  21. Replies
    10
    Views
    610

    [ubuntu] Re: Command - making rows and columns

    No, I'm sorry I was pretty unclear.
    I mean to make rows and columns with the echo command? Is that possible? Also is it possible to tell echo how many spaces I want between each word without...
  22. [ubuntu] changing permission on specific multiple files/directories

    I can't seem to figure out how finish off the last command


    ls -p testfiles/ | more | grep "^d" | chmod 700


    I want to change the permission on all the files/directories that start with a...
  23. Replies
    10
    Views
    610

    [ubuntu] Command - making rows and columns

    Is there any command I can use to make a text file that contains n number of columns and n number of rows?

    Thanks.
  24. Replies
    9
    Views
    485

    [ubuntu] Re: Learning Commands - Help

    Do you know any good forums people can discuss commands and such?
    Thanks :)
  25. Replies
    9
    Views
    485

    [ubuntu] Re: Learning Commands - Help

    Thank You! The -F command really works. I used it with the command I had previously. The full command I have is this.

    ls -F | more | grep [A-Z]
Results 1 to 25 of 27
Page 1 of 2 1 2