Search Results

Search: Posts Made By: Bandit390
6,283
Posted By Bandit390
Help with uniq command
I call....

cat 1.txt | uniq -c

Sample of whats in 1.txt

vmstat
cd
exit
w
cd
cd
cd
newgrp
xinit
f
cd
cd
cd
rlogin
2,783
Posted By Bandit390
Help with awk adding spaces.
I have a file that contains...


elm,mail
...
5,931
Posted By Bandit390
behind a router, I mean they all on the same...
behind a router, I mean they all on the same router. modem > router > linux and vista box. Sorry for the confusion.

But I installed ssh server and now it works.

Thanks for all the help.
5,931
Posted By Bandit390
Yes, I do. I even used ssh on my server to...
Yes, I do. I even used ssh on my server to connect to my school's and had no problems.

All of what cat /etc/hosts shows is..
127.0.0.1 localhost
127.0.1.1 ubuntuhome

# The following...
5,931
Posted By Bandit390
/etc/hosts is what I have from my first post. ...
/etc/hosts is what I have from my first post.

127.0.0.1 localhost
127.0.1.1 ubuntuHome

Unable to connect to ubuntuHome and /sbin/ifconfig gives address of 192.168.1.103 and still unable...
5,931
Posted By Bandit390
Putting that in a script and running it, just...
Putting that in a script and running it, just gives me a bunch of "command not found". Even on my school's server.

When I connect to my school server with putty. I just put in the host name. Which...
5,931
Posted By Bandit390
Help connecting to linux server from shh client in windows!
I just installed the latest version of unbuntu server and want to connect from windows using a ssh client. This is my first linux server, so bare with me =)

For my server...

cat /etc/hostsgives...
29,875
Posted By Bandit390
How to use uniq on a certain field?
How can I use uniq on a certain field or what else could I use? If I want to use uniq on the second field and the output would remove one of the lines with a 5.

bob 5 hand
jane 3 leg
jon 4 head...
4,904
Posted By Bandit390
Using sed to print from the bottom up?
I have file.txt
bob
jon
jones
gary

I want to print from the botton, up using sed.

gary
jones
jon
bob

Whats one command I can use to do this? Or will I have to construct a new file...
8,162
Posted By Bandit390
Help with sed/substitution!
I have file.txt

1 4 7 9 3


I want to replace the tabs with a space, but my code doesn't work.

cat file.txt | sed 's/"\t"/ /g' >...
9,829
Posted By Bandit390
Continue output redirection on the same line?
I have
for i in 1 2 3 4
do
echo $i >> test.txt
done


test.txt contains ... 1
2
3
4


But I want it to contain ... 1234

Any suggestions?
3,928
Posted By Bandit390
Using obase, help!
I have a file that contains numbers...

Ex.
168446

I want to convert each number into binary and put the results into its own file.

I know below works
echo 'obase=2;1' | bc > file.txt
...
Forum: Programming 11-14-2008
4,144
Posted By Bandit390
Ignore case in a test?
How do I ignore the case in an if condition..?

EDIT: I put this in the wrong board...this is a linux script.


if [ "bob" = "Bob" ]
then
echo "Same name."
else
echo "Different name."
fi
1,544
Posted By Bandit390
Help with awk printout
I want to represent the columns by whats in a txt file. So the columns.txt file contains "$2$3" and the test.txt file contains "bob tom jones jon"

I have #!/bin/bash

columnsVar=`cat...
4,102
Posted By Bandit390
MYCMD="ls -l" $MYCMD > dirlist.txt
MYCMD="ls -l"
$MYCMD > dirlist.txt
1,272
Posted By Bandit390
Help with awk
I want to search $2 to see if the first letter contains W or the second letter contains W, but my code prints out nothing.

This is sample data from dataFile.txt
northwest NW Joel Craig 3.0 .98 3...
2,192
Posted By Bandit390
Help deleting lines with SED.
I take the /etc/passwd file and print it out, but I only want the lines that end with sh.

I have
cat /etc/passwd | sed '/sh/!d' Which prints out all lines that have sh somewhere in it.

So I...
Forum: UNIX and Linux Applications 09-23-2008
18,023
Posted By Bandit390
Emacs GUI window, help.
I'm using xming and enabled x11 tunneling. But when I try to use emacs to get the GUI window. I do get the window, but no fonts, can't click on buttons like file, edit....and when I type anything I...
4,953
Posted By Bandit390
Simple addition, help.
I add up the number of args that are not blank. It works, but the printout is a string that just keep concatenating on +1. So Ex. it goes through input of: bob toto " " tom ...I get 0+1+1+1, when...
Showing results 1 to 19 of 19

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