Results 1 to 4 of 4

Thread: Just learning to script

  1. #1
    Just burned his ISO
    Join Date
    Feb 2006
    Posts
    3

    Default Just learning to script

    I am trying to cp the .profile from one of my users to all of my users on my system and trying to use a loop to go through it does any one maybe have a better idea ? thanx in advance

  2. #2
    Member m1cha3l's Avatar
    Join Date
    May 2008
    Posts
    208

    Default

    trying to copy? surely all you need to do is
    Code:
    cp .profile /home/{*}/
    and I'm still a n00b and dont understand what you mean by using a loop to go through it. could you explain more?

  3. #3
    Junior Member kr0m3's Avatar
    Join Date
    Jan 2008
    Posts
    68

    Default

    perhaps he wants to...

    Code:
    cp .profile /etc/skel/
    so that it will automatically be created for each user as they are added to the system?

    ~k
    "...you've picked up a bit of an attitude. Still curious and willing to learn, I hope. "

  4. #4
    Member m1cha3l's Avatar
    Join Date
    May 2008
    Posts
    208

    Default

    didn't know about that. You learn something new everyday!! thanks kr0m3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •