10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
I am using PERL one liner for oracle database connection as :
$PERL -e "use DBI; DBI->connect(qw(DBI:Oracle:SID user passwd));"
is there a way to append select statement to this connection ? i.e. DB connection and select stmt in one line ?
how to do sysdba connection using one lines... (1 Reply)
Discussion started by: talashil
1 Replies
2. UNIX for Dummies Questions & Answers
I have a data base of part numbers:
AAA Thing1
BBB Thing2
CCC Thing3
File one is a list of part numbers:
AAA234
BBB678
CCC2345
Is there a sed one-line that would compare a data base with and replace the part numbers so that the output looks like this?
AAA234 Thing1
BBB678 Thing2... (5 Replies)
Discussion started by: jimmyf
5 Replies
3. Shell Programming and Scripting
hey everyone,
I want to remove some characters from a string that i have with sed. For example if my string is:
a0=bus a1=car a2=truck
I want my output to look like this:
bus car truck
So i want to delete the two characters before the = and including the =. This is what i came up with... (3 Replies)
Discussion started by: GmGeubt
3 Replies
4. Shell Programming and Scripting
Thanks for giving your time and effort to answer questions and helping newbies like me understand awk.
I have a huge file, millions of lines, so perl takes quite a bit of time, I'd like to convert these perl one liners to awk.
Basically I'd like all lines with ISA sandwiched between... (9 Replies)
Discussion started by: verge
9 Replies
5. Shell Programming and Scripting
Hi I have a log data that shows chunks of data like this:
thisis example test, this is example test, this is example test
thisis example test, this is example test, this is example test
thisis example test, this is example test, this is example test
thisis example test, this is example test,... (2 Replies)
Discussion started by: erick_tuk
2 Replies
6. Shell Programming and Scripting
abc/abc1/abc2/abc3/abc4
i need a script to pick this above path when ever
any patterns like the below will be found.
abc/abc1
abc/abc1/abc2
abc1/abc2/abc3
abc2/abc3/abc4
abc2/abc3/
etc ....
etc.....
not only the above 5 but like these one..
any one liner will be of great... (1 Reply)
Discussion started by: debu182
1 Replies
7. UNIX for Dummies Questions & Answers
example input file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 (3 Replies)
Discussion started by: kenneth.mcbride
3 Replies
8. UNIX for Dummies Questions & Answers
I need a one liner to"
find /pattern/
print from x lines before "pattern" to y lines after "pattern" (3 Replies)
Discussion started by: kenneth.mcbride
3 Replies
9. UNIX for Advanced & Expert Users
Hi
I have a file say (a.txt) which has following
a.txt
----
$$var1=Tom
$$var2=Kim
I need a one liner which searches the file(a.txt) for $$var1 and returns the value in it(Tom).
Thanks in advance
Ammu (7 Replies)
Discussion started by: ammu
7 Replies
10. Shell Programming and Scripting
This works:
nslookup `uname -n`|tail -2|awk -F: '{print $2}'
This does not
aa=`nslookup `uname -n`|tail -2|awk -F: '{print $2}'`
Why???
Solaris v10
Thanks
Brandt (6 Replies)
Discussion started by: beppler
6 Replies