Hi,
I have a main loop which calls a sub loop, which finally returns to the main loop itself. The main loop runs when a flag is set. Now, I have a signal handler for SIGINT, which resets the flag and thus stops the main loop. Suppose I send SIGINT while the program is in subloop, I get an error... (1 Reply)
Dear Scripting experts,
I have a problem which i cannot get my head around and wondered if anyone can help me. I have two files "file1" and "file2" and i want to replace column one from file 1 with column one with file2.(where file two has many columns). see example.. ive tried to use cut and... (4 Replies)
Hello,
i am using the sigaction function to handle the SIGCHLD signal.Is it possible to use a class member function as the handler function (the sa_handler member of the sigaction structure)?
The function's signature is:
void (*sa_handler)(int);so i don't think i can use a static member function... (2 Replies)
hello everyone....
script is: To convert the contents of a database file into uppercase
my code is:
printf "%s\n" , $2 | awk '{print toupper($2)}' emp.lst
i m able to do only for one field.....didn't get any sources for handling multiple fields.
please suggest me for multiple... (1 Reply)
Hi,
I have an issue that I am trying to resolve using arrays in awk. I have two files, the first one is a dictionary with this format:
FILE 1 (dictionary)
'Abrir' 'Open'
'Aceptar' 'Accept'
Every line has two fields, a word in two languages.
The second file is a simple list of... (3 Replies)
I want to execute awk command without quotes.
who am i | awk {'print $2'}
above code should be something like:
who am i | awk {print $2}
Why such weird requirement?
Im assigning command to a variable, hence i need to escape the quotes.
e.g:
x='who am i | awk {\'print $2\'}'
I want... (11 Replies)
I have a text file where each field is enclosed in double quotes and separated by a comma.
But in certain rows we have embedded double quotes within column data
For e.g
"""TRUSPICE CENTRE"" CLAYTON AU"
The above value is for a single column but there are embedded quotes within... (2 Replies)
Hello, i had a problem running a script , and after investigation found its all to do with the quotes:
cat file1
line1
val1
val2
line2
val1
val2
line3
val1
val2
awk 'BEGIN {RS="\n\n"; FS="\n";} {print $1 $2}' file1
This gives me the wrong output: (5 Replies)
Hi,
I am having script which contains many functions. Need to print each function name at the starting of the function. Like below,
functionname()
{
echo "functionname"
commands....
}
I've tried like below,
func=`grep "()" scriptname | cut -d "(" -f1`
for i in $func
do
nawk -v... (4 Replies)
Discussion started by: Sumanthsv
4 Replies
LEARN ABOUT DEBIAN
fbsetroot
FBSETROOT(1) Fluxbox Manual FBSETROOT(1)NAME
fbsetroot - a simple background utility used by the fluxbox(1) window manager, originally written for and by the original blackbox(1)
window manager.
SYNOPSIS
fbsetroot [-display display] -solid color
fbsetroot [-display display] -mod x y -fg color -bg color
fbsetroot [-display display] -gradient texture -from color -to color
fbsetroot -help
DESCRIPTION fbsetroot(1) is a utility that can control the appearance of the root window in three ways: Either give it a solid color, or write a two
color modula pattern to it, or render a gradient texture, based on two different colors.
fbsetroot resembles xsetroot(1) in this functionality but it supports multiple-screen displays, and gradient textures the same way as
blackbox or fluxbox does. It doesn't handle cursors etc. fbsetroot was originally part of the Blackbox package and was carried over with
the code that became Fluxbox. It was called bsetroot back in those days.
If any errors are encountered, fbsetroot will use either gxmessage(1) or xmessage(1) to inform the user of errors.
OPTIONS
fbsetroot operates in three ways, you must choose one of the first 3 options:
-solid color
Sets the root window to specified color.
-mod x y
Creates a modula pattern. You must specify -bg and -fg colors.
-gradient texturestring
Renders the specified texture string to the root window.
texturestring may be one of:
Horizontal / Vertical / Diagonal / Crossdiagonal / Pipecross / Elliptic / Rectangle / Pyramid
Select one of these texture types, they only apply when -gradient is specified. You must also specify both a -from and a -to color.
-display display
Tells fbsetroot to connect to the specified display.
-bg, -background color
Background color. Needed for -mod patterns.
-fg, -foreground color
Foreground color. Needed for -mod patterns.
-from color
Start color for rendering textures. Needed for -gradient patterns.
-to color
Ending color for rendering textures. Needed for -gradient patterns.
-help
Prints version info and short help text.
AUTHORS
This manpage was modified by Curt "Asenchi" Micol <asenchi at asenchi.com> for the Fluxbox window manager.
Further updates for fluxbox-1.1.2 and conversion to asciidoc format by Jim Ramsay <i.am at jimramsay.com>
SEE ALSO fluxbox(1)fbsetbg(1)xsetroot(1)xmessage(1)gxmessage(1)AUTHOR
Jim Ramsay <i.am@jimramsay.com>
Author.
fbsetroot.txt 28 October 2011 FBSETROOT(1)