Search Results

Search: Posts Made By: shekhar_4_u
Forum: Programming 07-25-2018
1,769
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,024
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,024
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,453
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,397
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,414
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,414
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,414
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,787
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,636
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,126
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,126
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)
6,306
Posted By itkamaraj
create a config file with something below ...
create a config file with something below

username=abc
password=xyz
....
....
...
servername=efg

save the file as important.config

In your shell script add the below line

....
Forum: What is on Your Mind? 12-30-2011
5,391
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: Tips and Tutorials 06-04-2005
320,047
Posted By Perderabo
A Closer Look at the Permission Bits on Symbolic Links
Symbolic links have evolved over the years. At first, a symbolic link was followed only when opening a file. So:
touch datafile
ln -s datafile slink
chmod 700 slink
did not protect the file...
Forum: Tips and Tutorials 06-03-2005
320,047
Posted By Perderabo
Enforcement Mode File Locking/Manditory File Locking
We aren't finished with that Set Gid bit yet... Unix has a concept of file locking. File locking is beyond the scope of this thread. But you need to know that file locking comes in two flavors:...
Forum: Tips and Tutorials 06-03-2005
320,047
Posted By Perderabo
Set GID Bit on Directories
We briefly mentioned that files have a user and group associated with them. Originally, it was just the user and group of whoever created them. But originally, a user could be in only one group at...
Forum: Tips and Tutorials 05-30-2005
320,047
Posted By Perderabo
The Sticky Bit
I previously have mentioned that when a directory has the sticky bit set, a file can be deleted only by the owner of the file or the owner of the directory. This behavior is specified by Posix and...
Forum: Tips and Tutorials 05-28-2005
320,047
Posted By Perderabo
Unix File Permissions
Introduction

I have seen some misinformation regarding Unix file permissions. I will try to set the record straight. Take a look at this example of some output from ls:
$ ls -ld /usr/bin...
Forum: Solaris 11-16-2011
2,852
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 11-17-2011
2,838
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 10-18-2011
3,706
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,706
Posted By christr
Agreed, my point was Solaris alone can't fulfill...
Agreed, my point was Solaris alone can't fulfill that requirement.
Forum: Solaris 10-15-2011
3,706
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: Web Development 10-13-2011
4,303
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:
...
Showing results 1 to 25 of 35

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