12-15-2008
doesnt have to anything to do with UNIX..thats why i have posted it in
"High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here."
any ideas how i can do it?
thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
I'm trying to use sed to erase everything, up to, and including, the first closing parenthesis. for example:
input: blah blah blah (aldj) test (dafs) test test.
output: test (dafs) test test.
how would i do this?
I was fooling around with the parenthesis, and i only got it to apply to... (5 Replies)
Discussion started by: gammaman
5 Replies
2. Shell Programming and Scripting
Hello, i'm unable to remove the parenthesis character.
With $parsed_AsciiName =~ s/\(//;
the string is the same
And with $parsed_AsciiName =~ s/(//;
i retrieve "Unmatched ( in regex; marked by <-- HERE in m/( <-- HERE"
Any ideas, please? thank you in advanced. (4 Replies)
Discussion started by: aristegui
4 Replies
3. Shell Programming and Scripting
Hi,
I am trying to clean up data between parenthesis () in a file.
See example below....
Input File :
(New York) Chicago (London)
New York (Chicago) London
New York Chicago (London)
(New York) (Chicago) (London)
New York (Chicago)
... (3 Replies)
Discussion started by: msalam65
3 Replies
4. Shell Programming and Scripting
What's the use of parenthesis () in shell programming ?
I saw this in one of the posts in this forum :
echo $($1)
What confounded me was that it evaluated the inner expression and then the outer one, almost like eval. It seemed like it did this in passes. (2 Replies)
Discussion started by: daudiam
2 Replies
5. Shell Programming and Scripting
Hi guys,
I've been trying to do this for hours, and I've just been running around in circles trying to get this script made. I have a set of files outputted by an MSVC compiler that looks like this
1> helloworld.cpp
1> Note: including file: c:\dev\test\makefile\source\helloworld.h
1> ... (7 Replies)
Discussion started by: krad
7 Replies
6. Shell Programming and Scripting
I have a file that, among other things, contains a tuple with words and the word count. I want to make a list of the words only.
Ex: My file words.txt looks like:
0.1 sw-wn 9 - n: 97/903 p: 107/893neg: (film,771.1) | (movie,717.1) |
(like,690.1) | (just,621.1) | (it's,607.1) | (time,543.1) |... (4 Replies)
Discussion started by: erinbot
4 Replies
7. Shell Programming and Scripting
I have the following text as an input text:
input.txt
Results('Toilet', 'Sink', )
and i want to remove the last comma so the output is
output.txt
Results('Toilet', 'Sink' )
I tried using the following sed command, but I get a parsing error:
sed s/, \)/\)/g input.txt >... (5 Replies)
Discussion started by: jl487
5 Replies
8. Shell Programming and Scripting
I have the following data and want to put parenthis around the numbers:
PARTITION PERIOD_MIN VALUES LESS THAN 10649 TABLESPACE ODS_DAILY_MF_AUM,
PARTITION PERIOD_10649 VALUES LESS THAN 10650 TABLESPACE ODS_DAILY_MF_AUM,
PARTITION PERIOD_10650 VALUES LESS THAN 10651 TABLESPACE... (2 Replies)
Discussion started by: BeefStu
2 Replies
9. Shell Programming and Scripting
Hi Gurus,
I have an input like the one below. What i wanted to achieved is to create a select statement based from that information
INPUTInsert into table_name (col1,col2,col3,col4,col5,DATE1,DATE2,col6,col7,col8,col9,col10,col11) values (6752,14932156,24,'ALL','Staff',to_date('04/17/2017... (6 Replies)
Discussion started by: ernesto
6 Replies
10. Shell Programming and Scripting
Hello,
i 've go a file with the following text:
oracle@das (J005) 0
oracle@das (J008) 0
oracle@das (J050) 0
oracle@das (J038) ... (15 Replies)
Discussion started by: nms
15 Replies