10-03-2013
Thanks @Jotne. I guess now all I have to do is make a temp file and move that back over the original. Also thanks to @MadeInGermany & @Smiling Dragon
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a file like this...
<o t="Batch" id="8410" p="/" g="32">
<a n="name">
<v s="DBBA1MM"/>
</a>
<a n="owner">
<v r="/Administrator"/>
</a>
<a n="rights">
<v s="95"/>
</a>
<a n="debugLevel">
<v s="3"/>
</a>
<a n="avsStoreLoc">
<v... (8 Replies)
Discussion started by: kesu2k
8 Replies
2. UNIX for Dummies Questions & Answers
Hi All
How can i append a file name with a string
e.g.
Lets say i have a file called
ABC_TEST_1234_1.dat
and i want to append the file name with a lets say 100
so the output file should look like
ABC_100_TEST_1234_1.dat
i have aroung 9000 file in a directory and want to... (3 Replies)
Discussion started by: Nikhilindurkar
3 Replies
3. Shell Programming and Scripting
I have a file like below
#GROUP A belongs to Asia
GROUP A jojh hans local admin
GROUP A gege fans michel jing jong
#GROUP U belongs to USA
GROUP U jeff goal hello world
My requirement is to grep for first apperence of GROUP A which is not commented and append my name to end of file.... (12 Replies)
Discussion started by: vkk
12 Replies
4. Linux
Hi all,
I have a question..
Here is my requirement..I have 500 files in a path say /a/b/c
I have some numbers in a file which are comma seperated...and I wanted to check if the numbers are present in the FileName in the path /a/b/c..if the number is there in the file that is fine..but if... (1 Reply)
Discussion started by: us_pokiri
1 Replies
5. UNIX for Dummies Questions & Answers
Right now, my code is:
s/Secondary Ins./Secondary Ins.\
1/g
It's adding a 1 as soon as it finds Secondary Ins.
Primary Ins.: MEDICARE B DMERC Secondary Ins.
1: CONTINENTAL LIFE INS
What I really want to achieve is having a 1 added on the next line that contain "Secondary Ins." It... (4 Replies)
Discussion started by: newbeee
4 Replies
6. Shell Programming and Scripting
Dear all,
I need your help, I have file like this:
file1:23456
01910964830098775635
34567
01942809546554654323
67589
26546854368698023653
09778
58716868568576876878
08675
86178546154065406546
08573
54165843543054354305
.
.file2:
23456 25
34567 26
67589 27 (2 Replies)
Discussion started by: attila
2 Replies
7. Shell Programming and Scripting
Hi Experts,
Is there a way to find a string in a file then append a character to that string then save the file or save to another file.
Here is an example.
>cat test.txt
NULL
NULL
NULL
9,800.00
NULL
1,234,567.01
I want to find all NON NULL String and add a dollar sign to those... (9 Replies)
Discussion started by: brichigo
9 Replies
8. Shell Programming and Scripting
Hi,
I need to replace and append a string in a text if grep is true. For eg:
grep ABC test.txt | grep -v '\.$' | awk {'print $4'} | sed "s/ ?
How do I replace all instances of "print $4" using sed with another sring? Eg of the string returned will be,
lx123
web222
xyz
Want to... (8 Replies)
Discussion started by: vchee
8 Replies
9. Shell Programming and Scripting
Hi,
I have a File, which have multiple rows.
Like below
123456 Test1 FNAME JRW#$% PB MO Approver XXXXXX. YYYY
123457 Test2 FNAME JRW#$% PB MO Super XXXXXX. YYYY
123458 Test3 FNAME JRW#$% PB MO Approver XXXXXX. YYYY
I want to search a line which contains PB MO Approver and append... (2 Replies)
Discussion started by: java2006
2 Replies
10. Shell Programming and Scripting
Hello
I would like to get know how to do this:
I got a big file (about 1GB) and I need to find a string (for instance by grep )
and then find all records in this file based on a string.
Thanks for advice.
Martin (12 Replies)
Discussion started by: mape
12 Replies
LEARN ABOUT LINUX
wxcontrolwithitems
wxControlWithItems(3erl) Erlang Module Definition wxControlWithItems(3erl)
NAME
wxControlWithItems - See external documentation: wxControlWithItems.
DESCRIPTION
See external documentation: wxControlWithItems .
This class is derived (and can use functions) from:
wxControl
wxWindow
wxEvtHandler
DATA TYPES
wxControlWithItems() :
An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc
or distributed for use on other nodes.
EXPORTS
append(This::wxControlWithItems(), Item::string()) -> integer()
See external documentation .
append(This::wxControlWithItems(), Item::string(), ClientData::term()) -> integer()
See external documentation .
appendStrings(This::wxControlWithItems(), Strings::[[string()]]) -> ok
See external documentation .
clear(This::wxControlWithItems()) -> ok
See external documentation .
delete(This::wxControlWithItems(), N::integer()) -> ok
See external documentation .
findString(This::wxControlWithItems(), S::string()) -> integer()
Equivalent to findString(This, S, []) .
findString(This::wxControlWithItems(), S::string(), Options::[Option]) -> integer()
Types Option = {bCase, bool()}
See external documentation .
getClientData(This::wxControlWithItems(), N::integer()) -> term()
See external documentation .
setClientData(This::wxControlWithItems(), N::integer(), ClientData::term()) -> ok
See external documentation .
getCount(This::wxControlWithItems()) -> integer()
See external documentation .
getSelection(This::wxControlWithItems()) -> integer()
See external documentation .
getString(This::wxControlWithItems(), N::integer()) -> string()
See external documentation .
getStringSelection(This::wxControlWithItems()) -> string()
See external documentation .
insert(This::wxControlWithItems(), Item::string(), Pos::integer()) -> integer()
See external documentation .
insert(This::wxControlWithItems(), Item::string(), Pos::integer(), ClientData::term()) -> integer()
See external documentation .
isEmpty(This::wxControlWithItems()) -> bool()
See external documentation .
select(This::wxControlWithItems(), N::integer()) -> ok
See external documentation .
setSelection(This::wxControlWithItems(), N::integer()) -> ok
See external documentation .
setString(This::wxControlWithItems(), N::integer(), S::string()) -> ok
See external documentation .
setStringSelection(This::wxControlWithItems(), S::string()) -> bool()
See external documentation .
AUTHORS
<>
wxErlang 0.98.9 wxControlWithItems(3erl)