Search Results

Search: Posts Made By: kpddong
1,524
Posted By kpddong
perl command driven script
so i have 3 options - i, d, a - for id, date, and arguments
therefore
perl test.pl -i admin -d 11/1/1
would show me the results of a table with the id admin on the date of 11/1/1.

i would...
4,907
Posted By kpddong
thank you!
thank you!
4,907
Posted By kpddong
perl/unix: script in command line works but not in perl
so in unix this command works works and shows me a list of directories

find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt

but when i try running a perl script to run this command...
2,891
Posted By kpddong
thanks. but why would exec be better? wouldnt...
thanks. but why would exec be better? wouldnt xargs be faster?
2,891
Posted By kpddong
may i ask why?
may i ask why?
2,891
Posted By kpddong
ahah which do you like more?
ahah which do you like more?
2,891
Posted By kpddong
thank you. i have a question this...
thank you.

i have a question

this seems to do the same thing


find . -name \*.xls -exec dirname {} \; | sort | uniq

but is there something wrong with this syntax?
2,891
Posted By kpddong
find syntax
i'm trying to find out how to find in my directory and subdirectories a certain file. once i find that file, i need to select that folder and copy it the location or output it to a new text file.
...
5,580
Posted By kpddong
thank you. no i did not study that.
thank you. no i did not study that.
5,580
Posted By kpddong
how to print out data from mysql table in perl script
I'm having trouble with this code.

if i do

.\read.pl -u user

it prints out

2010-12-20 12:00:00 host1 <cmd>a
2010-12-20 12:00:01 host1 <cmd> <execute>
2010-12-20 12:00:02 host1...
6,058
Posted By kpddong
Ahh i see, sorry for the confusion. Got a...
Ahh i see, sorry for the confusion.

Got a quesiton



when i copy that code and run it
./perl_getopt -s sval -c cval one two 333 fore

my output is not
option c is cval
option s...
6,058
Posted By kpddong
Sorry, I should have been more clear. I...
Sorry, I should have been more clear.

I know the $ indicates that it is a scalar variable but i have never seen $ by itself on a line.

I know that $opt_c is a variable and i know what $_ does...
6,058
Posted By kpddong
thank you for your reply. excuse me but...
thank you for your reply.

excuse me but why are there $ in all the lines?
6,058
Posted By kpddong
perl script command line option driven script
could someone show me a sample command line option driven script?

i want to see an easy way to write one and how i can execute it using command line options such as typing in

read.pl -i <id>...
2,714
Posted By kpddong
know this is late but thanks!
know this is late but thanks!
2,714
Posted By kpddong
that is a mysql command?
that is a mysql command?
2,714
Posted By kpddong
mysql how to select a specific row from a table
i have a table

records
------------
id | user | time | event
91 admin | 12:00 | hi
92 admin | 11:00 | hi
93 admin | 12:00 | bye
94 admin | 13:00 | bye
95 root | 12:00 | hi
96 root | 12:30...
3,571
Posted By kpddong
thanks helps a lot with what to do.
thanks helps a lot with what to do.
3,571
Posted By kpddong
What is a menu or command line option driven script?
i'm confused what this means.

i was asked to design a menu or command line option driven script that reads out of a DB and displays info such as

read_data.pl -u <user> -e <event>

which...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 10:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy