Linux.com

Author Message
Joined: Jan 06, 2009
Posts: 16
Other Topics
Posted Apr 05, 2009 at 7:51:16 PM
Subject: bash script
Hello all could anyone can write a script to read the file /etc/ssh/sshd_conf and replace the port no 22 as 1025 without changing the file name...please.
Back to top Profile Email Website
Rubberman
Joined Jul 30, 2007
Posts: 944
Location:40 miles west of Chicago

Other Topics
Posted: Apr 05, 2009 11:31:44 PM
Subject: bash script
Look at sed. You should learn how to do these things yourself - they aren't hard, but can be accomplished with a little research and effort. "Give a person a fish, and they'll be hungry tomorrow. Teach them how to fish, and they can be fed for a lifetime."

Sometimes real fast is almost as good as real time. Remember, Google is your friend!

Back to top Profile Email Website AOL Instant Messenger
proopnarine

Joined Apr 03, 2008
Posts: 590
Location:San Francisco

Other Topics
Posted: Apr 06, 2009 2:37:28 AM
Subject: bash script
http://www.linuxconfig.org/Bash_scripting_Tutorial

Take the red pill

Climate Change Blog

Food Weblog

Back to top Profile Email Website
freemen
Joined Jan 06, 2009
Posts: 16

Other Topics
Posted: Apr 06, 2009 8:13:23 AM
Subject: bash script
thank you the above site is a good one!
Back to top Profile Email Website
Rubberman
Joined Jul 30, 2007
Posts: 944
Location:40 miles west of Chicago

Other Topics
Posted: Apr 06, 2009 5:33:01 PM
Subject: bash script
Enjoy your fishin' trip. :-)

Sometimes real fast is almost as good as real time. Remember, Google is your friend!

Back to top Profile Email Website AOL Instant Messenger
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya