Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> SED via Bash Script
post Sep 5 2014, 09:46 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 5-September 14
Member No.: 18,784

Hi, I'm attempting to make a bash script that will change the world that is loaded in my Minecraft Server, which is hosted on an Ubuntu 14.04 x64 Server powered VPS

Since the server loads the world from a simple configuration file, using SED to change the line is sufficient. Here's what code I wrote:

$world = $1
$line = 'level-name='$world

sed -e '30,s/*/'$line'/' /path/to/my/mc/

This is supposed to be executed like this:

My programming experience is mostly from Web Development, and I've mainly used Perl and Java, so I can be considered a novice when it comes to Bash, and SED is brand new to me.... Thanks for reading, and thanks ahead of time for your time smile.gif

Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 20th July 2018 - 01:42 PM