Search Results

Search: Posts Made By: pmpx
2,613
Posted By pmpx
Change word in list - PERL
Hi,
probably a newbie question..... But there it goes. :o

I have a list words. This list is taken out of a file with grep and cut.
my @system = (`grep up system_list| cut -d':' -f1`
);
...
Forum: SuSE 08-14-2007
7,791
Posted By pmpx
date format
Sorry this can be a very dumb question, but I'm having some problems with the date format......

I know, when I was programming that there was date format that looked like this, I can't remember...
Forum: Filesystems, Disks and Memory 07-26-2007
13,394
Posted By pmpx
Yeah, it's almost like that.... du -h...
Yeah, it's almost like that....

du -h --max-depth=1 /var

thanks
Forum: Filesystems, Disks and Memory 07-25-2007
13,394
Posted By pmpx
df command
Hello All,
need help with the df command....

If I do this: df -kh /var
Filesystem Size Used Avail Use% Mounted on
/dev/sda15 17G 5.8G 9.9G 38% /var

How can I...
Forum: Linux 06-08-2007
3,206
Posted By pmpx
Routing in Linux
Hello All,
I know it's a tricky probably stupid question but I'm stuck.... :(

Is there any way to route different protocols through different eth cards for the same destination in Linux? With...
2,921
Posted By pmpx
Thanks, but not all the switches/servers have...
Thanks, but not all the switches/servers have SNMP....
I have to do it via a script running in Linux.

Thanks!
2,921
Posted By pmpx
Telnet and get info
Hello all,
probably this is a very stupid question but I'm a beginner in the arts of scripting... :confused:

I'm trying to do a script that logs in to several equipments, switchs etc, and make...
Forum: SuSE 07-27-2006
6,872
Posted By pmpx
/etc/sysconfig/network/if-up.d Help
Hello all,
the scripts in this directory are executed after all interfaces are UP?
Can I create a script like this in this directory?
#!/bin/bash
route del -net xx.xx.xx.xx netmask xx.xx.xx.xx gw...
Forum: Solaris 02-20-2006
3,250
Posted By pmpx
Root login password
Hello all,
I've a problem with root login password in Solaris.
After I installed a patch the root password became empty, so to login as root I don't have to type any password, just username: root....
1,494
Posted By pmpx
help with text
Hi,
does anyone knows how can I do this with commands like sed or tr?
Input File:
this
is
the
text
Output file
t h i s
i s
t h e
t e x t

Thanks!!!!
5,497
Posted By pmpx
Skip new line
Hi,
how can I skip the new line of echo? In SH!!!!

echo "the date is :"
date

and result I want is
the date is : Tue Oct 11 22:24:37 WEST 2005

I've already tried including the \c inside...
2,169
Posted By pmpx
That was what I wanted to do. Thanks. ...
That was what I wanted to do. Thanks.

Another question, is it possible to do something like this in a shell script? If not how can I do? I've already tried this, but didn't worked....

for i in...
2,169
Posted By pmpx
Numerical Decision
I'm tryning to do something like this,

I have this file:
spaces12tabgoodbye
spaces3tabhello

I want to copy to another file the lines that have the number above 10...

I thought using sort...
1,235
Posted By pmpx
Help with grep
Hi,
I'm having some problems searching strings with grep.
I have this file:
spaces12tabxpto
spaces3tabpto

When I do
>grep pto file
It matches both lines of the file.... But I only want it...
4,284
Posted By pmpx
:) It worked! Thanks a lot.
:)
It worked!
Thanks a lot.
4,284
Posted By pmpx
SH script problem with read
Hi, I'm doing a script that reads lines from a file and then copy them to another file, if the user wants it.
But I'having problems to get the user selection because when I do the read to ask the...
1,600
Posted By pmpx
no, because I want to eliminate repeated text...
no, because I want to eliminate repeated text blocks.

Thanks for the other tip, it worked!
1,600
Posted By pmpx
Editing problem
Hi,
I want to do this:
original file:
a a hello
e e bye
becames:
a hello
e bye

I think this can be done with sed or tr, but I've already tried all the options and can't find the solution.
...
2,272
Posted By pmpx
You can have to had the directory where the...
You can have to had the directory where the test.sh is to the PATH.
Something like this:
PATH=$PATH:/home/user/directory_where_the_test.sh_is
export PATH

This works, until you restart again.
1,527
Posted By pmpx
Help on TR
I want to do something like this:
Original file:
a car
the house
x tree

After running the TR command I want this:
a car
the house
tree

I've already tried almost all combinations of the...
Showing results 1 to 20 of 20

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