10-03-2010
Forgive the endless replies for a simple subject - the text tat I'm working from isn't very clear about... well, anything.
In response to Corona688 - I see what you mean, but I also need to look for '<applet' within the files that grep looks for. Would this do that?
[ -d public_html ] && grep public_html/.*\<applet.* public_html/*.htm public_html/*.html
The more I look at this I can't help but think that I need to enclose part of this in backquotes (`). Just how wrong am I?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
All,
Is is possible to grep on two parameters in a file:
ex: If data in a file(GROCERIES.TXT) were like this
ABC GROCERIES 38-904949 16 987.89
Then grep would be
grep '38-904040' '16' GROCERIES.TXT
Thanks
KP (5 Replies)
Discussion started by: kingofprussia
5 Replies
2. Shell Programming and Scripting
Hi gurus out there,
1)I am using ksh, in solaris 10.
2)I have one ldif file, I need to output user DN with attributes=<some pattern> to a file.
Example:
dn: uid=joy,ou=People,o=abc.com,o=isp
nswmExtendedUserPrefs: meAutoSign=true
nswmExtendedUserPrefs: meSignature=Regards, Joy... (3 Replies)
Discussion started by: bulkbiz
3 Replies
3. Shell Programming and Scripting
Hi
I have a shell script A which calls another 10 shell scripts which run in background. How do i make the parent script wait for the child scripts complete, or in other words, i must be able to do a grep of parent script to find out if the child scripts are still running.
My Code:
... (5 Replies)
Discussion started by: albertashish
5 Replies
4. Shell Programming and Scripting
I have a shell script similar to:
#!/bin/sh
a=1
source a1.sh -- Modifies a
source a2.sh -- Modifies a
echo "After execution, value of a is $a"
What i need is a1.sh script modify the same variable a and same with a2.sh. Now the echo "After execution, value of a is $a" should print the... (1 Reply)
Discussion started by: indianjassi
1 Replies
5. Shell Programming and Scripting
I am using grep to capture date from a file .
Since i need to use the shell script for different dates ,is it possible to pass the date parameter to the shell script
the Script is as below
grep -E "08 Aug 2008|2008-08-08"* somefile.txt>test.txt
The above script file greps the... (1 Reply)
Discussion started by: sud.tech
1 Replies
6. Shell Programming and Scripting
I have four scripts to run.
My 1st script will make script2 and script3 to run. I am setting a cron job for this script1 to run continuously.
This script1 will check for 2 text files and based on the existance of those text files it will initiate the script2 and script3.
Now my doubt is that... (2 Replies)
Discussion started by: RSC1985
2 Replies
7. Shell Programming and Scripting
Hi, I was hoping that someone could help me. I have a problem that i am trying to work on and it requires me to change text within multiple files using sed. I use the program to change an occurance of a word throughout different files that are being tested. At first i had to Create a new script,... (1 Reply)
Discussion started by: Johnny2518
1 Replies
8. Homework & Coursework Questions
Hi, I was hoping that someone could help me. I have a problem that i am trying to work on and it requires me to change text within multiple files using sed. What i have so far is
!/bin/sh
File1="$3"
File2="$4"
File3="$5"
testNum="$File1"
while test "$testNum" <= "$File3";
do
echo... (12 Replies)
Discussion started by: Johnny2518
12 Replies
9. Shell Programming and Scripting
Hi every one, i am new to shell script. my people given a task to write a shell script that should execute number of shell scripts in that. in that, if any shell script is failed to execute, we have to run the main script again, but the script should start execute from the failed script only..
it... (1 Reply)
Discussion started by: Madhu Siddula
1 Replies
10. Shell Programming and Scripting
Hi every one, i am new to shell script. my people given a task to write a shell script that should execute number of shell scripts in that. in that, if any shell script is failed to execute, we have to run the main script again, but the script should start execute from the failed script only..
it... (6 Replies)
Discussion started by: Madhu Siddula
6 Replies
LEARN ABOUT DEBIAN
textcomp
TextComp(3U) InterViews Reference Manual TextComp(3U)
NAME
TextComp, TextView, TextGraphic, PSText - multiline text component subject, view, structured graphic, and PostScript external representa-
tion
SYNOPSIS
#include <Unidraw/Components/text.h>
DESCRIPTION
TextComp is a GraphicComp that defines a piece of multiline text. It uses a TextGraphic (a subclass of Label) to store its graphical
attributes. TextView is a GraphicView for displaying the text. PSText is a PostScriptView that externalizes the subject's information in
PostScript form.
TEXTCOMP PUBLIC OPERATIONS
TextComp(TextGraphic* = nil)
The constructor takes an optional TextGraphic that defines the attributes of the text.
virtual void Interpret(Command*)
virtual void Uninterpret(Command*)
TextComp redefines (Un)interpret to ignore BrushCmd and PatternCmd and to (un)interpret FontCmd.
TextGraphic* GetText()
Return the TextGraphic that defines the text component's attributes. GetText is simply a more specific form of the GetGraphic oper-
ation.
TEXTVIEW PUBLIC OPERATIONS
TextView(TextComp* = nil)
Create an TextView, optionally supplying the subject.
virtual void Interpret(Command*)
TextView interprets AlignToGridCmd to align its lower-left to the grid.
virtual Manipulator* CreateManipulator(
Viewer*, Event&, Transformer*, Tool*
)
virtual void InterpretManipulator(Manipulator*)
TextView redefines its response to manipulation with a GraphicCompTool. GraphicCompTool will let the user position and type out the
component's text using TextManip. Positioning of the text will be influenced by gravity, if any. TextView also defines a response to
the ReshapeTool to let the user edit the text. The subject is actually replaced (via ReplaceCmd) with a new TextComp subject posi-
tioned at the original TextComp's location but reflecting the edited text.
TextComp* GetTextComp()
Return the subject.
TEXTVIEW PROTECTED OPERATIONS
virtual boolean TextChanged()
Return whether the text in the subject is any different from that in the view.
TEXTGRAPHIC PUBLIC OPERATIONS
TextGraphic(const char*, int h, Graphic* = nil)
TextGraphic(const char*, Graphic*)
Create a TextGraphic, specifying its text, optional inter-line spacing, and optional graphic from which to obtain default graphics
attributes. TextGraphic stores a copy of the given string (behavior it inherits from Label). If inter-line spacing is not speci-
fied, then lines will be separated to reflect the font height reported by PSFont.
void SetLineHeight(int)
int GetLineHeight()
Explicitly set and get the inter-line spacing.
virtual boolean operator == (TextGraphic&)
virtual boolean operator != (TextGraphic&)
Report whether the given graphic contains or does not contain an identical copy of the text in this
PSTEXT PUBLIC OPERATIONS
PSText(TextComp* = nil)
Construct a PostScript external representation of the given subject, if any.
PSTEXT PROTECTED OPERATIONS
const char* Filter(const char* string, int length)
Filter excapes embedded control or other special characters that would cause syntax errors in the PostScript output.
SEE ALSO
FontCmd(3U), GraphicComp(3U), GraphicCompTool(3U), GraphicView(3U), Grid(3U), Label(3U), PostScriptView(3U), ReshapeTool(3U), align(3U),
edit(3U), manips(3U), pspaint(3U)
Unidraw 23 January 1991 TextComp(3U)