02-08-2012
Generally I found
Linux Guys Says : Dir
Windows Guys Says: Folder
--Shirish
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Ok, so I just got charged with the task of deleting some 300 user folders in a FTP server to free up some space. I managed to grep and cut the list of user folders to delete into a list of one user folder per line.
Example:
bob00
jane01
sue03
In the home folder, there are folders a-z, and... (5 Replies)
Discussion started by: b4sher
5 Replies
2. Shell Programming and Scripting
Hi guys,
I´m trying to replace the 2 last folders name in a list of directories with a new string, but I´m don´t know which regex to apply.
Directories list:
C/my user/documents/games & music
C/my user/documents/photos 09-24-2008
C/my user/settings/config ?1_2
* The last folder may have... (11 Replies)
Discussion started by: cgkmal
11 Replies
3. UNIX for Dummies Questions & Answers
I have a ZIP folder ( folder.zip or folder.jar ) which contains , lets say 3 directories under it ( directory1, directory2, directory3).
How can i unzip the contents of directory2 ONLY ? I do not have to unzip the complete folder.
TIA. (2 Replies)
Discussion started by: Sheel
2 Replies
4. Shell Programming and Scripting
Hi,
I have a folder name XX and a directory N:.
Now I want to find the folder on that directory and print the path.
I tried with grep "XX" N:
but also search for files named as XX, but I want to find onlt folder and print.
please help me..
Thanks in advance (12 Replies)
Discussion started by: arup1980
12 Replies
5. UNIX for Dummies Questions & Answers
Hi there!:o
I have a question if I have a directories ~/MyFolder/Files/PersonalFiles/databases/food/tomato
~/MyFolder/Files/PersonalFiles/databases/items/cup
and I want my program to output food/tomato and items/cup, i.e. everything from the folder database but without... (5 Replies)
Discussion started by: FUTURE_EINSTEIN
5 Replies
6. Shell Programming and Scripting
I need help. I have to create a script which will delete multiple directory (folders) that are two months old. Example, I have folders dated April, May, June and July. I have to delete folders April and May and retain June and July and as such that when the July month lapse, the folder June will be... (2 Replies)
Discussion started by: jasperux
2 Replies
7. Solaris
i want to restart samba service in solaris 1o installed on virtual machine
but under
under /etc/init.d directory there is no folder with name samba in solaris 10
how do i proceed ? (4 Replies)
Discussion started by: rehantayyab82
4 Replies
8. Shell Programming and Scripting
Hello All,
I have to write a shell script and use it in informatica. The script has to perform below actions:
The script gets executed from edw user.
Through the script, a DT folder has to be created under edw_sca user.
Is this scenario possible through a SHELL script or not.
... (2 Replies)
Discussion started by: bghosh
2 Replies
9. Shell Programming and Scripting
I need help to write shell script to copy files from one server to another server.
Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
Discussion started by: naresh2389
3 Replies
LEARN ABOUT PLAN9
dirread
DIRREAD(2) System Calls Manual DIRREAD(2)
NAME
dirread - read directory
SYNOPSIS
#include <u.h>
#include <libc.h>
int dirread(int fd, Dir *buf, long nbytes)
DESCRIPTION
The data returned by a read(2) on a directory is a set of complete directory entries in a machine-independent format, exactly equivalent to
the result of a stat(2) on each file or subdirectory in the directory. Dirread decodes the directory entries into a machine-dependent
form. It reads from fd and unpacks the data into Dir structures in buf (see stat(2) for the layout of a Dir). Nbytes is the size of buf;
it should be a multiple of sizeof(Dir). Directory entries have length DIRLEN (defined in <libc.h>) in machine-independent form. A suc-
cessful read of a directory always returns a multiple of DIRLEN; dirread always returns a multiple of sizeof(Dir).
Dirread returns the number of bytes filled in buf; the number returned may be less than the number requested. The file offset is advanced
by the number of bytes actually read.
SOURCE
/sys/src/libc/9sys/dirread.c
SEE ALSO
intro(2), open(2), read(2)
DIAGNOSTICS
Sets errstr.
DIRREAD(2)