Hi, I'm new to LINUX Scripting, I would like to know the full explaination of the below scripts.
thank you.
1st script
#! /bin/sh
. /opt/home/hssadmin/cindy/formatxml.env
`testrecord.scp`
`testEXGU.scp`
2nd Script
#! /bin/sh
. /opt/home/hssadmin/cindy/formatxml.env
cd... (1 Reply)
hello,
I would appreciate a little assistance with a process I'm trying to automate. I have several files that are zipped in central location, all follow the same naming conventions i.e (file 1, file 2, etc). what i would like to do is unzip the files and combined them into one file, basically... (2 Replies)
Hi
I need some help to clean my code used to get city location.
wget -q -O - http://www.ip2location.com/ | grep chkRegionCity | awk 'END { print }' | awk -F"" '{print $4}'
It gives me the city but have a leading space.
I am sure this could all be done by one single AWK
Also if possible... (8 Replies)
can anybody explain a
long fpathconf(int fildes, int name);
what it do
like
1- lim = fpathconf(STDIN_FILENO, _PC_NAME_MAX);
printf("%s %ld\n", "_PC_NAME_MAX: ", lim);
2- lim = fpathconf(STDIN_FILENO, _PC_PATH_MAX);
printf("%s %ld\n", " _PC_PATH_MAX ", lim);
3- lim =... (1 Reply)
Hi Team,
I need to know why ppl use If true loop instead of just writing down the sequence of code lines.
1:
echo "Line1"
if true; then
echo "Line2"
fi
echo "Line3"
2:
echo "Line1"
echo "Line2"
echo "Line3"
Could you explain what does the if true loop make difference in 1st compare... (3 Replies)
Hi there, I am trying to select a number of lines based on the lat. lon columns in a file but my awk code gives me empty result.
Here is my file:
20100213 102212 33.1185 39.4078 2.9
20100214 141753 33.1058 39.9068 2.9
20100218 115828 33.1907 39.3575 2.9
20100225 220001 33.1932 39.9448... (10 Replies)
Hello Team,
Could you pls explain how export command works in below code:
for i in ${!SDV_*}; do
export $i
done
As per my understanding, if
SDV_1=test1;SDV_2=test2;test1=var1;test2=var2then in for loop below export will get executed.
export var1;export var2But, Will this... (3 Replies)
XBACKLIGHT(1) General Commands Manual XBACKLIGHT(1)NAME
xbacklight - adjust backlight brightness using RandR extension
SYNOPSIS
xbacklight [-help] [-display display] [-get] [-set percent] [-inc percent] [-dec percent]
DESCRIPTION
Xbacklight is used to adjust the backlight brightness where supported. It finds all outputs on the X server supporting backlight brightness
control and changes them all in the same way.
-get Print out the current backlight brightness of each output with such a control. The brightness is represented as a percentage of the
maximum brightness supported.
-set percent
Sets each backlight brightness to the specified level.
-inc percent
Increases brightness by the specified amount.
-dec percent
Decreases brightness by the specified amount.
-help Print out a summary of the usage and exit.
-time milliseconds
Length of time to spend fading the backlight between old and new value. Default is 200.
-steps number
Number of steps to take while fading. Default is 20.
SEE ALSO Xrandr(3)AUTHORS
Keith Packard, Open Source Technology Center, Intel Corporation.
X Version 11 xbacklight 1.1.2 XBACKLIGHT(1)