Sponsored Content
Top Forums Shell Programming and Scripting How to grep a log file for words listed in separate text file? Post 302854443 by nbsparks on Tuesday 17th of September 2013 01:27:55 PM
Old 09-17-2013
Sample of server.log
Code:
2013-09-17 08:43:09 [INFO] Starting Minecraft server on *:25565
2013-09-17 08:43:09 [INFO] This server is running CraftBukkit version git-Bukkit-1.5.2-R1.0-b2788jnks (MC: 1.5.2) (Implementing API version 1.5.2-R1.0)
2013-09-17 08:43:10 [INFO] [PermissionsEx] sql backend registered!
2013-09-17 08:43:10 [INFO] [PermissionsEx] file backend registered!
2013-09-17 08:43:10 [INFO] [PermissionsEx] PermissionEx plugin initialized.
2013-09-17 08:43:10 [INFO] [PhysicalShop] Loading PhysicalShop v9.2.3
2013-09-17 08:43:10 [INFO] [LagMeter] Loading LagMeter v1.12.0
2013-09-17 08:43:10 [INFO] [AntiBed] Loading AntiBed v1.0.1
2013-09-17 08:43:10 [INFO] [SwearingBlocker] Loading SwearingBlocker v1.57
2013-09-17 08:43:10 [INFO] [SimpleAFK] Loading SimpleAFK v0.9.1
2013-09-17 08:43:10 [INFO] [Spawn Bed] Loading Spawn Bed v0.1
2013-09-17 08:43:10 [INFO] [SimpleSeen] Loading SimpleSeen v0.3
2013-09-17 08:43:10 [INFO] [WorldEdit] Loading WorldEdit v5.4.5
2013-09-17 08:43:10 [INFO] [TimeFold] Loading TimeFold v1.0
2013-09-17 08:43:10 [INFO] [Vanilla] Loading Vanilla v0.2
2013-09-17 08:43:10 [INFO] [RewardMe] Loading RewardMe v2.5.1
2013-09-17 08:43:10 [INFO] [WeatherRestrictions] Loading WeatherRestrictions v2.6.3
2013-09-17 08:43:10 [INFO] [Landmarks] Loading Landmarks v0.7
2013-09-17 08:43:10 [INFO] [Vault] Loading Vault v1.2.24-b304
2013-09-17 08:43:10 [INFO] [Multiverse-Core] Loading Multiverse-Core v2.5-b665
2013-09-17 08:43:10 [INFO] [Diving-Helmet] Loading Diving-Helmet v1.8.1
2013-09-17 08:43:10 [INFO] [PermissionsEx] Loading PermissionsEx v1.19.5
2013-09-17 08:43:10 [INFO] [PermissionsEx] Initializing file backend
2013-09-17 08:43:10 [INFO] Permissions file successfully reloaded
2013-09-17 08:43:10 [INFO] [Wither] Loading Wither v2.0
2013-09-17 08:43:10 [INFO] [MobCatcher] Loading MobCatcher v3.7
2013-09-17 08:43:10 [INFO] [Multiverse-Inventories] Loading Multiverse-Inventories v2.5-b346
2013-09-17 08:43:10 [INFO] [WormholeXTreme] Loading WormholeXTreme v1.031
2013-09-17 08:43:10 [INFO] [WormholeXTreme][v1.031] Loading WormholeXTreme ...
2013-09-17 08:43:10 [INFO] [WormholeXTreme][v1.031] Load complete
2013-09-17 08:43:10 [INFO] [Multiverse-NetherPortals] Loading Multiverse-NetherPortals v2.5-b660
2013-09-17 08:43:10 [INFO] [Vault] Enabling Vault v1.2.24-b304
2013-09-17 08:43:10 [INFO] [Vault][Permission] PermissionsEx found: Waiting
2013-09-17 08:43:10 [INFO] [Vault][Permission] SuperPermissions loaded as backup permission system.
2013-09-17 08:43:10 [INFO] [Vault][Chat] PermissionsEx found: Waiting
2013-09-17 08:43:10 [INFO] [Vault] Enabled Version 1.2.24-b304
2013-09-17 08:43:10 [INFO] [Vault][Permission] PermissionsEx hooked.
2013-09-17 08:43:10 [INFO] Preparing level "mundusprime"
2013-09-17 08:43:10 [WARNING] ----- Bukkit Auto Updater -----
2013-09-17 08:43:10 [WARNING] Your version of CraftBukkit is out of date. Version 1.6.2-R1.0 (build #2879) was released on Wed Sep 11 02:02:22 PDT 2013.
2013-09-17 08:43:10 [WARNING] Details: /downloads/craftbukkit/view/02342_1.6.2-R1.0/
2013-09-17 08:43:10 [WARNING] Download: /downloads/craftbukkit/get/02342_1.6.2-R1.0/craftbukkit.jar
2013-09-17 08:43:10 [WARNING] ----- ------------------- -----
2013-09-17 08:43:10 [INFO] Preparing start region for level 0 (Seed: 6416758407589632547)
2013-09-17 08:43:11 [INFO] Preparing start region for level 1 (Seed: -4634992794148121490)
2013-09-17 08:43:11 [INFO] Preparing spawn area: 83%
2013-09-17 08:43:11 [INFO] [PhysicalShop] Enabling PhysicalShop v9.2.3
2013-09-17 08:43:11 [INFO] [PhysicalShop] Did not hook into LogBlock
2013-09-17 08:43:11 [INFO] [PhysicalShop] PhysicalShop v9.2.3 enabled.
2013-09-17 08:43:11 [INFO] [LagMeter] Enabling LagMeter v1.12.0
2013-09-17 08:43:11 [INFO] [LagMeter] Not using logs folder.
2013-09-17 08:43:11 [INFO] [LagMeter 1.12.0] Enabled! Polling every 40 server ticks. Logging to /home/mc/servers/bukkitpvt/plugins/LagMeter/lag.log.
2013-09-17 08:43:11 [INFO] [LagMeter 1.12.0] Chunks loaded:
2013-09-17 08:43:11 [INFO] [LagMeter 1.12.0] World "mundusprime": 625.
2013-09-17 08:43:11 [INFO] [LagMeter 1.12.0] World "mundusprime_nether": 625.
2013-09-17 08:43:11 [INFO] [LagMeter 1.12.0] Total chunks loaded: 1250
2013-09-17 08:43:11 [INFO] [LagMeter 1.12.0] Entities:
2013-09-17 08:43:11 [INFO] [LagMeter 1.12.0] World "mundusprime": 183.
2013-09-17 08:43:11 [INFO] [LagMeter 1.12.0] World "mundusprime_nether": 89.
2013-09-17 08:43:11 [INFO] [LagMeter 1.12.0] Total entities: 272
2013-09-17 08:43:11 [INFO] [AntiBed] Enabling AntiBed v1.0.1
2013-09-17 08:43:11 [INFO] AntiBed enabled.
2013-09-17 08:43:11 [INFO] [SwearingBlocker] Enabling SwearingBlocker v1.57
2013-09-17 08:43:11 [INFO] [SwearingBlocker] Vault not found, turning economy features off
2013-09-17 08:43:11 [INFO] [SimpleAFK] Enabling SimpleAFK v0.9.1
2013-09-17 08:43:11 [INFO] [SimpleAFK] Loading Config files...
2013-09-17 08:43:11 [INFO] [SimpleAFK] Config file 'config.yml' loaded
2013-09-17 08:43:11 [INFO] [SimpleAFK] Config file 'language_en.yml' loaded
2013-09-17 08:43:11 [INFO] [SimpleAFK] ... Config files loaded
2013-09-17 08:43:11 [INFO] [SimpleAFK] SimpleAFK v0.9.1 Enabled
2013-09-17 08:43:11 [INFO] [Spawn Bed] Enabling Spawn Bed v0.1
2013-09-17 08:43:11 [INFO] [Spawn Bed] Spawn Bed Enabled
2013-09-17 08:43:11 [INFO] [SimpleSeen] Enabling SimpleSeen v0.3
2013-09-17 08:43:11 [INFO] [SimpleSeen] 0.3 enabled.
2013-09-17 08:43:11 [INFO] [WorldEdit] Enabling WorldEdit v5.4.5
2013-09-17 08:43:11 [INFO] WEPIF: Using the Bukkit Permissions API.
2013-09-17 08:43:11 [INFO] [TimeFold] Enabling TimeFold v1.0
2013-09-17 08:43:11 [INFO] [Vanilla] Enabling Vanilla v0.2
2013-09-17 08:43:11 [INFO] [RewardMe] Enabling RewardMe v2.5.1
2013-09-17 08:43:11 [INFO] [RewardMe] enabled
2013-09-17 08:43:11 [INFO] [WeatherRestrictions] Enabling WeatherRestrictions v2.6.3
2013-09-17 08:43:11 [INFO] WeatherRestrictions version 2.6.3 is enabled!
2013-09-17 08:43:11 [INFO] [Landmarks] Enabling Landmarks v0.7
2013-09-17 08:43:11 [INFO] [Landmarks] Loading /home/mc/servers/bukkitpvt/plugins/Landmarks/markers.json
2013-09-17 08:43:11 [INFO] [Landmarks] Successfully loaded 0 markers.
2013-09-17 08:43:11 [INFO] [Landmarks] Landmarks 0.7 enabled.
2013-09-17 08:43:11 [INFO] [Multiverse-Core] Enabling Multiverse-Core v2.5-b665
2013-09-17 08:43:11 [INFO] [Multiverse-Core] [AllPay] - Version 13.0 - using only an item based economy for Multiverse-Core v2.5-b665
2013-09-17 08:43:12 [INFO] Preparing start region for level 2 (Seed: 6416097921303314683)
2013-09-17 08:43:12 [INFO] Preparing start region for level 3 (Seed: 3044967559793989709)
2013-09-17 08:43:13 [INFO] Preparing start region for level 4 (Seed: 1910975946905473061)
2013-09-17 08:43:13 [INFO] Preparing start region for level 5 (Seed: 5361911335612553857)
2013-09-17 08:43:13 [INFO] [Multiverse-Core] 6 - World(s) loaded.
2013-09-17 08:43:14 [INFO] [Multiverse-Core] Version 2.5-b665 (API v18) Enabled - By Rigby, fernferret, lithium3141 and main--
2013-09-17 08:43:14 [INFO] [Diving-Helmet] Enabling Diving-Helmet v1.8.1
2013-09-17 08:43:14 [INFO] [Diving-Helmet] is Enabled
2013-09-17 08:43:14 [INFO] [PermissionsEx] Enabling PermissionsEx v1.19.5
2013-09-17 08:43:14 [INFO] [PermissionsEx] Superperms support enabled.
2013-09-17 08:43:14 [INFO] [PermissionsEx] v1.19.5 enabled
2013-09-17 08:43:14 [INFO] WEPIF: PermissionsEx detected! Using PermissionsEx for permissions.
2013-09-17 08:43:14 [INFO] [Vault][Chat] PermissionsEx_Chat hooked.
2013-09-17 08:43:14 [INFO] [Wither] Enabling Wither v2.0
2013-09-17 08:43:14 [INFO] [Wither] Wither v2.0 enabled!
2013-09-17 08:43:14 [INFO] [MobCatcher] Enabling MobCatcher v3.7
2013-09-17 08:43:14 [INFO] [MobCatcher] Author: Malikk
2013-09-17 08:43:14 [INFO] You are not running the correct version of Craftbukkit for this version of MobCatcher.
2013-09-17 08:43:14 [INFO] MobCatcher v3.7 is intended to be run on CB 1.5.1-R0.1-SNAPSHOT
2013-09-17 08:43:14 [INFO] Expect major bugs or failure to enable. Please do not report bugs until you are using compatible versions of CB and MobCatcher.
2013-09-17 08:43:14 [INFO] [MobCatcher] Hooked Vault 1.2.24-b304
2013-09-17 08:43:14 [INFO] [MobCatcher] Spout was not found.
2013-09-17 08:43:14 [INFO] [MobCatcher] remove stackability: true
2013-09-17 08:43:14 [SEVERE] Error occurred while enabling MobCatcher v3.7 (Is it up to date?)
java.lang.NoClassDefFoundError: net/minecraft/server/v1_5_R2/Item
    at me.jordan.mobcatcher.MobCatcher.removeStackability(MobCatcher.java:1170)
    at me.jordan.mobcatcher.MobCatcher.onEnable(MobCatcher.java:120)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugin(CraftServer.java:282)
    at org.bukkit.craftbukkit.v1_5_R3.CraftServer.enablePlugins(CraftServer.java:264)
    at net.minecraft.server.v1_5_R3.MinecraftServer.j(MinecraftServer.java:304)
    at net.minecraft.server.v1_5_R3.MinecraftServer.e(MinecraftServer.java:283)
    at net.minecraft.server.v1_5_R3.MinecraftServer.a(MinecraftServer.java:243)
    at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:151)
    at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:382)
    at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_5_R2.Item
    at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:70)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 13 more
2013-09-17 08:43:14 [INFO] [Multiverse-Inventories] Enabling Multiverse-Inventories v2.5-b346
2013-09-17 08:43:14 [INFO] [Multiverse-Inventories 2.5-b346] enabled.
2013-09-17 08:43:14 [INFO] [WormholeXTreme] Enabling WormholeXTreme v1.031
2013-09-17 08:43:14 [INFO] [WormholeXTreme][v1.031] Boot sequence initiated...
2013-09-17 08:43:14 [INFO] [WormholeXTreme][v1.031] Wormhole Worlds support disabled in settings.txt, loading stargates and worlds by our self.
2013-09-17 08:43:14 [INFO] [WormholeXTreme] 49 Wormholes loaded from WormholeDB.
2013-09-17 08:43:14 [INFO] [WormholeXTreme] PermissionAlias backend: 'pex' registered!
2013-09-17 08:43:14 [INFO] [WormholeXTreme] PermissionAlias backend: 'bukkit' registered!
2013-09-17 08:43:14 [INFO] [WormholeXTreme] Attempting to use supported permissions plugin 'PermissionsEx'
2013-09-17 08:43:14 [WARNING] [WormholeXTreme] This plugin is not ready yet.
2013-09-17 08:43:14 [INFO] [WormholeXTreme] Initializing bukkit backend
2013-09-17 08:43:14 [INFO] [WormholeXTreme] Config node PERMISSIONS_BACKEND changed to 'pex'
2013-09-17 08:43:14 [INFO] [WormholeXTreme] Initializing pex backend
2013-09-17 08:43:14 [WARNING] [WormholeXTreme] This plugin is not ready yet.
2013-09-17 08:43:14 [INFO] [WormholeXTreme] Attached to PermissionsEx version 1.19.5
2013-09-17 08:43:14 [INFO] [WormholeXTreme][v1.031] Boot sequence completed
2013-09-17 08:43:14 [INFO] [Multiverse-NetherPortals] Enabling Multiverse-NetherPortals v2.5-b660
2013-09-17 08:43:14 [INFO] [Multiverse-NetherPortals] - Version 2.5-b660 Enabled - By Rigby and fernferret
2013-09-17 08:43:14 [INFO] Server permissions file permissions.yml is empty, ignoring it
2013-09-17 08:43:14 [INFO] Done (4.111s)! For help, type "help" or "?"
2013-09-17 08:43:16 [INFO] /127.0.0.1:46732 lost connection
2013-09-17 08:43:21 [INFO] player1[/192.168.1.11:49962] logged in with entity id 657 at ([mundusprime] 214.27613526949833, 71.0, 536.8997582104788)
2013-09-17 08:43:21 [INFO] Player joined: player1
2013-09-17 08:46:00 [INFO] player1 issued server command: /mvm
2013-09-17 08:46:08 [INFO] player1 issued server command: /mvm set ?
2013-09-17 08:46:24 [INFO] player1 issued server command: /mvm set daytime
2013-09-17 08:46:39 [INFO] player1 issued server command: /mvinfo
2013-09-17 08:46:52 [INFO] player1 issued server command: /mvinfo 2
2013-09-17 08:47:00 [INFO] player1 issued server command: /mvinfo 3
2013-09-17 08:47:08 [INFO] player1 issued server command: /mvinfo 4
2013-09-17 08:48:21 [INFO] give player1 265 5
2013-09-17 08:48:21 [INFO] CONSOLE: Gave player1 some 265 (IRON_INGOT)
2013-09-17 08:48:21 [INFO] points player1 1
2013-09-17 08:48:21 [INFO] [RewardMe] 1 points given!
2013-09-17 08:52:15 [INFO] player1 issued server command: /gamemode 1
2013-09-17 08:52:15 [INFO] player1: Set own game mode to CREATIVE mode
2013-09-17 08:53:23 [INFO] player1 issued server command: /gamemode 0
2013-09-17 08:53:23 [INFO] player1: Set own game mode to SURVIVAL mode
2013-09-17 08:53:29 [INFO] Connection reset
2013-09-17 08:53:29 [INFO] player1 lost connection: disconnect.quitting
2013-09-17 09:00:01 [INFO] /127.0.0.1:46757 lost connection
2013-09-17 09:00:01 [INFO] CONSOLE: Forcing save..
2013-09-17 09:00:01 [INFO] CONSOLE: Save complete.
2013-09-17 09:00:01 [INFO] CONSOLE: Disabled level saving..
2013-09-17 09:00:19 [INFO] CONSOLE: Enabled level saving..
2013-09-17 09:26:20 [INFO] Disconnecting player2 [/192.168.1.12:50724]: You are not white-listed on this server!
2013-09-17 10:00:01 [INFO] /127.0.0.1:46831 lost connection
2013-09-17 10:00:01 [INFO] /127.0.0.1:46832 lost connection
2013-09-17 10:00:01 [INFO] /127.0.0.1:46833 lost connection
2013-09-17 10:00:01 [INFO] CONSOLE: Forcing save..
2013-09-17 10:00:01 [INFO] CONSOLE: Save complete.
2013-09-17 10:00:01 [INFO] CONSOLE: Disabled level saving..
2013-09-17 10:00:06 [INFO] CONSOLE: Enabled level saving..

The white-list.txt for this sample:
Code:
player1

The activity-list.txt for this sample:
Code:
You are not white-listed on this server
RewardMe

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Listing words from a file on a Separate Line

Hi, I want to list all the words in my file on a separate line. I am using the bourne(sh)/bourne again shell(bash). Thanks, theA (2 Replies)
Discussion started by: Astudent
2 Replies

2. Shell Programming and Scripting

To read and separate number and words in file and store to two new file using shell

hi, I am a begginer in unix and i want to know how to open a file and read it and separate the numbers & words and storing it in separate files, Using shell scripting. Please help me out for this. Regards S.Kamakshi (2 Replies)
Discussion started by: kamakshi s
2 Replies

3. UNIX for Dummies Questions & Answers

how to separate numbers and words from a file using shell scripts

Hi, How to separate numbers and words(with full alphabets) in a particular file and store it in two different files. Please help me out for this.Using shell scripting. :confused::confused: (1 Reply)
Discussion started by: kamakshi s
1 Replies

4. Shell Programming and Scripting

Copy files listed in a text file - whitespace problem.

Hi, Say I have this text file <copy.out> that contains a list of files/directories to be copied out to a different location. $ more copy.out dir1/file1 dir1/file2 dir1/file3 "dir1/white space" dir1/file4 If I do the following: $copy=`more copy.out` $echo $copy dir1/file1... (4 Replies)
Discussion started by: 60doses
4 Replies

5. Shell Programming and Scripting

Shellscript to sort duplicate files listed in a text file

I have many pdf's scattered across 4 machines. There is 1 location where I have other Pdf's maintained. But the issues it the 4 machines may have duplicate pdf's among themselves, but I want just 1 copy of each so that they can be transfered to that 1 location. What I have thought is: 1) I have... (11 Replies)
Discussion started by: deaddevil
11 Replies

6. Shell Programming and Scripting

Send a mail to IDs listed in a text file

I have a list of mail ids in text file and want a ksh script that reads this text file and sends a mail to all mail ids with same subject line and content. I am using UX-HP machine and KSH. Thanks for help in advance! (5 Replies)
Discussion started by: Sriranga
5 Replies

7. Shell Programming and Scripting

Copy files listed in text file to new directory

I am trying to write a script that will copy all file listed in a text file (100s of file names) to a new directory Assume script will run with main as current working directory and I know how many files/lines will be in List.txt Im trying to work up a test script using this model Contents of... (2 Replies)
Discussion started by: IAmTheGrass
2 Replies

8. Shell Programming and Scripting

Delete files listed in text file

Hi Team, Here's the scenario, I have a text file called "file_list.txt". Its content is as follows. 111.tmp 112.tmp 113.tmp 114.tmp These files will present in "workdir" directory. It has many files. But only the files present in file_list.txt has to be deleted from the workdir... (7 Replies)
Discussion started by: kmanivan82
7 Replies

9. Shell Programming and Scripting

Cat files listed in text file and redirect to new directory with same filename

I have a directory that is restricted and I cannot just copy the files need, but I can cat them and redirect them to a new directory. The files all have the date listed in them. If I perform a long listing and grep for the date (150620) I can redirect that output to a text file. Now I need to... (5 Replies)
Discussion started by: trigger467
5 Replies

10. Shell Programming and Scripting

Want to delete the junk files from a directory which are not listed in a TEXT file

Hello Everyone, I want to delete the image files from a directory, which are not listed in a TEXT file. The directory contains large number of image files (in millions) required / not required. I want to delete the image files which are "not required". I have generated a Text file having... (3 Replies)
Discussion started by: Praveen Pandit
3 Replies
All times are GMT -4. The time now is 01:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy