12-13-2005
can you explain what should be substituted for C and S in
touch -t [[CC]YY]MMDDhhmm[.SS] somefile
I am not familiar with these (could S be seconds?)
What is C?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear Masters,
Is there an easy way to generate a random list from a give list of names? Let's say, I have a file containing 15000 city name of world(spreadsheet, names in the first column), I would like to randomly pick up 50 cities each time for total 1000 picks. Or doesn't anyone know a... (3 Replies)
Discussion started by: mskcc
3 Replies
2. Shell Programming and Scripting
Hi Expert,
I have some confusing to generate report from the log file as shown below:
filename :test1.log
start_time date end_time number code
P 000029.621 20070823 000029 12134567890 111111111111 00 0 000 003... (4 Replies)
Discussion started by: bucci
4 Replies
3. UNIX for Advanced & Expert Users
Hi,
I want to write a script which can generate a kill list for killing process, program name start with f60.., which have been running for more than 8 hours, the list output should looks like:
kill -9 4444176
kill -9 4674520
kill -9 4454180
kill -9 4994523
Can anyone help how to write... (10 Replies)
Discussion started by: victorcheung
10 Replies
4. Shell Programming and Scripting
How can I generate a list of numbers and place all of these numbers in a line-by-line into a file.
I am new to scripting actually.
0501000000 to 0509999999
i.e.
0501000000
0501000001
......
0509999999
set 02
0551000000 to 0559999999
i.e.
0551000000
0551000001
......
0559999999
... (3 Replies)
Discussion started by: noo
3 Replies
5. Shell Programming and Scripting
Reference post, https://www.unix.com/shell-programming-scripting/131307-incrementing-twist-please-help.html , I can generate a word list easily, by echo or for loop.
For example, with the echo command and word expect, I can list all 6 letters possibility (6X6X6X6X6X6=46656)
echo... (6 Replies)
Discussion started by: rdcwayx
6 Replies
6. Shell Programming and Scripting
Is there a tool that can diff a directory and generate a change list of files in that directory based on a previous snapshot on the directory?
For example
/etc/a.txt:changed
/etc/b.txt:removed
/etc/c.txt:added
Thanks! (1 Reply)
Discussion started by: overmindxp
1 Replies
7. UNIX for Dummies Questions & Answers
I copied all JPEGs from my laptop to an external drive using
find . -name "*.jpg" -exec cp '{}' ./media/Backup/pictures \;
And then deleted all of them from my laptop.
Now, I realize that I need the folder path of all the original JPEGs as the path has the important information.
I dont... (1 Reply)
Discussion started by: eshwaconsulting
1 Replies
8. Shell Programming and Scripting
I manage an AIX OS 7.1 system on IBM Power 770.
I want to find out which directories/folders a particular user has read/write access to. How can I cleanly create a list of all directories on the system that a user has access to.. Does this make sense?
Thanks in Advance, NEWB:rolleyes: (3 Replies)
Discussion started by: code911
3 Replies
9. Shell Programming and Scripting
Dear Gents,
Please I need your help... I need small script :) to do the following.
I have a thousand of files in a folder produced daily.
I need first to merge all files called. txt (0009.txt, 0010.txt, 0011.txt) and and to output a resume of all information on 2 separate files in csv... (14 Replies)
Discussion started by: jiam912
14 Replies
10. Shell Programming and Scripting
Heyas
I want to list passed arguments and make an incrementing 'marker'.
That 'marker' should be a letter between a-z, in proper order.
I'm not aware of a seq pendant, so i tried it with this:
C=141
list=""
while ];do
printf \\$C
list+=" \\$C"
C=$((C+1))
done
echo... (3 Replies)
Discussion started by: sea
3 Replies
LEARN ABOUT OPENSOLARIS
setlabel
setlabel(1) User Commands setlabel(1)
NAME
setlabel - move files to zone with corresponding sensitivity label
SYNOPSIS
/usr/bin/setlabel newlabel filename...
DESCRIPTION
setlabel moves files into the zone whose label corresponds to newlabel. The old file pathname is adjusted so that it is relative to the
root pathname of the new zone. If the old pathname for a file's parent directory does not exist as a directory in the new zone, the file is
not moved. Once moved, the file might no longer be accessible in the current zone.
Unless newlabel and filename have been specified, no labels are set.
Labels are defined by the security administrator at your site. The system always displays labels in uppercase. Users can enter labels in
any combination of uppercase and lowercase. Incremental changes to labels are supported.
Refer to setflabel(3TSOL) for a complete description of the conditions that are required to satisfy this command, and the privileges that
are needed to execute this command.
EXIT STATUS
setlabel exits with one of the following values:
0 Successful completion.
1 Usage error.
2 Error in getting, setting or translating the label.
USAGE
On the command line, enclose the label in double quotes unless the label is only one word. Without quotes, a second word or letter sepa-
rated by a space is interpreted as a second argument.
% setlabel SECRET somefile
% setlabel "TOP SECRET" somefile
Use any combination of upper and lowercase letters. You can separate items in a label with blanks, tabs, commas or slashes (/). Do not use
any other punctuation.
% setlabel "ts a b" somefile
% setlabel "ts,a,b" somefile
% setlabel "ts/a b" somefile
% setlabel " TOP SECRET A B " somefile
EXAMPLES
Example 1 Set a Label.
To set somefile's label to SECRET A:
example% setlabel "Secret a" somefile
Example 2 Turn On a Compartment.
Plus and minus signs can be used to modify an existing label. A plus sign turns on the specified compartment for somefile's label.
example% setlabel +b somefile
Example 3 Turn Off a Compartment.
A minus sign turns off the compartments that are associated with a classification. To turn off compartment A in somefile's label:
example% setlabel -A somefile
If an incremental change is being made to an existing label and the first character of the label is a hyphen (-), a preceding double-hyphen
(--) is required.
To turn off compartment -A in somefile's label:
example% setlabel -- -A somefile
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWtsu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO
setflabel(3TSOL), label_encodings(4), attributes(5)
NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions.
This implementation of setting a label is meaningful for the Defense Intelligence Agency (DIA) Mandatory Access Control (MAC) policy. For
more information, see label_encodings(4).
SunOS 5.11 20 Jul 2007 setlabel(1)