10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am trying to sort/get some specific output from a ls command but however I am having no luck. The command I am using is
'ls -al /nim/dr/mksysb/\*'|grep -e _dr -e .tgz|cut -c37-90|cut -d" " -f2-8|cut -d_ -f1
the error is
bash: ls -al /nim/dr/mksysb/\*: No such file or directory
... (1 Reply)
Discussion started by: hasn318
1 Replies
2. 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
3. UNIX for Advanced & Expert Users
Hi
I am trying to write a curl one-liner that will help me to input the password after intiating the upload. Also this curl job needs to run on the background and transfer the verbose output to a file. So we can tail the file and check the status if required.
This is curl command that I am... (1 Reply)
Discussion started by: cutechaps
1 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. 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
7. UNIX for Dummies Questions & Answers
Hi all,
Happy weekend.
I have the following sample.txt file which contains the students name and their marks of different subjects.
kamaraj@kamaraj-laptop:~/Desktop/testing$ cat sample.txt
kamaraj 34
kamaraj 35
kamaraj 56
raj 32
raj 324
raj 93
raj 93
test 1
test 1
test 1
test... (5 Replies)
Discussion started by: itkamaraj
5 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. Shell Programming and Scripting
input
a 100 200 300
b 400 10
output
a 100
a 200
a 300
b 400
b 10
Thanx (6 Replies)
Discussion started by: repinementer
6 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