09-11-2019
Thank you everybody fore helping.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
With C Shell you can get the root, head, tail and extension of a pathname by using pathname variable modifiers.
Example Script:
#! /bin/csh
set pathvar=/home/WSJ091305.txt
echo $pathvar:r
echo $pathvar:h
echo $pathvar:t
echo $pathvar:e
The result of executing this script is:
... (7 Replies)
Discussion started by: BCarlson
7 Replies
2. HP-UX
Hi! I need to get PID of some particular process and I wonder if I can use pgrep tool for this purpose. The problem is that pgrep doesn't perform pattern matching on the whole command line, even if I use -f key. Parsing output of ps command is not quite convenient... Also deamon, which PID I need... (2 Replies)
Discussion started by: Sapfeer
2 Replies
3. Shell Programming and Scripting
How would I get folders owned by specific users.. I want to pass users as a shell variable to awk.
drwxr-x--x 3 user1 allusers 512 Oct 14 2006 946157019/
drwxr-x--x 3 user2 allusers 512 Mar 9 2008 94825883/
drwxr-x--x 3 user3 allusers 512 Mar 9 2008 948390501/
... (3 Replies)
Discussion started by: kchinnam
3 Replies
4. Shell Programming and Scripting
How to to pass variable to the below awk command
I would like to pass variables to the awk command instead of the constants "a/cc" but I don't know exactly the correct syntax
awk '/a/,/cc/' temp1.out
file.txt
a
b
s
cc
g
d
output
a
b
s (8 Replies)
Discussion started by: ahmedamro
8 Replies
5. Shell Programming and Scripting
I am trying to print text between two variables in a file
I have tried the following things but none seem to work:
awk ' /'$a'/ {flag=1;next} /'$b'/{flag=0} flag { print }' file
and also
sed "/$a/,/$b/p" file
But none seem to work
Any Ideas?
Thanks in Advance (5 Replies)
Discussion started by: forumbaba
5 Replies
6. UNIX for Advanced & Expert Users
Hi,
I need to extract all the content between two strings stored in two variables "startstring" and "endstring"
startstring=hello
enstring=world
#notworking
awk '/$startstring/, $NF ~ /$endstring/ ' file > file2
The above code is not working with variables. It works when actual string... (2 Replies)
Discussion started by: jeanjkj
2 Replies
7. Shell Programming and Scripting
Trying to do so
echo "111:222:333" |awk -F: '{system("export TESTO=" $2)}'But it doesn't work (2 Replies)
Discussion started by: urello
2 Replies
8. Shell Programming and Scripting
I am running an awk to verify all the memory settings for tomcat, and need to include path or directory in output ....
I am running:
awk '{ print $3 }' /opt/dir1/dir2/*/tomcat/bin/setenv.sh
Output results:
-Xms1024m
-Xmx1536m
-Xmx1536m
-Xmx1024m
-Xms1024m
-Xms1024m
-Xms512m
-Xms1024m... (3 Replies)
Discussion started by: kgolli
3 Replies
9. Shell Programming and Scripting
Hi,
I need to do find and replace, but the pattern is not full known.
for example,
my file has /proj/app-d1/sun or /data/site-d1/conf
here app-d1 and site-d1 is not constant. It may be different in different files. common part is /proj/xx/sun and /data/xxx/conf
i want to find where ever... (6 Replies)
Discussion started by: rbalaj16
6 Replies
10. Shell Programming and Scripting
Hello.
Question 1 :
I want to comment out all lines of a cron file which are not already commented out for each full path pattern matched.
Example 1 nothing to do because line is already commented out; pattern = '/usr/bin/munin-cron'
# */5 * * * * munin test -x... (3 Replies)
Discussion started by: jcdole
3 Replies
LEARN ABOUT DEBIAN
aosd_cat
AOSD(1) User Commands AOSD(1)
NAME
aosd_cat - displays text on the screen
SYNOPSIS
aosd_cat [OPTION...]
DESCRIPTION
Displays UTF-8 text in a transparent OSD frame.
For parameters marked with asterisk (*) valid range is 0-255. Those, which are marked with double asterisk (**), accept negative values.
Coloring parameters are specified in either #RGB format or from rgb.txt. Timing parameters are specified in milliseconds. Scrollback lim-
its are cancelled with 0 parameter. Age is in seconds.
Geometry Options:
-p, --position
Sets the OSD window position. Or to be more precise, selects the point of the screen which is told to be the beginning of the coor-
dinates (the 0,0 point) AND selects the point of the OSD window to collocate with it. Valid range is 0-8, where 0 is top-left corner
and 8 is bottom-right corner. Default value is 6.
-x, --x-offset **
Sets the x-axis window offset from the (0,0) point. Default value is 50.
-y, --y-offset **
Sets the y-axis window offset from the (0,0) point. Default value is -50.
-e, --shadow-offset **
Sets the shadow offset. Default value is 2.
-d, --padding *
Sets the margin from the edge to the contents. Default value is 0.
Appearance Options:
-t, --transparency
Sets the transparency mode. 0=none, 1=fake, 2=composite. Default value is 2.
-n, --font
Sets the OSD font. No default value.
-w, --width
Sets the OSD wrapping width in pixels. If set to zero, text will be wrapped on screen width or will not be wrapped at all if other
parameters make it impossible to layout correctly. Default value is 0.
Coloring Options:
-B, --back-color
Sets the background color. No default value.
-S, --shadow-color
Sets the shadow color. Default value is black.
-R, --fore-color
Sets the foreground color. Default value is green.
Opacity Options:
-b, --back-opacity *
Sets the background opacity. Default value is 0.
-s, --shadow-opacity *
Sets the shadow opacity. Default value is 192.
-r, --fore-opacity *
Sets the foreground opacity. Default value is 255.
Timing Options:
-f, --fade-in
Sets the fade in time. Default value is 300.
-u, --fade-full
Sets the time to show with full opacity. Default value is 3000.
-o, --fade-out
Sets the fade out time. Default value is 300.
Scrollback Options:
-a, --age
Sets the line age removal limit. Default value is 0.
-l, --lines
Sets the line amount removal limit. Default value is 1.
Application Options:
-i, --input
Sets the input text source. Default value is -.
BUGS
This manpage may be out of date. Use --help to get the latest options.
Thank you for using libaosd! Please send bug reports to: http://jira.atheme.org/
aosd_cat November 2007 AOSD(1)