02-22-2012
Can you please explain your requirement clearly.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
am newbie to this forum. I need the script ( any shell ) for the following problems.
1. Write a script to rotate the logs.
2. Write a script to check the file system size and mail the super user about their % used.
3. Write a script to check the amount of space used by each of the... (1 Reply)
Discussion started by: ganeshinforum
1 Replies
2. Shell Programming and Scripting
Could someone please tell me how to delete all lines above a line which contains a particular string? (possibly using SED command)
I know how to do this if the target string appears in only one line of file but when it appears in multiple lines it only deletes from the first line which the string... (3 Replies)
Discussion started by: stevefox
3 Replies
3. Shell Programming and Scripting
Hi,
Iam in a need for a script/function in KSH where I want to read a text file (property file) in block by block. Here is the example:
Heading Name Descripton
Block Block1 Value1 Description
Property Name Value
Property Name Value
Property Name Value
Property Name Value
Property Name... (7 Replies)
Discussion started by: ysreenivas
7 Replies
4. Shell Programming and Scripting
Hi,
Below is my issue which I desperately need and I want a shell script which can do this job.
I need this script as I m planning to put this for a system health check. Please assist me.
1. There are 10 log files in a particular location.
2. open each log file. Goto to the end of the... (4 Replies)
Discussion started by: kashriram
4 Replies
5. Shell Programming and Scripting
Hi,
I have a file in which I have to replace the text with system date. The text needs to be changed on daily basis automatically.
Assume, in "test.txt", I have below lines:
LOAD FILE
MYFILE 'c:/test/test_2010_09_24.txt
-----
-----
In the above, MYFILE value changes every day, the... (1 Reply)
Discussion started by: psnmak
1 Replies
6. Shell Programming and Scripting
Hi,
Iam a novice to unix shell scripting, need a help from you guys.The scenario is as follows, i have the following Text file.
order No Company Category
21 aaa A
24 aaa A
87 aaa B
98 aaa B
23 abc A
45 abc B
25 bbb A
76 wes A
66 ... (6 Replies)
Discussion started by: tech_frk
6 Replies
7. Homework & Coursework Questions
Me and a friend are working on a project, and We have to create a script that can go into a file, and replace all occurances of a certain expression/word/letter with another using Sed. It is designed to go through multiple tests replacing all these occurances, and we don't know what they will be so... (1 Reply)
Discussion started by: Johnny2518
1 Replies
8. Shell Programming and Scripting
Hi, iam new to unix scripting need a help.
The scenario is i have 2 text files.
a.txt has
colA colB colC colD
JKU1270A JKU1042A 9 1
JKU1270A JKU1042B 9 1
JKU1270A JKU1042C 9 1
JKU1270B JKU1107B 9 1
JKU1270B JKU1107C 9 1... (1 Reply)
Discussion started by: tech_frk
1 Replies
9. UNIX for Beginners Questions & Answers
hi Folks,
Can anyone help with changing the color of the words in a linux shell script?
I get how to change default background etc in putty, but for some reason the text in the script has different colors for different parts of the cript.
Is there a way to have one color in a linux shell... (5 Replies)
Discussion started by: jonnyd
5 Replies
10. UNIX for Beginners Questions & Answers
#!/bin/bash
n=$l; typeset -a v
x=$(< input.dat)
check(){
if; then
sed 's/Test/Proc/g' file.sh >fl.sh
else
exit 13
fi
}
check $n
while ; do
x=`expr $x -l`
v=$x
done
less fi.sh l>/dev/null&& echo yes || exit 1
echo v= ${v
}
exit 0
I have file.sh and input.dat in the current... (3 Replies)
Discussion started by: bananasprite
3 Replies
CSREQ(1) BSD General Commands Manual CSREQ(1)
NAME
csreq -- Expert tool for manipulating Code Signing Requirement data
SYNOPSIS
csreq [-v] -r requirement-input -t
csreq [-v] -r requirement-input -b outputfile
DESCRIPTION
The csreq command manipulates Code Signing Requirement data. It reads one requirement from a file or command arguments, converts it into
internal form, checks it, and then optionally outputs it in a different form.
The options are as follows:
-b path
Requests that the requirement read be written in binary form to the path given.
-r requirement-input
Specifies the input requirement. See "specifying requirements" below. This is exactly the same format as is accepted by the -r and -R
options of the codesign(1) command.
-t Requests that the requirement read be written as text to standard output.
-v Increases the verbosity of output. Multiple instances of -v produce increasing levels of commentary output.
In the first synopsis form, csreq reads a Code Requirement and writes it to standard output as canonical source text. Note that with text
input, this actually compiles the requirement into internal form and then converts it back to text, giving you the system's view of the
requirement code.
In the second synopsis form, csreq reads a Code Requirement and writes its binary representation to a file. This is the same form produced by
the SecRequirementCopyData API, and is readily acceptable as input to Code Signing verification APIs. It can also be used as input to subse-
quent invocations of csreq by passing the filename to the -r option.
SPECIFYING REQUIREMENTS
The requirement argument (-r) can be given in various forms. A plain text argument is taken to be a path to a file containing the require-
ment. This program will accept both binary files containing properly compiled requirements code, and source files that are automatically com-
piled for use. An argument of "-" requests that the requirement(s) are read from standard input. Again, standard input can contain either
binary form or text. Finally, an argument that begins with an equal sign "=" is taken as a literal requirements source text, and is compiled
accordingly for use.
EXAMPLES
To compile an explicit requirement program and write its binary form to file "output":
csreq -r="identifier com.foo.test" -b output.csreq
To display the requirement program embedded at offset 1234 of file "foo":
tail -b 1234 foo | csreq -r- -t
FILES
DIAGNOSTICS
The csreq program exits 0 on success or 1 on failure. Errors in arguments yield exit code 2.
SEE ALSO
codesign(1)
HISTORY
The csreq command first appeared in Mac OS 10.5.0 .
BSD
June 1, 2006 BSD