Search Results

Search: Posts Made By: hobiwhenuknowme
2,385
Posted By hobiwhenuknowme
quick question vi word search
hi,
while in vi, we use /string to look for the particular string. after that operation, the particular string is highlighted in yellow color.
how do i take the highlight off?
thanks so much.
15,034
Posted By hobiwhenuknowme
vi editor swap file please help
Hi,
when using vi editor, why do i automatically create swap file. this is very hard on me as on some systems i do not have remove file permission and swap file is only readable. it always happens...
1,754
Posted By hobiwhenuknowme
help with new ubuntu
hi,
i have had it with windows. i downloaded ubuntu desktop edition on my c drive. i downloaded it on windows. when starting, it asks me if i want to start windows or ubuntu.
i have a question?...
6,563
Posted By hobiwhenuknowme
this is very helpful thanks.
this is very helpful thanks.
6,563
Posted By hobiwhenuknowme
Difference in command syntax different shells
hi,
i am aa unix amateur and i am using tsh, csh and bash most of the time.
i have been looking over the net to find a summary of the differences in command syntax for example:
in csh and tsh you...
2,168
Posted By hobiwhenuknowme
linux ubuntu GNU/Linux. ---------- Post...
linux ubuntu GNU/Linux.

---------- Post updated at 01:04 AM ---------- Previous update was at 12:59 AM ----------



no,unfortunately. no error or anything but no output.
i am really...
2,168
Posted By hobiwhenuknowme
i got putty installed on windows xp. awk...
i got putty installed on windows xp.

awk '$2==$4' FS=\t filename
this is the only one which gave an output but displays both lines.

i tried awk '$2==$4' filename
awk ' $2==$4 ' filename
awk...
2,168
Posted By hobiwhenuknowme
my file contains: march 2008 january 2008 ...
my file contains:
march 2008 january 2008
march 1920 march 2002

awk ' $2==$4 ' filename
no output.
20,495
Posted By hobiwhenuknowme
so sorry, by ID i did not mean unix network id. ...
so sorry, by ID i did not mean unix network id.
i meant id as in class number or a 10 digit phone number.
how to display a patter of number within a file?

but anyways, i have putty installed on...
2,168
Posted By hobiwhenuknowme
Which command can help me output lines with duplicate numbers?
i have a file, let's call it file.

march 2008 january 2008
march 1920 march 2002

i want to output the first line, not the second as you can see the second line has different numbers.
20,495
Posted By hobiwhenuknowme
Raj, thanks for the effort buddy. ...
Raj,
thanks for the effort buddy.
unfortunately there is no output on the screen despite the fact that some files do have
4 digit numbers.
doesn't work.

---------- Post updated at 11:39 PM...
20,495
Posted By hobiwhenuknowme
list all files containing 4 digit number using grep
how can i list all files in my home directory that have a 4 digit id number, the line number where the id is located and the id itself not printing the entire line?
8,170
Posted By hobiwhenuknowme
thank you.
thank you.
8,170
Posted By hobiwhenuknowme
how to save changes to a file
is i want to sort or delete lines etc etc to a file, how do i save the changes.

example i do sort file > file
when i do cat file, all data is erased.
thanks.
1,621
Posted By hobiwhenuknowme
perfect. thanks.
perfect. thanks.
1,621
Posted By hobiwhenuknowme
locate a pattern and delete it using sed
if i have a file test and have a number(123)456-7899
how do i delete this without deleting all digits in the file.
parentheses isn't necessary.
3,707
Posted By hobiwhenuknowme
thanks anbu, but if i were to add a line :...
thanks anbu,
but if i were to add a line : doing"today"here to my file test,
it won't print that line out since the double quote isn't at the end of sentence.

---------- Post updated at 07:08...
3,707
Posted By hobiwhenuknowme
locate special characters and digits using grep
Hello,
i have a file called test

hello1
"how" are you4
good"bye"
good7bye

i am trying to print all lines from test that either end with a digit or contain a double quote character anywhere...
1,354
Posted By hobiwhenuknowme
#!/bin/bash filename=~/.animals $1 $2 ...
#!/bin/bash
filename=~/.animals $1 $2
is_in_file=`grep $name $filename`
if [ -n "$is_in_file" ]; then
echo $is_in_file | cut -d= -f2
else
echo " $1=$2" >> $filename

not...
1,354
Posted By hobiwhenuknowme
shell scripting
i made this script

zoo.sh:

#!/bin/bash
filename=~/.animals
echo -n "Enter an animal name: "
read name
is_in_file=`grep $name $filename`
if [ -n "$is_in_file" ]; then
...
Showing results 1 to 20 of 20

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