I have a problem with the script below
#!/bin/sh
for vo in `find -maxdepth 1 -type f -regex "^\./*$"`
do
ls -l "$vo"
some other commands
done
It works fine until `find ...` returns files with spaces. I've tryed to change IFS but haven't succeed
Any solutions? (4 Replies)
Hi,
THe following is the output when i run the command ls -ltr
can anyone explain the meaning of the field in red
-rw-r----- 3 orca orca 20924 Sep 08 19:21 BTL027SASI.gnt
-rw-r----- 3 orca orca 20924 Sep 08 19:21 BTL027RITD.gnt
-rw-r----- 3 orca orca ... (2 Replies)
I posted a week ago regarding this scripting question, but I need to revisit and have a few more questions answered..
User cfajohnson was extremely helpful with the archive script, but clarification on my part is needed to help steer the answer in a direction that works in this particular... (5 Replies)
Hi All,
I see similar problems in past threads but so far no answers have worked for me. I am trying to write a script which parses a txt file that contains one filename per line, then finds those files on the local disk and copies them to a specified directory.
What I have:
... (4 Replies)
Hi,
I want to list all the files matching in a directory directory given below
Here one of the folder has a space in the path.
/MAS02/RMS/WBDev/Krishna/Krishna Mohan/FMSplitByKeyAfterChanges1000075383.fileman.*.txt.out.1000075383.0
The following works from command line... (1 Reply)
I have a large list of filenames from an Excel sheet, which I then translate into a simple text file. I'd like to use this list, which contains various file extensions , to archive these files and then remove them recursively through multiple directories and subdirectories. So far, it looks like... (5 Replies)
Hi,
I wanted to add specific text to each row in a text file containing three rows. Example:
0 8 7 6 5 5
7 8 9 0 7 9
7 8 9 0 1 2
And I want to add a 21 at the beginning of the first row, and blank spaces at the beginning of the second two rows. To get this:
21 0 8 7 6 5 5
7 8... (4 Replies)
Hi experts,
I have the following data: I want the last filed in the output.
How to print the last field , It contains the file names and few filenames with white spaces .
-rw-r--r-- 1 root root 0 2010-04-26 16:57 file1 2space_File.txt
-rw-r--r-- 1 root root 0 2010-04-26... (2 Replies)
I think I must be missing something obvious but I have a file containing a list of files and paths, some with wildcard, others with spaces. e.g.
/this/is/a/file
/this/is/a/directory/
/this/is/a/collection/*
/this/has spaces/in/it
/this/had spaces/and/list/of/files*... (6 Replies)
Discussion started by: mij
6 Replies
LEARN ABOUT OSX
pdb_odsam
PDB_ODSAM(8)PDB_ODSAM(8)NAME
pdb_odsam - Open Directory account information database for smbd
SYNOPSIS
The pdb_odsam plugin is the default account information database backend used on Mac OS X. It makes users and groups record from Open
Directory available to Samba.
idmap_odsam should always be used in conjunction with the odsam passdb backend.
OPTIONS
odsam: map guest to guest = BOOL
If this is true (the default), pdb_odsam map the literal username "guest" to the configured guest account. This makes "guest" an
alias for the configured guest account regardless of whether an account named "guest" exists or not.
odsam: msglevel = LEVEL
LEVEL is the integer log level at which pdb_odsam should emit log messages. The lower LEVEL is, the more verbose the log messages.
odsam: traceall = BOOL
If this is true, pdb_odsam will emit log messages for all Open Directory calls. If it is false (the default), it will only log
errors.
EXAMPLES
[global]
idmap domain = default
idmap config default:default = yes
idmap config default:backend = odsam
idmap alloc backend = odsam
passdb backend = odsam
odsam: msglevel = 0 # Log at debugging levels
odsam: traceall = no # Do not trace Open Directory calls
BUGS
Please report bugs to Apple.
SEE ALSO DirectoryService(8), smb.conf(5), smbd(8)PDB_ODSAM(8)