LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-03-2006, 04:12 AM   #1
vikrambhimbar
Member
 
Registered: Aug 2005
Location: India
Posts: 33

Rep: Reputation: 15
Question help to write shell script


Hi ,

I am trying to write a script ...
there are two files a & b with some numerical values in a row. i want to add contents of file a with file b and put them in a file c.who do i do this,I

And othe one is i have two servers and 30 users . i want 15 users to strictly use first software and other 15 to use other softeware ,,

Please Help me,

Thanks,
Vikram
 
Old 04-03-2006, 04:26 AM   #2
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
1) join files with cat file1 file2 > file3
Code:
$ cat list1.txt
Mary Wednesday
Joe Monday
Sally Saturday
$ cat list2.txt
Sally 999.999.9990
Mary 999.999.9998
Joe 999.999.9993
$ cat list1.txt list2.txt > list3.txt
$ cat list3.txt
Mary Wednesday
Joe Monday
Sally Saturday
Sally 999.999.9990
Mary 999.999.9998
Joe 999.999.9993
Also check out this thread: http://www.linuxquestions.org/questi...d.php?t=430116
And if you want more exact answers, please post examples of your input-files and intended output.
 
Old 04-03-2006, 04:43 AM   #3
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
use chown, chmod, adduser, and deluser to move people into groups and allow specific groups to run specific programs.

If you're a fascist, you might restrict the use of gcc so some users can't compile their own. And if you're a real fascist, you restrict their internet usage so they can't download gcc binaries.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to write the shell script? OpenSesame Linux - Newbie 3 03-27-2006 02:03 PM
HELP:write a CGI program with shell script supermyself Programming 3 06-12-2005 03:10 PM
How can I write a shell script to transfer files and keep permissions? LancerNZ Linux - Wireless Networking 0 02-24-2005 12:19 AM
write a shell script to send email yenonn Programming 4 02-11-2005 10:06 PM
[SHELL SCRIPT] Write at the right of the shell window Creak Linux - General 2 04-02-2004 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration