Search Results

Search: Posts Made By: fedora
3,197
Posted By fedora
Add line break for each line in a file
I cannot seem to get this to work..

I have a file which has about 100 lines, and there is no end of line (line break \n) at the end of each line, and this is causing problem when i paste them into...
Forum: Linux 01-07-2011
9,732
Posted By fedora
command to show bps, pps on a given interface?
i thought this was pretty simple question but i could not figure it out,

using command line, what is the command to print real time pps and bps on a given interface?
Forum: Cybersecurity 09-10-2010
3,689
Posted By fedora
iptables forwarding not working?
Hello, i am trying to setup a iptables rule to forward port 49 traffic from a specific ip a.a.a.a to port 50, but it does not seem to work, can someone take a look at my rule and let me know why it...
2,275
Posted By fedora
solaris, and i just tested on ubuntu and it...
solaris, and i just tested on ubuntu and it works! :)

if it is possible can you elaborate a little bit what your awk script does?
2,275
Posted By fedora
hmmm, i got the following error awk: syntax...
hmmm, i got the following error

awk: syntax error near line 1
awk: bailing out near line 1
2,275
Posted By fedora
the easiest way to break down this column?
i have a one column txt file, which has a large amount of data which look like this

a
11
3
b
45
77
r
7
9
blah
blah
blah

what i am trying to do here is for every 3 lines, i want to...
5,849
Posted By fedora
ah, thanks
ah, thanks
5,849
Posted By fedora
the command to save session
I remember there is a command you can type and it records everything you type on after it...anybody can help a bit?
5,088
Posted By fedora
yappppp!:D:D:D:D:D:D:D:D that is what i am...
yappppp!:D:D:D:D:D:D:D:D that is what i am looking for, interesting the manpage does not have it!
5,088
Posted By fedora
what is the switch to let sed edit and save file
I remember there is a sed switch i can use to edit and save the file at the same time, but i cannot recall it at all.

so instead of

-> sed 's/A/B/' file > file-tmp
-> mv file-tmp file
...
23,977
Posted By fedora
ah, thanks everybody, i figured it out. using...
ah, thanks everybody, i figured it out. using both single and double quotes solves the problem.

ssh ServerA "~/script '$option' '$optionb' '$optionc'"

and scottn, i am using ubuntu, and i...
23,977
Posted By fedora
thanks, but in my case, the system treats the ~...
thanks, but in my case, the system treats the ~ as remote home dir, not the local one, since the command gets executed, but the remote system is complaining about the argument part.

line 1:...
23,977
Posted By fedora
passing arguments in remote ssh command?
i have a bash script on serverA, when i run the script on the server, it runs fine. the way to run the script is like this ./script "option1"

Now i am trying to call it from local laptop using ssh...
1,533
Posted By fedora
ah, thanks
ah, thanks
1,533
Posted By fedora
find and regexp
i am totally confused now, when I use find command, why it does not take the regular express as filename?

for example, i want to find out anything include word "chapter" in their file names, and i...
11,390
Posted By fedora
sorry i mean slash, not backslash, i know i...
sorry i mean slash, not backslash,

i know i can use blackslash to escape slash, but the thing is i have to pass the variable to sed. and i cannot predict if the variable will have slash and where...
11,390
Posted By fedora
sed variable and backslash
I am trying to write a bash shell script, which extracts a sentence from a dynamically created dynamic file and passes it as a variable to sed and uses that sentence as a starting point to pull the...
1,557
Posted By fedora
What package has this "stan" command?
I saw someone using "stan" as a unix command in his shell command

something like this,

cat /tmp/testdata | cut -d ";" -f 2 |stan -n 6

But my ubuntu does not have this and i could not find...
8,329
Posted By fedora
EXCEPT timeout problem
i am trying to write an except script to ssh into a list of devices and run some commands, and i came across this problem, not every device is alive, which breaks the script, my script looks like...
2,091
Posted By fedora
How can i tell which conf file it is using
i have this program running on my solaris and there are two identical config files, i am not sure which one is being used by this program but I am sure it uses one of them.

I run lsof -p {pid} but...
1,568
Posted By fedora
What unix machine can this be?
my friend asked me to help him installing some sort of unix app on a server running some soft unix(that server runs MRI thing), and the only thing about that server he knows is OS ver 9.1.

So what...
Forum: IP Networking 03-30-2009
2,948
Posted By fedora
i think as long as the two host use IPs from same...
i think as long as the two host use IPs from same subnet block, there is no need to config anything besides IP address, right?
Forum: IP Networking 03-30-2009
2,948
Posted By fedora
secondary and private IP connection
hosta(eth0)----|switch|---(eth0)hostb

say hosta and hostb both connect to a swtich using eth0 with public IP addresses, and I add secondary and private IP on hosta and hostb's same eth0...
2,224
Posted By fedora
any script can be used to covert IP subnet?
say I have some netblocks, is it possible I can use a script to covert the subnet to every single ip?

for example, raw file has
"1.2.3.0 255.255.128.0"
"2.3.4.0 255.255.255.254"

and I want...
5,744
Posted By fedora
thank you thank you thank you! :b: :b: :b: ...
thank you thank you thank you! :b: :b: :b:

This little script is awesome! Saved for future use.
Showing results 1 to 25 of 112

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