hi
i have two files
cat input.txt
123456| 43256
456482|5893242
cat data.txt
xv 123456 abcd dsk
sd 123456 afsfn dd
df 43256 asdf ff
ss 456482 aa
sf 5893242 ff ff
aa 5893242 aa aa
i need to read inputs from input.txt and find data for data.txt.
then i need to print them as a... (2 Replies)
hi all,
i have a while loop which i am using to read lines into an array:
k=0
exec 10<file
while read LINE <&10; do
ARRAY=$LINE
((k++))
done
exec 10>&-
echo ${ARRAY}
for some reason when i display the array it is not showing the last row in the file.
any help appreciated. (1 Reply)
I am writing a shell script using the korn shell. It seems that I am only
able to use local variables within a while loop that is reading a file.
(I can't access a variable outside a previously used while loop.) It's been
a while since I wrote shell scripts. Here is a sample
cat file.txt... (4 Replies)
Hi,
Here is the output of lpstat. I would like to read value of Queue which is(abxxxxb1)and status that is DOWN in first line. i dont care what is in second line. any one can help me.thanks
Queue Dev Status Job Files User PP % Blks Cp Rnk
------- ----- ---------... (5 Replies)
Hi Friends ,
Sorry if this is a repeated question ,
The input file contains 5 lines , so the the values of the variables i and count should b
i=5;
count=15
but the variables are not updating , the value of variables showing i=0 and count =0 only.:mad:
can any1 help me please. (11 Replies)
All,
Here is my for loop
export CFGLIST="LIST1 LIST2 LIST3"
for i in $CFGLIST
do
echo print $i
done
The output will be
LIST1
LIST2
LIST3
But i want it display
LIST3
LIST2
LIST1 (8 Replies)
Hello All,
Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....?
I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping
through a string containing some of these "Illegal Characters". Now... (5 Replies)
Hi All,
I have a file which has hundred of records with fixed number of fields. In each record there is set of 8 characters which represent the duration of that activity. I want to sum up the duration present in all the records for a report. The problem is the duration changes per record so I... (5 Replies)
Hello Team,
i have to read line by line in a while loop, and the input file has:.
# The script will start cppunit test application to run unit tests.
-LD_LIBRARY_PATH=$CPPUNIT_HOME/lib:\
+LD_LIBRARY_PATH=$VOBTAG/SS_UnitTest/lib:\
$VOBTAG/SS_BFD/BFDSCLI/build:\
... (7 Replies)
Cope sample1: test.sh
i=0
echo " Outside loop i = $i "
while
do
i=$(( $i + 1))
echo "Inside loop i = $i "
done
echo " Out of loop i is : $i "
When run output :
Outside loop i = 0
Inside loop i = 1
Inside loop i = 2
Inside loop i = 3
Inside loop i = 4
Inside loop i = 5
Inside... (8 Replies)
Discussion started by: Adarshreddy01
8 Replies
LEARN ABOUT DEBIAN
wmanager-loop
WMANAGER-LOOP(1) BSD General Commands Manual WMANAGER-LOOP(1)NAME
wmanager-loop -- loop running window managers chosen with wmanager
SYNOPSIS
wmanager-loop [OPTIONS ...]
DESCRIPTION
The wmanager-loop program starts either the window manager specified by the WM variable or the first window manager listed in ~/.wmanagerrc
(or an X terminal emulator if none), and when it exits, runs wmanager(1) to prompt the user for the next window manager. It loops doing this
until the user chooses ``Exit this session'' in wmanager(1). Any options given to wmanager-loop will be passed on to wmanager(1).
If the WM environment variable is set, the wmanager-loop program tries to interpret it as a window manager specification in the following
ways in the specified order:
o a full path to an executable file to run as the window manager;
o the name of a window manager listed in the /.wmanagerrc file; e.g. ``fluxbox'' would match the following line:
fluxbox=/usr/bin/startfluxbox
o the program name of a window manager listed in the /.wmanagerrc file; e.g. ``startfluxbox'' would match the above example.
o the start of such a program name; e.g. ``start'' would match the above example.
o the end of such a program name; e.g. ``box'' would match the above example.
If the WM variable is set and there is more than one line in ~/.wmanagerrc that matches the specification, wmanager-loop will exit with an
error message.
As mentioned above, if no window manager is specified in the WM environment variable or found in the ~/.wmanagerrc file, the wmanager-loop
program attempts to start an X terminal emulator. If the WMTERM environment variable is set, the wmanager-loop program uses it as the path
to the emulator. Otherwise it searches the user's path for a program named ``x-terminal-emulator'', ``urxvt'', ``rxvt'', or ``xterm'' in
this order, and starts the first one found using its full path. If none of the common terminal emulators on the above list is found, the
wmanager-loop program just runs ``xterm'' in the hope that something will come up on the user's display.
ENVIRONMENT
The wmanager-loop program uses the following environment variables:
WM The name, path, or partial path to the first window manager to execute.
WMTERM The name of the X terminal emulator to execute if no window manager could be found in the ~/.wmanagerrc file. If not specified, the
wmanager-loop program searches the user's path as described above.
EXAMPLE
To start using wmanager-loop, create a ~/.wmanagerrc file - generally with wmanagerrc-update(1) - and add something like the following at the
end of your ~/.xsession file:
exec wmanager-loop -geometry +570+585
SEE ALSO wmanager(1), wmanagerrc-update(1)HISTORY
The wmanager-loop program was written by Tommi Virtanen in 2000 and later modified by Peter Pentchev. This manual page was originally writ-
ten in perldoc format by Tommi Virtanen in 2000, and converted to mdoc format and updated by Peter Pentchev in 2008.
AUTHORS
Tommi Virtanen <tv@debian.org>
Peter Pentchev <roam@ringlet.net>
BSD September 8, 2009 BSD