Im trying to write some code atm which gets the complete pathname of a folder and strips off references to the parent folders. The end result should be just the name of the folder.
Currently Im able to extract the folder name, however Im getting junk added onto the name as well which is making further processing more difficult.
This is how Im doing it
For folder[] (which is the folder whose name I want) I will get something like "myfolder\023\04" when I just want "myfolder".
Im not sure what I could be doing wrong, so help would be appreciated
hello
i have a program in C (Unix - SOlaris5.7), and i have the next question:
i have a lot of char variable, and i want store their values in a char array. The problem is what i donīt know how to put the char variable's value into the array, and i don`t know how to define the array
please... (4 Replies)
Hello! I'm trying to make a script that will make a list of the files in a source tree and sort them by size. Problem is I've run into a weird problem.
print array will give me numbers like 160, 220, 444 that i don't even know where they come from, and print array will give me the correct numbers... (5 Replies)
Hi All,
I have a problem assigning variables to script.I have a script in which i have a while loop now i have to assign some values obtained to an array which will be used later in the script.Can anyone help how to do that.
At present my scrot looks like:
co=0
pco=0
co=`cat /tmp/highcpu... (4 Replies)
Here is a C function that replaces some non-ASCII chars to html decimal entities. It seems that the char "į" does not get replaced correctly but the rest do. Any idea why this is happening ?
(Please note that I had to place a space before each ; or they would not post correctly in this forum... (7 Replies)
This is in C++.
Is there a way to take characters out of input data?
For example, hello 0 1 2 3 4 5 is within my double dimensional array:
char arr;
How would I output only the characters h,e,l,l,o? (0 Replies)
Hi
I have two arrays:
arr1 = (demo demo2 demo3 demo4 demo5)
arr2 = (demo2 test demo)
I want to check that the values the "arr2" are present in "arr1"
Example
arr1 = (demo demo2 demo3 demo4 demo5)
arr2 = (demo2 test demo)
Output: Error
arr1 = (demo demo2 demo3 demo4 demo5)... (3 Replies)
Hello ,
im sorry for my english .
im trying to create a dynamic menu that will display if the interface is ACTIVE OR STOPPED/FAILED
for some reason i cant get it to work properly
start_interface_func()
{
i=0
for interface_chk in 11 71 73 72 12 47 48 49 50 20 23 24 25 46 21 22 27 28... (5 Replies)
Hi, this is my code.It's simple : there are 2 2D arrays and the multiplied to C.
#include<stdio.h>
#include<sys/shm.h>
#include<sys/stat.h>
#include<stdlib.h>
main()
{
int *A; //A
int *B; //B
int *C; //C
int i,j,x,k,d;
int id;
... (17 Replies)
When the STL generic algorithm's merge() function is used to merge two char arrays, the output is not as expected. Below is the program I tried with.
#include <iostream>
#include <algorithm>
#include <cstring>
#include <deque>
#include <iterator>
using namespace std;
int main() {
... (3 Replies)
I have two files:
file-1 is a list of number of interfaces in the switch and file-2 have VLAN-ID , VLAN-NAME , Interface belong to that VLAN like this:
file-1:
1/1
1/2
1/3
1/4
1/5
.
.
file-2:
1,"vlan-wifi",1/1,1/7,1/8 (9 Replies)
Discussion started by: SULTAN01
9 Replies
LEARN ABOUT ULTRIX
rmf
rmf(1mh)rmf(1mh)Name
rmf - remove folder
Syntax
rmf [ +folder ] [ -help ] [ -[no]interactive ]
Description
The command removes all of the messages within the current folder, and then removes the folder itself. If there are any files within the
folder which are not part of MH, they are not removed, and an error message is displayed.
You can specify a folder other than the current folder by using the +folder argument. If you do not specify a folder, and cannot find the
current folder, asks you whether you want to delete instead.
If the current folder is removed, it makes current.
Note that the command irreversibly deletes messages that do not have other links, so use it with caution.
If the folder being removed is a sub-folder, the parent folder becomes the new current folder, and tells you that this has happened. This
provides an easy mechanism for selecting a set of messages, operating on the list, then removing the list and returning to the current
folder from which the list was extracted.
Using to delete a read-only folder deletes the private sequence and current message information from the file, without affecting the folder
itself. If you have sub-folders within a folder, you must delete all the sub-folders before you can delete the folder itself.
Options-help Prints a list of the valid options to this command.
-interactive
-nointeractive
Asks for confirmation before deleting a folder. By default, deletes a folder and its messages without asking for confirmation.
If you specify the -interactive option, asks if you are sure before deleting the folder. You are advised to use this option,
since when deletes a folder its contents are lost irretrievably.
Examples
This example shows how asks for confirmation when the -interactive option is used:
% rmf -interactive +test
Remove folder "test"? y
Profile Components
Path: To determine the user's Mail directory
Files
The user profile.
See Alsormm(1mh)rmf(1mh)