Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Howdo i combine 2 variables into a 3rd  (Read 3516 times)

0 Members and 1 Guest are viewing this topic.

Jkeri

    Topic Starter


    Starter

    • Experience: Beginner
    • OS: Unknown
    Howdo i combine 2 variables into a 3rd
    « on: November 16, 2011, 11:22:14 AM »
    Being new to UNIX, i want to combine 2 values into a 3rd value

    value1='-a '

    files='ls -l'
    for i in $files
    do
          i want $value1 and $i to end up in $value3 so that my value3 has '-a filename'

    done

    Rob Pomeroy



      Prodigy

    • Systems Architect
    • Thanked: 124
      • Me
    • Experience: Expert
    • OS: Other
    Re: Howdo i combine 2 variables into a 3rd
    « Reply #1 on: November 17, 2011, 01:05:12 AM »
    What shell/scripting language are you using?
    Only able to visit the forums sporadically, sorry.

    Geek & Dummy - honest news, reviews and howtos

    Salmon Trout

    • Guest
    Re: Howdo i combine 2 variables into a 3rd
    « Reply #2 on: November 18, 2011, 03:25:50 PM »