Search Results

Search: Posts Made By: devnul
4,964
Posted By devnul
Yep.. What pxt said.. That should solve your...
Yep.. What pxt said.. That should solve your problem.... Did it?..

- dEvNuL
9,677
Posted By devnul
Well you have yourself a really odd problem...
Well you have yourself a really odd problem here... I know you said the client system was tru64 UNIX, what is the host system (the system where the file is stored?)...

One last thing I would...
27
Cd
8,742
Posted By devnul
I also was thinking of something else.. This...
I also was thinking of something else.. This *may* have something to do with the UNIX-95 specification (seeing as how they seem to came out in 95).. Perhaps there is something which says something...
9,677
Posted By devnul
That is wc -l is suppose to do.. Return you a...
That is wc -l is suppose to do.. Return you a number.. What was that number?.. Was it faster then loading the file into vi?...

Please answer my other questions too.. ;>

- dEvNuL
2,385
Posted By devnul
There may be a way to set it up in the system...
There may be a way to set it up in the system configuration... (Thoguh I don't know, it depends on your system)...

However, the following added to your system login script would probably do it...
4,964
Posted By devnul
Most likely when you login your system is not...
Most likely when you login your system is not able to reverse-lookup your IP address... When you login type:

who am i

You will likely see an ip address in the last field...


Try to nslookup...
9,677
Posted By devnul
How big is the file? How fast is your network? ...
How big is the file?
How fast is your network?
Does something like: "cat filename | wc -l" run any faster?
Is it slow on all files or only one file?

- dEvNuL
27
Cd
8,742
Posted By devnul
Well, I just wanted to add that on Solaris...
Well, I just wanted to add that on Solaris /usr/bin/cd is a two-line shell script.... It does what any other shell script does.... On HP-UX I am not sure what it is at the moment, but I will check...
4,868
Posted By devnul
It should work.. But, copy all your files to a...
It should work.. But, copy all your files to a temporary location and test thoroughly...

I might point out that the reason I called it "sloppy" is because it does not sanity checking on the data.....
4,868
Posted By devnul
Assuming that your data file is called...
Assuming that your data file is called "bigdata.dat", here's a really sloppy way to do it, but it is easy-to-follow:


cat bigdata.dat |\
while read FILE ; do
script.ksh $FILE
done
15,510
Posted By devnul
Try this: <PRE> perl -e...
Try this:

<PRE>
perl -e '@stat=stat("/etc/passwd");$now_string=localtime($stat[9]);p
rint $ARGV[0].":$now_string\n"' /your/file
</PRE>
26,553
Posted By devnul
Yes, you are right.. THe order is important.. I...
Yes, you are right.. THe order is important.. I should have mentioned that... Glad to hear it is working quickly for you.. ;>

- dEvNuL
26,553
Posted By devnul
By the way, how fast does this run on large...
By the way, how fast does this run on large files?.. Do you have any to test it against?.....

Does anyone who knows regular expressions know a more efficient way of writing this regexp?.... I am...
26,553
Posted By devnul
*blush*.. WHy thank you.. :> I certainly would...
*blush*.. WHy thank you.. :> I certainly would not object...

I wanted to say though that actually I know nothing about credit card numbers, I had to do a search on the internet for credit card...
2,065
Posted By devnul
This error means that you have not installed the...
This error means that you have not installed the Sun C-compiler.... ...

However, there is another option.. You can install the GNU c-compiler.. ;> (Of course, this means you need to modify your...
10,102
Posted By devnul
This is sloppy, but it will do what you want: ...
This is sloppy, but it will do what you want:

find . -type f -print |\
while read FILE ; do
sed -e /sometext/d $FILE > $FILE.bak
mv $FILE.bak $FILE
done


- dEvNuL
26,553
Posted By devnul
Well, if you really want to know how to do this...
Well, if you really want to know how to do this right (with sed) *thinks*... There's always a right way and a wrong way to do everything... Of course, the right way is always more complex.... ;-(
...
13,125
Posted By devnul
Well, I have to say that there may be a more...
Well, I have to say that there may be a more practical way of doing what you want... I mean, why not just have something which prunes away files that are over say 30-days old?...

Something like:...
29,126
Posted By devnul
Assuming you have perl on your system you can use...
Assuming you have perl on your system you can use the "stat" command from within PERL, something like:

perl -e...
26,553
Posted By devnul
Oh yeah, you might wanna put a "g" on the end of...
Oh yeah, you might wanna put a "g" on the end of that sed script to get all of 'em...

.....\*\*\*\*/g'



- dEvNuL
2,383
Posted By devnul
.. yeah.. it was really fun with those systems......
.. yeah.. it was really fun with those systems... I remember even having to explicitly set "rm -i" as an alias (I think that was an Ultrix system, but I can't remember)....

... it's all good...
124,668
Posted By devnul
basename "/path/to/some/file" ;-) -...
basename "/path/to/some/file"

;-)

- dEvNuL
6,591
Posted By devnul
You are running a lpr spooler on win2k?... ...
You are running a lpr spooler on win2k?... Sounds like something is unable to do a reverse DNS lookup or something... *shrug*...

I'd start at the DNS level and make sure your system can reverse...
26,553
Posted By devnul
Well, lets see a credit card is a 16-digit number...
Well, lets see a credit card is a 16-digit number in groups of 4 seperated by "-" or a " " character..

This is not the smallest way to do it, but I think it'd do the job:

sed 's/[0-9]\{4\}[-...
51,875
Posted By devnul
Try: substring=`echo $string | sed...
Try:

substring=`echo $string | sed 's/^..//'`

- dEvNuL
Showing results 1 to 25 of 27

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