12-16-2013
Can you post the output of the various commands you are referencing. You're talking about a script we can't see. What is the actual output of the network mounted directory and what is the actual output of it when it's local. A mounted directory (if not actually mounted) may show 0, so I would first suspect that the mount has failed if it is showing 0 files.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok, another fun hiccup in my UNIX learning curve. I am trying to count the number of occurrences of an IP address across multiple files named example.hits. I can extract the number of occurrences from the files individually but when you use grep -c with multiple files you get the output similar to... (5 Replies)
Discussion started by: MrAd
5 Replies
2. UNIX for Dummies Questions & Answers
Hi All
Can anyone help me with the following du querry. I am trying to achieve a total size for all the zipped files in a directory. Using du -k *.gz gets me a file by file list but no handy total at the bottom.
Thanks
Ed (9 Replies)
Discussion started by: C3000
9 Replies
3. Shell Programming and Scripting
I have a while loop which looks for files and then sets a variable to give me the record count of each file:
current_members=`wc -l ${DATA_DIR}/$MEMBERS_FILENAME | nawk '{ printf "%d\n", $0}'`
I am out putting the totals into a file:
echo $current_members >> ../data/out_total_members.dat
... (7 Replies)
Discussion started by: Pablo_beezo
7 Replies
4. Shell Programming and Scripting
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies
5. Shell Programming and Scripting
I am relatively new to Unix and I would be grateful if someone could help me with the syntax of a script.
I am trying to write a Unix script against the file ‘ajtest.dat’ (see below) so that it outputs the number of rows and total value of column 3 in a file called ‘aj1’ as follows:
No. of... (11 Replies)
Discussion started by: ajmutley
11 Replies
6. UNIX for Dummies Questions & Answers
When I do a listing in one particular directory (ls -al) I get:
total 43456
drwxrwxrwx 2 root root 4096
drwxrwxrwx 3 root root 4096
-rwxrwxr-x 1 nobody nobody 3701594
-rwxrwxr-x 1 nobody nobody 3108510
-rwxrwxr-x 1 nobody nobody 3070580
-rwxrwxr-x 1 nobody nobody 3099733
-rwxrwxr-x 1... (1 Reply)
Discussion started by: proactiveaditya
1 Replies
7. Solaris
# ls -l | more
total 12861
drwxr-xr-x 3 root root 512 Jun 20 21:57 Desktop
drwxr-xr-x 2 root root 512 Oct 16 2010 Documents
lrwxrwxrwx 1 root root 9 Oct 16 2010 bin -> ./usr/bin
drwxr-xr-x 7 root sys 512 Oct 16 2010 boot
drwxr-xr-x... (2 Replies)
Discussion started by: chidori
2 Replies
8. Shell Programming and Scripting
Input file
SFSQW 5192.56
HNRNPK 611.486
QEQW 1202.15
ASDR 568.627
QWET 6382.11
SFSQW 4386.3
HNRNPK 100
SFSQW 500
Desired output file
SFSQW 10078.86 3
QWET 6382.11 1
QEQW 1202.15 1
HNRNPK 711.49 2
ASDR 568.63 1
The way I tried: (2 Replies)
Discussion started by: patrick87
2 Replies
9. Solaris
i want to list Total HDD count in any soalris machine..can someone suggest some commands or combinations of commands (6 Replies)
Discussion started by: omkar.jadhav
6 Replies
LEARN ABOUT OSX
mount_exfat
MOUNT_EXFAT(8) BSD System Manager's Manual MOUNT_EXFAT(8)
NAME
mount_exfat -- mount an ExFAT file system
SYNOPSIS
mount_exfat [-o options] [-u uid] [-g gid] [-m mask] device directory
DESCRIPTION
The mount_exfat command mounts the ExFAT filesystem from the device device onto the directory given by directory. This command is normally
invoked by diskarbitrationd(8) as the result of detecting a device with a file system recognized as ExFAT. It can also be invoked indirectly
by executing the mount(8) command with the -t exfat option.
The options are as follows:
-o options
Use the specified mount options, as described in mount(8).
-u uid Set the owner of the files in the file system to uid. The default owner is the owner of the directory on which the file system is
being mounted.
-g gid Set the group of the files in the file system to gid. The default group is the group of the directory on which the file system is
being mounted.
-m mask
Specify the maximum file permissions for files in the file system. (For example, a mask of 755 specifies that, by default, the owner
should have read, write, and execute permissions for files, but others should only have read and execute permissions. See chmod(1)
for more information about octal file modes.) Only the nine low-order bits of mask are used. The default mask is taken from the
directory on which the file system is being mounted.
If none of the -u, -g, or -m options are given, the volume will be mounted with the MNT_UNKNOWNPERMISSIONS flag (equivalent to the -o
noowners option).
If the device is internal and not removable, the volume will be mounted with the MNT_ASYNC flag (equivalent to the -o async option) by
default. That default can be overridden with the -o noasync option. When mounted with the -o noasync option, metadata updates are synced to
disk frequently (by default, 50ms after the system call that changed the metadata returns to its caller).
SEE ALSO
fsck_exfat(8), exfat.util(8), mount(2), unmount(2), fstab(5), mount(8)
HISTORY
The mount_exfat utility first appeared in Mac OS X 10.6.3.
Darwin January 19, 2010 Darwin