Search Results

Search: Posts Made By: nishrestha
4,143
Posted By nishrestha
it's bash scripting #!/bin/bash echo...
it's bash scripting

#!/bin/bash

echo "Please enter your word: "
read WORD

consonants=0
vowels=0



that's what i have done so far. :p my bad that was c++ not c :D

---------- Post...
4,143
Posted By nishrestha
traversing a string
I am writing a script which will read a word and say how many vowels and consonants does the word contain. but i dont know how to traverse a string in shell scripting. if it was in C i'd have done...
864
Posted By nishrestha
Regular expression
Hi

I need to write a regular expression for a language. That language can have {a, b, c} as alphabet and it must contain minimum one "a" and minimum one "b".
Can u help me to write it plz!
...
Forum: Linux 04-05-2012
2,039
Posted By nishrestha
This is the information about my wireless. ...
This is the information about my wireless.

Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)

Do u need some more information? and thanks for reply
Forum: Linux 04-05-2012
2,039
Posted By nishrestha
wireless connection problem
Hi everyone,
I am new to linux. I have installed ubuntu and I am booting together with window. But I have a problem of wireless connection in ubuntu.
If I start booting using ubuntu no wireless...
Forum: Programming 01-19-2012
2,699
Posted By nishrestha
wierddddd :O
wierddddd :O
Forum: Programming 01-19-2012
2,699
Posted By nishrestha
mine is GCC (the GNU compiler)
mine is GCC (the GNU compiler)
Forum: Programming 01-19-2012
2,699
Posted By nishrestha
the first one does work. but the second one...
the first one does work. but the second one doesn't.
Forum: Programming 01-19-2012
2,699
Posted By nishrestha
pointer problem
Does anyone know?

int x = 1;
int *p = &++x; //ok !
int *q = &x++; //gives an error :O



why the first pointer is ok but the second is an error?
Forum: Programming 12-11-2011
1,558
Posted By nishrestha
thx for reply. it does work but what i actually...
thx for reply. it does work but what i actually wanna do is, i'm making a game called game of life. i wanna play the iteration on terminal but i dont know how

for example :
first generation:
- -...
Forum: Programming 12-11-2011
1,558
Posted By nishrestha
how to use linux command in c++?
I wonder how can u use linux's command like "clear" in c++.
Forum: Programming 12-10-2011
2,365
Posted By nishrestha
vector c++
hello guys.
i'm new to c++. i've problem using two dimensional vector.

i've a project of making conway's game of life. this is the code that i have made so far.
my problem is how can i give a...
4,311
Posted By nishrestha
@greet_sed once again thx! can u explain me...
@greet_sed
once again thx!
can u explain me what is the reason behind of using "-exec"
4,311
Posted By nishrestha
thx for the help guys. what do i have to do if...
thx for the help guys.
what do i have to do if i want to display the contents of all files of that directory at once recursively?
4,311
Posted By nishrestha
how to read contents of file?
I have made a script something like this. I want it to read the contents of either file or directory but 'cat' and 'ls' is not working. Can anyone help me? I am a newbie in scripting so dont know...
2,925
Posted By nishrestha
thx can u explain me how did u use that loop...
thx
can u explain me how did u use that loop plz ?
2,925
Posted By nishrestha
current logged in user
Hey guys

I need a script that reads a login name and verifies if that user is currently logged in

i have found few commands like "who" and "users"

but i wonder how can i verify it that login...
2,152
Posted By nishrestha
tarball of current directory
I wanna make a backup tarball. I wanna write a script that makes tarball of the current directory.
There are lots of files so I cant type all files, I wanna make the tarball by excluding few files....
Showing results 1 to 18 of 18

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