Sponsored Content
Full Discussion: Output read variable
Top Forums Shell Programming and Scripting Output read variable Post 302958790 by aav1307 on Monday 26th of October 2015 11:40:50 AM
Old 10-26-2015
Linux Output read variable

Hi all, how read varaible and ouput in colum,

e.g.

Code:
$ echo $VAR1

opc op odi games gopher vcsa abrt

I like

Code:
$ echo $VAR1 

opc
op 
odi 
games 
gopher 
vcsa 
abrt

Thanks,

Last edited by Corona688; 10-26-2015 at 12:58 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Cannot read in variable using read on first try

Hi, My problem is : echo Division read vDivision variable1=`cut -c **something****' echo Do you want to proceed ? read ans I cant seem to read in ans on the first try and have to repeatedly enter the return key. If i remove the ` ` statement its ok but i need that line for... (1 Reply)
Discussion started by: normie
1 Replies

2. UNIX for Dummies Questions & Answers

Cant read in variable on first try

Hi, My problem is : echo Division read vDivision variable1=`cut -c **something****' echo Do you want to proceed ? read ans I cant seem to read in ans on the first try and have to repeatedly enter the return key. If i remove the ` ` statement its ok but i need that line for... (1 Reply)
Discussion started by: normie
1 Replies

3. Shell Programming and Scripting

Using 'defaults read' and storing the output in a variable

Hi all, I'm creating a script which uses 'defaults read' to retrieve details from an Info.plist like this; defaults read "/Path/Contents/Info" CFBundleShortVersionString This works fine in Terminal and returns the expected values. Is it possible to use this command in a script, and... (0 Replies)
Discussion started by: davewg
0 Replies

4. Shell Programming and Scripting

read output in ?

hi all! im making a program to update a file on a usb device. but the mount point is different from computer to computer depending on drives, now im updating the changes.lzm on a usb system based on slax. called backtrack, so thers a folder on the root of the memory stick called BT3. and i know... (3 Replies)
Discussion started by: pcstalljr
3 Replies

5. Shell Programming and Scripting

Can I use read to read content of a variable

Can I use the read command to read the contents of a variable? I'm trying by using the following code and getting nothing back. I'm in a Linux environment. #!/bin/ksh IFS=~ VAR1=1~2~3~4 echo $VAR1 | read a b c d print "$a $b $c $d" (9 Replies)
Discussion started by: nmalencia
9 Replies

6. Shell Programming and Scripting

how to read a variable?

i want to ask how can i read a variable? like for i in 1 2 3 do cat file${1} | while read something do if echo " file name: file${i}" >>temp else echo ", file${i}" >>temp done done it is not working, can i do something like that? actually i want the output below file name:... (4 Replies)
Discussion started by: mingming88
4 Replies

7. UNIX for Advanced & Expert Users

ls output into a read command as a variable

I'm working on a short BASH script on my Ubuntu box that will run powerpoint scripts with MS Powerpoint Viewer 2007 via WINE. I can run the presentation when I run it manually but what i'd like to do is have the script look for the newest file then run it. #! /bin/sh # Start the newest... (2 Replies)
Discussion started by: binary-ninja
2 Replies

8. Shell Programming and Scripting

How to read the variable from awk output?

I am reading an xml file with date tag as <Date>Default</Date> using the below command. Dt=$(awk -F'' '/<Date>/{print $3}' /home/test/try.xml and getting the value from the xml file stored in this variable "Dt" echo $Dt gives me a value. Dt=Default. Now according to my requirement, If... (2 Replies)
Discussion started by: Saidul
2 Replies

9. UNIX for Advanced & Expert Users

Passing variable as input & storing output in other variable

I have a below syntax its working fine... var12=$(ps -ef | grep apache | awk '{print $2,$4}') Im getting expected output as below: printf "%b\n" "${VAR12}" dell 123 dell 456 dell 457 Now I wrote a while loop.. the output of VAR12 should be passed as input parameters to while loop and results... (5 Replies)
Discussion started by: sam@sam
5 Replies

10. Shell Programming and Scripting

How to read the output of a command line by line and pass it as a variable?

Hi, I have some 2000 names in a table like below. Java Oracle/SQL ANSI SQL SQL,DWH,DB DB&Java And by using for loop in my code i am able to get a single word but if there is any special character or space then it is considering as a next line. I have to execute the below queries in... (10 Replies)
Discussion started by: Samah
10 Replies
ABRT-ACTION-NOTIFY(1)						    ABRT Manual 					     ABRT-ACTION-NOTIFY(1)

NAME
abrt-action-notify - Announces a new occurrence of problem via all accessible channels SYNOPSIS
abrt-action-notify [-h] -d PROBLEM_DIR [-v] [-a] [-e AUTOREPORTING_EVENT] DESCRIPTION
The current implementation emits a D-Bus signal on System bus in path /org/freedesktop/problems of org.freedesktop.problems interface for Crash member. Integration with ABRT events abrt-action-notify is used to notify new problems and consecutive occurrences of a single problem for all crash types. EVENT=notify package!= abrt-action-notify OPTIONS
-v, --verbose Be verbose -d, --problem-dir PROBLEM_DIR Problem directory [Default: current directory] -h, --help Show help message -a, --autoreporting Force to run autoreporting event -e, --autoreporting-event AUTOREPORTING_EVENT Overwrite autoreporting event name ENVIRONMENT
ABRT_VERBOSE ABRT verbosity level FILES
/etc/abrt/abrt.conf AutoreportingEnabled If enabled, abrt-action-notify runs AutoreportingEvent AutoreportingEvent Name of event to be run if autoreporting is enabled SEE ALSO
abrt.conf(5) AUTHORS
o ABRT team abrt 2.1.11 06/18/2014 ABRT-ACTION-NOTIFY(1)
All times are GMT -4. The time now is 09:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy