Search Results

Search: Posts Made By: shekhar_4_u
Forum: Programming 07-25-2018
1,794
Posted By Tanu
just learnt below so updating here - ...
just learnt below so updating here -

super().__init__(value) -- when using super(), no need to pass self

Test.__init__(self,value) -- when using BaseClassName, one needs to pass self too
1,035
Posted By Scrutinizer
Hi, please in future provide the right sample in...
Hi, please in future provide the right sample in post #1 from the start. That saves everyone time and effort.

Try this approach:
awk 'NF{n=split($(NF-1),F,/;/); for(i=1; i<=n; i++) {$(NF-1)=F[i];...
1,035
Posted By RavinderSingh13
Hello shekhar_4_u, If interested in awk then...
Hello shekhar_4_u,

If interested in awk then following may help you too on same.

awk -v s1="\""...
2,464
Posted By RavinderSingh13
Hello looney, Following may help you in...
Hello looney,

Following may help you in same.

awk '{DATE1=date -d $(NF-1) " " $NF; ######### making a variable here with name DATE1 whose value is equal to date -d $(NF-1) " " $NF, where...
10,448
Posted By Scrutinizer
Your loop constantly closes and opens the output...
Your loop constantly closes and opens the output file for append, so whether you see something with lsof becomes a race condition.

Instead try:
while true; do echo `date` ; done >abc.txt
or to...
6,439
Posted By RudiC
It extracts the first character from the first...
It extracts the first character from the first field in every line and stores it, extended by the string constant ".txt", into a temp string variable. If this differs from the old file name in...
6,439
Posted By RudiC
This proposal is nice and short and solves the...
This proposal is nice and short and solves the problem, but in case (large chunks of) the input file is sorted, it performs too many unnecessary file open/close operations. Try a small adaption: awk...
6,439
Posted By vgersh99
awk 'NF{if(f)...
awk 'NF{if(f) close(f);f=substr($1,1,1)".txt";print >>f}' erg.txt
Forum: What is on Your Mind? 11-07-2013
4,805
Posted By alister
While I can certainly appreciate the utility and...
While I can certainly appreciate the utility and convenience of being able to carry thousands of books in a hundred grams, and being able to quickly search voluminous references, when it comes to...
Forum: Android 09-06-2013
16,857
Posted By Neo
I am a part-time Android developer, and I don't...
I am a part-time Android developer, and I don't find Android development, or any code development "breaking and entering".

There are lots of development tools for Android and lots of code examples...
Forum: Android 09-03-2013
16,401
Posted By wisecracker
To shift the cursor to (H)ome you could try...
To shift the cursor to (H)ome you could try manually first to see if this works:-
echo -n $'\x1B[H'
If not then you might have to juggle the vertical tabs or cursor position using similar methods...
Forum: Android 08-30-2013
16,401
Posted By wisecracker
You might be limited to /bin/ed instead... ...
You might be limited to /bin/ed instead...

Good kuck...

For "printf" use "echo -e -n" instead, but I suspect you already know that... ;o)
Forum: What is on Your Mind? 12-30-2011
5,412
Posted By ahamed101
Yeah... Try BackTrack...
Yeah... Try BackTrack (http://www.backtrack-linux.org/)... You should see few of their video's...
I am running BT5... an ubuntu derivative by these guys... they have quite a few tools to start you...
Forum: Solaris 11-17-2011
2,845
Posted By zaxxon
Everyone at the UNIX and Linux Forums gives their...
Everyone at the UNIX and Linux Forums gives their best effort to reply to all questions in a timely manner. For this reason, posting questions with subjects like "Urgent!" or "Emergency" and...
Forum: Solaris 11-16-2011
2,861
Posted By jlliagre
Assuming you are running Solaris 10 or newer, you...
Assuming you are running Solaris 10 or newer, you can use dtrace to monitor what process is creating this file.

This script (eg: tracegz.d) should do it:syscall::open:entry
{
self->path =...
Forum: Solaris 10-18-2011
3,711
Posted By Paragon1970
Or if you want to be adventurous and non standard...
Or if you want to be adventurous and non standard play with the source code for unix_acct.c etc ;-)

sp_min , sp_max, sp_lstchg and so on.

Again not recommended but another option.

Cross...
Forum: Solaris 10-15-2011
3,711
Posted By jlliagre
Unless you are using a Solaris release including...
Unless you are using a Solaris release including a Sun Directory Server license, which used to be the case up to Solaris 10 update 5.
Forum: Solaris 10-15-2011
3,711
Posted By christr
Agreed, my point was Solaris alone can't fulfill...
Agreed, my point was Solaris alone can't fulfill that requirement.
Forum: Web Development 10-13-2011
4,318
Posted By Neo
Fix For Google Page Rank: Wordpress List Rank Dashboard Widget
Here is the fix for the recent Google changes to their pagerank API. For example, in the List Rank Dashboard Widget Wordpress Plugin (Version 1.7), in this plugin file:
...
Forum: AIX 10-07-2011
9,542
Posted By bakunin
The reason has nothing to do with AIX and...
The reason has nothing to do with AIX and everything with how the shell works: if you enter a "file glob" (like the "*" you used) it is not presented to the program but evaluated by the shell prior...
Forum: Solaris 10-03-2011
5,923
Posted By jlliagre
To clarify, starting from Solaris 10, run levels...
To clarify, starting from Solaris 10, run levels are obsolete and have been replaced by SMF milestones which emulate them.
Forum: Solaris 10-03-2011
5,923
Posted By Tommyk
init s is your run level and defines what...
init s is your run level and defines what services are running (which for single user mode is not very many).

if you run the following command you can see what milstones are online.

#svcs...
Forum: Solaris 10-03-2011
5,923
Posted By Tommyk
a RUN level determines what services are started...
a RUN level determines what services are started and what file systems are mounted. its like the difference between windows safe mode, safe mode with netowrking or a normal boot.

A milestone is...
Forum: What is on Your Mind? 10-03-2011
5,412
Posted By pludi
For a pen tester knowledge of programming...
For a pen tester knowledge of programming languages is rather a minor point, as they are used mostly to glue together various tasks or automate others. More important is a good knowledge of...
Forum: Solaris 09-29-2011
6,229
Posted By plmachiavel
Interesting enough ... Here is my "guess". I...
Interesting enough ... Here is my "guess".

I traduce low order four by “the least important bites” or “the ones on the right” as opposed to high order ones. Let's say I have the following:
...
Showing results 1 to 25 of 35

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