Thanks for your answers, last solution is perfect, I need some more assistance, file format is as follows:
I need XAWBG020209 from this line, I can't use awk because sometimes XA string is in the third column, my part numbers are starting with XA or XG, I want to take these part numbers then lookup in another file acc.csv which contains the description of these parts, I want to match part number extracted from this line with that part number and show the description, I wanted to do it by myself but since 3 hours I'm not able to figure out anything.
Second file is properly formatted, few lines from that file are as follows:
Your help would be appreciated.
Hi!
I'm trying to write a regexp but I have no luck...
I have a string like this:
param1=sometext¶m2=hello¶m3=bye
Also, the string can be simply:
param2=hello
I want to return the value of param2: "hello".
How can I do this?
Thanks. (3 Replies)
Hi
I need to get text that are within ""
For example
File:
asdasd "test test2" sadasds asdda asdasd "demo demo2"
Output:
test test2 demo demo2
Any help is good
Thank you (12 Replies)
please consider this:
echo "11111*X*005010X279~ST*270*1111111*005010X279~BHT*0011*11" | sed 's/.*\(005010X(\d)(\d)(\d)*\).*$/\1/'i'm searching for first occurrence of 005010X while leaving rest of characters out.
:confused:
any tips? thnx in advance guys. (7 Replies)
Hi ,
I am learing sed
echo abc 123 def 456 | sed 's|\(*\) \(*\)|\1|'
is returning abc def 456
i was hoping abc def "\1" should only print the occurence of the first pattern
but according to my understanding it is just removing the first occurence of the second pattern... (7 Replies)
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
Hi all,
I want to get a substring from a string based on given delimiter, for example:
str="foo|bar|baz" with delimiter "|",
I want to get one substring at each time with the order number the substring in the whole string,
given 1 to get "foo",
given 2 to get "bar",
given 3 to get "baz",
I... (2 Replies)
Hello All,
I'm trying to extract the lines between two consecutive elements of an array from a file.
My array looks like:
problem_arr=(PRS111 PRS213 PRS234)
j=0
while } ]
do
k=`expr $j + 1`
sed -n "/${problem_arr}/,/${problem_arr}/p" problemid.txt
---some operation goes... (11 Replies)
I am learning SED and just following the shell scripting book, i have trouble understanding the grep and sed statement,
Question : 1
__________
/opt/oracle/work/antony>cat teledir.txt
jai sharma 25853670
chanchal singhvi 9831545629
anil aggarwal 9830263298
shyam saksena 23217847
lalit... (7 Replies)
Hi , I need to remove pipe character from a |^ delimeted file.
Something like |^tran|sformers||^|revenge |of fallen|^ to
|^transformers|^revenge of fallen|^...
Cold anybody please help to build the regular expression using sed .
many thanks.
Please use code tags next time for... (1 Reply)
Discussion started by: kokjek
1 Replies
LEARN ABOUT DEBIAN
sludge-devkit
SLUDGE DEV KIT(1) SLUDGE Dev Kit User Manual SLUDGE DEV KIT(1)NAME
sludge-devkit - development tools for SLUDGE games
SYNOPSIS
sludge-projectmanager [projectfile.slp]
sludge-floormaker [floorplan.flo]
sludge-zbuffermaker [zbufferfile.zbu]
sludge-spritebankeditor [spritebank.duc]
sludge-translationeditor [translationfile.tra]
DESCRIPTION
This manual page documents briefly the sludge-devkit package.
This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has
documentation in the html format; see below.
FILES
${HOME}/.config/sludge-devkit/
This directory is used to store configuration files.
BUGS
Please report bugs in the SLUDGE forum at http://opensludge.sourceforge.net.
SEE ALSO sludge-engine(1)
The full SLUDGE documentation is included in the package sludge-doc. It is installed to /usr/share/doc/sludge/SLUDGE_Help.html.
AUTHOR
Tobias Hansen <tobias.han@gmx.de>
Wrote this manpage for the Debian system.
COPYRIGHT
Copyright (C) 2011 Tobias Hansen
This manual page was written for the Debian system (and may be used by others).
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 or (at
your option) any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-3.
sludge-devkit 05/13/2012 SLUDGE DEV KIT(1)