Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to assign values to variable in given scenario Post 302643913 by michaelrozar17 on Monday 21st of May 2012 02:24:12 AM
Old 05-21-2012
Try as
Code:
[mkt@michael]$ DIR="f1 f2"
[mkt@michael]$ LFILE="$DIR"
[mkt@michael]$ LISTFILES=$(echo $LFILE)
[mkt@michael]$ echo $LISTFILES
f1 f2


Last edited by michaelrozar17; 05-21-2012 at 04:06 AM.. Reason: typo..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Read a file and assign the values to a variable

i have a file in this format curyymm PRVYYMM CDDMmmYY bddMmmyy eddMmmyy --------- ------- ------------ ---------- ----------- 0906 0905 09Jun09 01Jun09 30Jun09 ----------- --------- ------------ ------------ ----------- i need to read the... (5 Replies)
Discussion started by: depakjan
5 Replies

2. Shell Programming and Scripting

Read the csv file and assign the values in to variable

I have a csv file with the values seperated by commas.I want to extract these values one by one and assign to a variable using shell script.Any ideas or code? (11 Replies)
Discussion started by: rajbal
11 Replies

3. Shell Programming and Scripting

Assign values to variable

Hi Masters, I want to assign the values of one variable to another variable. Here the varaible name 'var' is dynamic. I know the values of V_2 and U_3, but If the i/p of TYPE is 'U' and the NO is 3, then I want to assign the values of U_3 to var. How we can achieve it? TYPE="U"... (4 Replies)
Discussion started by: ecearund
4 Replies

4. Fedora

How to read a text file and assign the values in the same to a variable in loop

Hi, I have a text file with multiple lines, each having data in the below format <DOB>,<ADDRESS> I have to write a script which reads each line in the text file in loop, assign the values to these variables and do some further processing in it. Using the following code prints the... (1 Reply)
Discussion started by: manishab00
1 Replies

5. UNIX for Advanced & Expert Users

How to read a text file and assign the values in the same to a variable in loop

Hi, I have a text file with multiple lines, each having data in the below format <DOB>,<ADDRESS> I have to write a script which reads each line in the text file in loop, assign the values to these variables and do some further processing in it. Using the following code prints the values... (12 Replies)
Discussion started by: manishab00
12 Replies

6. UNIX for Dummies Questions & Answers

using awk iteratively in a script to assign variable values

I have a log file that has certain fields that I want to evaluate, and depending on the value in those fields, I want to put the value of a different field in that line in a particular variable that I'll use later on down the log file. Sort of like setting a switch to change what I do with a bunch... (5 Replies)
Discussion started by: pts2
5 Replies

7. Shell Programming and Scripting

Read record from the text file contain multiple separated values & assign those values to variables

I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables. I need to read this file which is an input to my script Config.txt file name, first path, second... (7 Replies)
Discussion started by: ketanraut
7 Replies

8. Shell Programming and Scripting

Assign comma separated values to a variable

Hi All, I wrote a database command that queries our application and outputs a whole bunch of values to a text file. I need to assign the output to two values. Here is a sample of the output: valueOne, checkOne valueTwo, checkTwo valueThree, checkThree I would like... (9 Replies)
Discussion started by: jeffs42885
9 Replies

9. Shell Programming and Scripting

Assign Values to a Variable in While Loop and Update the File

Hello, Could anyone please help me with Assigning a value to variable and then updating the value in the original file IFS='|' while read -r Serial_ID JOB_NAME STATUS do if then echo "Perform Fuctions" ???Assign STATUS to COMPLETED and Update File??? done <File (7 Replies)
Discussion started by: infernalhell
7 Replies

10. Shell Programming and Scripting

How to assign awk values to shell variable?

Hi Gurus, I have a script which assign awk output to shell variable. current it uses two awk command to assign value to two variables. I want to use one command to assign two values to two variables. I tried the code, but it does't work. kindly provide your suggestion. current code... (2 Replies)
Discussion started by: green_k
2 Replies
ME 
TV(1) Me TV Manual ME TV(1) NAME
me-tv - a digital television (DVB) viewer for GNOME SYNOPSIS
me-tv [-?|--help] [-v|--verbose] [-s|--safe-mode] [-m|--minimised] [--disable-epg] [--disable-epg-thread] [--no-screensaver-inhibit] [--devices] [--read-timeout] [--display=DISPLAY] DESCRIPTION
Me TV is a GTK desktop application for watching digital television services that use the DVB standard. Me TV works with DVB-T/C/S and ATSC cards that have kernel driver support. Me TV uses the xine video player to render its output onto its video window. Me TV reads the Electronic Program Guide (EPG) data that is transmitted over the air to populate a built-in program guide which can be used for scheduling recordings. Me TV has a built-in scanner which can autoscan certain countries or use an initial scan file. OPTIONS
-?|--help Show help options. -v|--verbose Show verbose output. -s|--safe-mode Show the preferences dialog an don't show video upon start. -m|--minimised-mode Show minimised in notification area at startup. --disable-epg Stops the rendering of the EPG event buttons on the UI. --disable-epg-thread Disable the EPG thread. Me TV will stop collecting EPG events. --no-screensaver-inhibit Tells Me TV not to call the screensaver Inhibit/UnInhibit methods for GNOME Screensaver. --devices Only use the specified frontend devices. You can specify more than one device by using a comma or colon separator. (e.g. --devices=/dev/dvb/adapter0/frontend1) --read-timeout How long to wait (in seconds) before timing out while waiting for data from demuxer (default 5) --display=DISPLAY X display to use AUTHOR
Michael Lamothe (2007-2011) <michael.lamothe@gmail.com>. COPYRIGHT
Copyright (C) 2011 Michael Lamothe <michael.lamothe@gmail.com>. 1.3.6 2011-01-20 ME TV(1)
All times are GMT -4. The time now is 01:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy