Search Results

Search: Posts Made By: console
1,902
Posted By console
Opendir
code:
#include<iostream>
#include <dirent.h>
using namespace std;
int main()
{

DIR*dir;
dir = opendir("/");
if (dir !=NULL)
{
struct dirent * abcd;
while ((abcd=readdir (dir))!=NULL)
{...
Forum: Programming 12-06-2012
1,750
Posted By console
Opendir
code:
#include<iostream>
#include <dirent.h>
using namespace std;
int main()
{

DIR*dir;
dir = opendir("/");
if (dir !=NULL)
{
struct dirent * abcd;
while ((abcd=readdir (dir))!=NULL)
{...
Forum: Programming 12-06-2012
1
Dir
1,208
Posted By console
Dir
how can i pass a argument to find all the content of that directory and using argument can jump to sum other directory and show its contents?
Forum: Programming 12-06-2012
1,853
Posted By console
@ vistastar= thank you. ...
@ vistastar= thank you.
(https://www.unix.com/members/302082204.html)

---------- Post updated 12-06-12 at 01:39 AM ---------- Previous update was 12-05-12 at 11:41 AM ----------

i have done...
Forum: Programming 12-05-2012
1,249
Posted By console
I.p address of machine
i m writing a program which finds the i.p address of the machine.
but it just prints out the first three character of the ifconfig output
but i want to just print my i.p address lik 10.0.0.222...
Forum: Programming 12-05-2012
1,853
Posted By console
Read file and add value
i have a file outfile.txt which contain
12
22
i have written this program to read the file and show the output,but i dont know how to add these value and show the total.
my-codes are...
Forum: Programming 12-04-2012
1,055
Posted By console
Reading file
how can i read from a file and show the total content of the file? c++
1,622
Posted By console
yea got it friends :) ---------- Post...
yea got it friends :)

---------- Post updated at 01:46 AM ---------- Previous update was at 01:33 AM ----------

friends one more question
read file >> $file.csv
is it correct we can make a...
1,622
Posted By console
noo thats not working
noo thats not working
1,622
Posted By console
Searching files
i want to search a file bt it not happening i m using
#!bin/bash
read file
if (-e "$file")
then
echo "asfsafafa"
else
echo "NO SUCH FILE"
fi
....error
./VMC.sh: line 5: [fegsgws]: command...
1,124
Posted By console
[Solved] sed
sed -e 's/console/raw/g'
this command will replace the letter pradeep with rawat
what if i want to replace a word like FRIENDS with a space simultaneously from the same file i m replacing pradeep....
Showing results 1 to 11 of 11

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