Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 589 results for
liner
- Page 1
Perl One Liner: Replace {(
Programming
Software Development
14 Years Ago
by mf44
…;stupid" question. Need your help on a perl one
liner
. Can't figure out how to add into the line…
Can it be done in a one-liner
Programming
Software Development
13 Years Ago
by boshu
…@email.com[/email] Can it be done in a one-
liner
(checking and adding non existant array element) My current code…
Re: Can it be done in a one-liner
Programming
Software Development
13 Years Ago
by d5e5
… don't know how to do it with a one-
liner
. The "add only if not already present" requirement…
Re: Can it be done in a one-liner
Programming
Software Development
13 Years Ago
by boshu
… found the following references which seems to works, (not 1-
liner
though) [CODE] my %k; my @def_emails = ("sam@email.com…
Re: Can it be done in a one-liner
Programming
Software Development
13 Years Ago
by k_manimuthu
Perl one
liner
scripts single quotes and double quotes may varied linux and …
porting perl one liner to python
Programming
Software Development
10 Years Ago
by ub007
… have python supported though:) Any thoughts on how that one
liner
can be written in python? Thanks David
Re: Perl One-liner Help !!
Programming
Software Development
13 Years Ago
by erezschatz
This one
liner
is equivalent to [CODE] my ($r, @output); open (my $FH, '&… 7; $r = 0; #reset flag } } [/CODE] Or as the one-
liner
[CODE] perl -n -i.bak -e 'print; $r=1 if…
Re: Epic one liner time
Community Center
Geeks' Lounge
10 Years Ago
by Labdabeta
… a comment above each one that describes what the one-
liner
does.
Re: Epic one liner time
Community Center
Geeks' Lounge
10 Years Ago
by pritaeas
The only useful one-
liner
I know is in Pascal/Delphi: asm int 3; end;
liner error
Programming
Software Development
18 Years Ago
by perlsu
I'm trying to compile a program and the 3 linker errors I get are: Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Can anyone help me. Thanks., rgds, perlsu
Re: liner error
Programming
Software Development
18 Years Ago
by Narue
Are you linking with msvcrt.lib? Are you compiling with the /MT switch to specify a multi-threaded application?
Re: Can it be done in a one-liner
Programming
Software Development
13 Years Ago
by k_manimuthu
[QUOTE=;][/QUOTE] [CODE] perl -ne 'BEGIN{%email=qw(sam@email.com 1 john@email.com 1 jenifer@email.com 1 );} /Zip_Name:\s*(.*)/; $email{$1}=1; END{print "$_:$email{$_}\n" for sort keys %email;} ' input_file [/CODE] Note : The above code tested at linux.
Re: Can it be done in a one-liner
Programming
Software Development
13 Years Ago
by boshu
Hmm... How to test this code? What is the input file here?
Re: Can it be done in a one-liner
Programming
Software Development
13 Years Ago
by k_manimuthu
[QUOTE=;][/QUOTE] [QUOTE] There are 20 txt files wherefrom email addresses are being parsed. [/QUOTE] insist of "input_file" mentioned your ".txt" file.
Re: Can it be done in a one-liner
Programming
Software Development
13 Years Ago
by boshu
Yes, it works now for me as well. Thanks Muthu. BR. Boshu
Re: porting perl one liner to python
Programming
Software Development
10 Years Ago
by TrustyTony
hogging memory should be simple enough for example m = [] while True: m.append(0) If you want to do it exponentially: m = ['a'] while True: m.extend(m[:])
Re: Change-a-Letter-or-Two-Game
Community Center
Geeks' Lounge
17 Years Ago
by vinod_javas
liner
how i can extracte a value in the array .
Programming
Software Development
13 Years Ago
by programing
[CODE]#include<iostream.h> int
liner
(int [], int ,int ); void main () { int a[1000]; int …;"Enter the searchkey"; cin>>searchkey; element=
liner
(a,searchkey,arraysize); if (element!=-1) cout<<&…cout<<"::::value not found :::::\n"; } int
liner
(int array[], int key ,int size){ int index=-1; …
Android Native - How to match sibling in Espresso tests
Programming
Mobile Development
2 Years Ago
by dimitrilc
… )) )) )).check(matches(isDisplayed())) //One
liner
//onView(withChild(withText("John"))) }…)) )) )).check(matches(isDisplayed())) //One
liner
//onView(withChild(withText("John"))) }…
Deleting a particular line from a file
Programming
Software Development
15 Years Ago
by sprok
…: JOB1 JOB2 JOB3 JOB1 JOB4 JOB2 Is there any one-
liner
(awk, sed, etc.) that can delete the first occurrence only… other way to implement this? I saw a sed one-
liner
but deletes all. By the way, the jobs listed is…
Re: Deleting a particular line from a file
Programming
Software Development
15 Years Ago
by sprok
I don't know if it's giving up but I will make other ways, may be loop on this to keep it going rather than a one-
liner
. As they say, short code not necessarily cool at the expense of readability. But, I'll still look for that [one-
liner
]. ;)
Download YouTube video using get_video
Programming
Software Development
13 Years Ago
by Krstevski
… download youtube videos, but I have problem... I use One-
liner
for this, the file is downloaded but it's empty… is my code: [CODE=python] # Author: Abhinay Omkar # Title: One-
liner
to download youtube video in Python from urllib import urlopen…
How to pass values (char) of JRadioButton to another JFrame
Programming
Software Development
12 Years Ago
by RinzLove
….black); loopow.addActionListener(this); geleye = new JRadioButton("Gel eye
liner
/ S$25"); geleye.setBackground(Color.black); geleye.addActionListener(this….black); youlip.addActionListener(this); penlip = new JRadioButton("Pencil Lip
liner
/ S$13"); penlip.setBackground(Color.black); penlip.addActionListener(this…
Re: Deleting a particular line from a file
Programming
Software Development
15 Years Ago
by Aia
>But, I'll still look for that [one-
liner
]. Because originally you used the switch -i I assumed your …
Re: Can an Xpath expression return a list of apired values?
Programming
Software Development
14 Years Ago
by JotaPe
… easily extensible. Of course when I mentioned a "one-
liner
xPath", I was thinking about a "few…
Laptop LCD built into a car?
Hardware and Software
Hardware
20 Years Ago
by dj data
… lcd screen off a laptop computer...sink it into the
liner
of the ceiling of my car and use clasps similar…
Re: Laptop LCD built into a car?
Hardware and Software
Hardware
20 Years Ago
by TallCool1
… lcd screen off a laptop computer...sink it into the
liner
of the ceiling of my car and use clasps similar…
Test with "[[ ... ]]" executing both, the && and the || clause
Programming
Software Development
18 Years Ago
by schbrongx
… cant sleep well tonight, when I dont use a one-
liner
:D [CODE][[ -d ${DIR_CUSTOMER} ]] && (echo "*** Information: Directory…
how to add a timestamp to scrolling lines?
Programming
Software Development
18 Years Ago
by nwc
Can anyone give me a one-
liner
that adds a timestamp to the output of vmstat -n 1 Perhaps using awk?
Re: how to add a timestamp to scrolling lines?
Programming
Software Development
18 Years Ago
by gritty
… help with it, or if you tried the awk one
liner
, or if you can at least use the perl script…
1
2
3
10
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC