I'm trying to figure out how to build a small shell script that will find old .shtml files in every /tgp/ directory on the server and delete them if they are older than 10 days...
The structure of the paths are like this:
/home/domains/www.domain2.com/tgp/
/home/domains/www.domain3.com/tgp/... (1 Reply)
I'm having a problem getting my variables to work in dishing out an RMC script.
The $1 works fine. $2 does not
Here's a portion of the script:
server=$1
filesystem1=$2
#
dsh -w $1 'mkcondition -c "/var space used" -s "Name == \"$2\"" -e "PercentTotUsed > 90" -d "An event will be generated... (7 Replies)
I need to perform the following substitutions and have been struggling to determine if or how I can do this with sed or perl.
I need to change the string foo(bar) to moo(bar,0) wherever this occurs in a file.
Is there a way to do this? I'm thinking there might be a wildcard of some sort that... (4 Replies)
Hi,
Under my parent diectory I have directory named "Response" in many of its subfolders. I am interested to see all files with extention .pro in Response Directory. I am giving following command -
find . -name "Response" -type d | xargs -i ls -lrt {}/*.pro
but it is not giving result.
... (3 Replies)
I am having difficulty with the following script:
#! /bin/bash
filelist=~/data/${1}*
~/./convertFile $filelist ~/temp/outputEssentially, there are a large number of files in the directory ~/data, each with a four-letter code at the beginning (eg. aaaa001 aaaa002 bbbb001 bbbb002 etc). The... (11 Replies)
Hello again,
I'm trying to change the following line:
INSERT INTO PH1_TX_LOAD VALUES ('TX-78731-AABSS:4182-4','RH: GUIDE TO TENNIS',TO_DATE('18-JUN-2001:00:00:00', 'DD-MON-YYYY:HH24:MI:SS'),TO_DATE('21-JUN-2001:00:00:00', 'DD-MON-YYYY:HH24:MI:SS'),500)
so that any TO_DATE is taken... (6 Replies)
I have a number of strings that I want to remove:
<b>Task: 100</b>
<b>Task: 1100 </b>
<b>Task: 2200 </b>
But the numbers in them can vary from 4, 5 8, digits in length. But, no alpha chars.
I tried this:
sed '/Task:/,//d' $file > tmpfile ; mv tmpfile $file
But it removed additional text on... (5 Replies)
Hi
I allow the user tommy to run this command as root
sudoCommand: /app/appname/connectors/*/*/current/bin/*With "sudo -l" he sees the sudoers, but is unable to execute.
$ sudo /app/appname/connectors/zur/namename/current/bin/othername agentsvc --i --u root --sn 1m7command
Sorry, user... (2 Replies)
Hello I have a file like :
20120918000001413 | 1.17.163.89 | iSelfcare | MSISDN | N
20120918000001806 | 1.33.27.100 | iSelfcare | 5564 | N
....
I want to extract all lines that have on 4th field (considering "|" the separator ) something other than just digits. I want to do this using a... (5 Replies)
Hi all, please can anyone show me how to use sed and regular expressions to achieve the following.
If a line contains a capital A followed by exactly 5 or 6 characters followed by an angled bracket then insert an asterix before the angled bracket.
So:
XCONFIGA12345<X
Becomes:
... (5 Replies)
Discussion started by: Jedimark
5 Replies
LEARN ABOUT PLAN9
mpm
MPM(6) Games Manual MPM(6)NAME
mpm, mspe - macros for page makeup
SYNOPSIS
troff -mpm file ...
troff -mspe file ...
DESCRIPTION
These troff(1) macros, largely compatible with ms(6), make better pages. They silently invoke and provide information to a postprocessor
that moves floating figures, avoids widows, and justifies pages vertically by stretching vertical spaces that result from .PP, .LP, .IP,
.QP, .SH, .NH, .DS/.DE, .EQ/.EN, .TS/.TE, .PS/.PE, .P1/.P2, and .QS/.QE. The packages support different styles:
-mpm generic
-mspe Software--Practice and Experience
The following macros are different from or not part of -ms. Values denoted n have default value 1v.
.BP Begin a new page.
.FL Flush: force out previous keeps.
.FC Finish a two-column region and start a new one.
.KF m Floating keep, with preferred center at vertical position m. Special values (default) and are permitted.
.NE n Start new page if remaining vertical space on this page is less than n.
.P1 Begin a program display (constant width font).
.P2 End a program display.
.P3 Insert optional break point in program display.
.SP n exactly
.SP n Insert vertical space of height n, stretchable unless exactly is present.
.Tm text
Place page number and text on the standard error output.
.X text
Present text to the hidden page-makeup program as part of a device-dependent output sequence x X text. Equivalent to X'text'.
Useful number registers:
HM Header margin; default 1 inch.
FM Footer margin; default 1 inch.
FO Footer position; default 10 inches.
%# Page number of current page.
dP,dV Shrinkage of point size and vertical spacing for .P1, in points.
Useful strings:
%e,%o Even and odd page title commands, as .tl ''''.
FILES
/sys/lib/tmac/tmac.pm
/$cputype/bin/aux/pm
SOURCE
/sys/src/cmd/pm
SEE ALSO ms(6), troff(1)
B. W. Kernighan and C. J. Van Wyk, ``The -mpm Macro Package'', Unix Research System Programmer's Manual, Tenth Edition, Volume 2.
BUGS
These features of -ms are missing:
Document styles other than the default .RP.
Space between front matter and first paragraph. Recover it with .SP 2.
Separating rule above footnotes.
Keeps assigned to a separate page.
Pages with more than two columns.
Troff option -o doesn't work with -mpm because only the postprocessor knows the page numbers.
MPM(6)