Sponsored Content
Full Discussion: echo/print variable question
Top Forums Shell Programming and Scripting echo/print variable question Post 302450426 by jim mcnamara on Thursday 2nd of September 2010 03:05:46 PM
Old 09-02-2010
Code:
while read filer ; 
do 
   echo $filer $1 $2; 
   ssh $filer vfiler status -r | 
            awk -v filer="$filer"  '/running/{host=$1}/Path:/{path=$2;print filer,host,path}'; 

done < filers.list

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

echo or print to screen and file

I did a search for this topic but I couldn't find it and I was sure I have seen something similar before (hard because I am not sure of the criteria for the keywords) What I was looking for was to be able to echo a message to the screen from a bash.sh script at the same time logging it to a... (2 Replies)
Discussion started by: Shakey21
2 Replies

2. UNIX for Dummies Questions & Answers

echo vs. print

Is there a functional difference between echo and print? (1 Reply)
Discussion started by: PhilW
1 Replies

3. Shell Programming and Scripting

Differenc between print and echo

can anyone explain me what is the difference between echo and print in shell programming? (3 Replies)
Discussion started by: chandhar
3 Replies

4. Shell Programming and Scripting

how to print backslah using echo

how to print 3 backslah using Unix AIX, i have try in my fedora and AIX,both give dirrent output for same echo statment test.sh sed -e 's/\(\)/\\\1/g' -e 's/\$?/\\$?/g' -e 's/\$#/\\$#/g' -e 's/^/echo "/g' -e 's/$/ "/g' xMNBDF070 > xMNBDF070_test xMNBDF070 sed -e "s/'/\\\'/g" -e... (8 Replies)
Discussion started by: mani_um
8 Replies

5. Shell Programming and Scripting

Using echo to print double quotes along with variable substitution

Hi, I am generating html code using cshell, but i am having one problem while printing double quotes, I need to write following code in file. where $var contains list of web address <a href="$var">$var</a> So i am using echo "<a href="$var">$var</a>" > file.html But with this " in... (4 Replies)
Discussion started by: sarbjit
4 Replies

6. Shell Programming and Scripting

With that logic this echoes "echo". Question about echo!

echo `echo ` doesn't echoes anything. And it's logic. But echo `echo `echo ` ` does echoes "echo". What's the logic of it? the `echo `echo ` inside of the whole (first) echo, echoes nothing, so the first echo have to echo nothing but echoes "echo" (too much echoing :P):o (2 Replies)
Discussion started by: hakermania
2 Replies

7. Shell Programming and Scripting

"Simple" echo/reading variable question...

Hello, I have a simple(I think) question! Although simple, I have been unable to resolve it, so I hope someone can help! OK, here it is: 1)I have an awk script that prints something, such as: awk '{print $2}' a > x so x might hold the value of say '10' 2)Now, I just want to check to see if... (4 Replies)
Discussion started by: astropi
4 Replies

8. Shell Programming and Scripting

Print (echo) variable in a single line

Hi, I have written this code ------------------------------------------------ # !/bin/ksh i=0 while do j=$i while do echo -e $j #printf "%d",$j j=`expr $j - 1` done echo i=`expr $i + 1` done ---------------------------------------------------- The ouput which... (2 Replies)
Discussion started by: rac
2 Replies

9. Shell Programming and Scripting

Replacing echo with print

Hi everyone, I'm executing a shell script and one of the commands is creating a file with text via echo. However, if the text within echo has "\t" or similar, it automatically translates it into a TAB character, same goes for other special characters. I know that if I put another "\"... (7 Replies)
Discussion started by: demmel
7 Replies

10. Shell Programming and Scripting

Echo print on same line while loop using variable

Currently using below script but echo it print the output in two line. Input file all-vm-final-2.txt CEALA08893 SDDC_SCUN DS_SIO_Workload_SAPUI_UAT_01 4 CEALA09546 SDDC_SCUN DS-SIO-PD5_Workload_UAT_SP1_Flash_07 4 CEALA09702 SDDC_SCUN DS-VSAN-RMP-WORKLOAD01 4 DEALA08762 SDDC_LDC... (3 Replies)
Discussion started by: ranjancom2000
3 Replies
ROX(1)																	    ROX(1)

NAME
ROX-Filer - a simple graphical file manager SYNOPSIS
rox [OPTION]... [FILE]... DESCRIPTION
ROX-Filer is a simple and easy to use graphical file manager for X11, the windowing system used on Unix and Unix-like operating systems. It is also the core component of the ROX Desktop: http://rox.sourceforge.net Invoking rox opens each directory or file listed, or the current working directory if no arguments are given. COMMAND-LINE OPTIONS -b, --border=PANEL open PANEL. -B, --bottom=PANEL open PANEL as a bottom-edge panel. -c, --client-id=ID used for session management. -d, --dir=DIR open DIR as directory (not as an application, even if it looks like one). -D, --close=DIR close DIR and all its subdirectories. -h, --help display help about the various options. -l, --left=PANEL open PANEL as a left-edge panel. -m, --mime-type=FILE print MIME type of FILE and exit. -n, --new start a new filer, even if one already seems to be running. This also prevents the filer from forking (running in the background). This option is mainly useful for debugging. -p, --pinboard=PIN use pinboard PIN as the pinboard. -r, --right=PANEL open PANEL as a right-edge panel. -R, --RPC read and invoke SOAP RPC from standard input (see the manual). -s, --show=FILE open a directory showing FILE. -S, --rox-session run by session manager, open the default panel and pinboard (implies --new). If an XSM session manager is running and this option is used then ROX-Filer will ask to be automatically restarted if it crashes. -t, --top=PANEL open PANEL as a top-edge panel. -u, --user show user name in each window. -U, --url=URI run URI as a file or directory. If URI is a file: url and refers to a file on the local machine then it is converted to a local file name: rox -U file:///tmp is equivalent to rox /tmp. If the URI is some other scheme the shared URI handler configuration is con- sulted to run it. -v, --version display the version information and exit. -x, --examine=FILE FILE has changed; re-examine it. NOTES
The main documentation for ROX-Filer is available by choosing Show Help Files from the popup menu, or by clicking on the right-most toolbar icon. LICENSE
Copyright (C) 2004 Thomas Leonard. You may redistribute copies of ROX-Filer under the terms of the GNU General Public License. BUGS
Please report bugs to the developer mailing list: http://rox.sourceforge.net/contact.html. AUTHORS
ROX-Filer was created by Thomas Leonard, with help from: Michael Adams, Christopher Arndt, Jens Askengren, Liav Asseraf, Wilbert Berendsen, Francesco Bochicchio, Yuri Bongiorno, Andrzej Borsuk, Richard Boulton, Simon Britnell, Arnaud Calvo, Babyfai Cheung, Andrew Clover, Fabien Coutant, Couderc Damien, Andreas Dehmel, Micah Dowty, Dmitry Elfimov, Mattias Engdegard, Andrew Flegg, Olivier Fourdan, Eric Gillespie, Thierry Godefroy, Olli Helenius, Alex Holden, Jasper Hui- jsmans, Sigve Indregard, Bernard Jungen, Marcin Juszkiewicz, James Kermode, Jim Knoble, Krzysztof Krzyzaniak, Aaron Kurtz, Vincent Ledda, Vincent Lefevre, Victor Liu See-le, Alexey Lubimov, Krzysztof Luks, Marcus Lundblad, Anders Lundmark, Jose Romildo Malaquias, Denis Manente, Brendan McCarthy, Andras Mohari, Christiansen Merel, Jimmy Olgeni, Richard Olsson, Matthew O'Phinney, Daniele Peri, Andy Piper, Marcelo Ramos, Michel Alexandre Salim, Adam Sampson, Chris Sawer, Christian Storgaard, Taras, Simon Truss, Hirosi Utumi, Jan Wagemakers, Keith Warno, Gotz Waschk, Stephen Watson, Andre Wyrwa, Geoff Youngs, Diego Zamboni and many others; the Changes file contains more detailed information! Thomas Leonard 2005 ROX(1)
All times are GMT -4. The time now is 02:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy