05-03-2014
Thanks Corona, single quotes did the work !
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i need to search for a single pattern in three different logs....what would be the best one line script???? (4 Replies)
Discussion started by: roshanjain2
4 Replies
2. UNIX for Dummies Questions & Answers
Hi everybody..
I need to enter in bash mode and then run a command and this just in a single command line.
I tried : "bash ^M| somecommand" but nothing..
How do I do to simulate the return button just right after the bash command ?
Thanks.. (8 Replies)
Discussion started by: Riddick61
8 Replies
3. UNIX for Dummies Questions & Answers
Dear Unix Guru,
I have several directories as below
/home/user/
dir1
dir2
dir3
Each directory has different size. I want to print each directory size (Solaris command du -hs .)
Can you please guide me how to achieve this?
Thanks
Bala (2 Replies)
Discussion started by: baluchen
2 Replies
4. Shell Programming and Scripting
i m trying to find the answers of a past year exam questions , i m sure it ll be very easy for u guys , this is not a hw assignment or somth. i just wanna be sure of right answers .
write a single instruction to perform each of the following tasks:
(u r allowed to use c shell, and u can use... (2 Replies)
Discussion started by: brhn
2 Replies
5. Solaris
Hii All
I was building two M4000 servers and one was successfully installed.
Other one /usr has been unmounted. my putty session got disconnected and i connected to console where it asked for root single maintence
#
# init 0
not foung
# df -h
not found
#
xscf>poweroff -a
xscf>... (8 Replies)
Discussion started by: seems
8 Replies
6. UNIX for Dummies Questions & Answers
Normally i would do this-
cd abc
ls -ltr
I wish to run above command in a single line, like this-
cd abc | ls -ltr
But above command doesn't works, it simply runs the second command, ignoring the 1st one.
:confused: (4 Replies)
Discussion started by: boy18nj
4 Replies
7. Shell Programming and Scripting
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies
9. Solaris
Hi,
I have Solaris-10 OS on T5220. Both local disks were mirrored under SVM. Somehow when one disk gone bad (c0t1d0), other disk (c0t0d0) also got lot of bad block. We have readable data only on c0t0d0, but as soon as server comes after, it hangs when I run few commands because of read errors,... (1 Reply)
Discussion started by: solaris_1977
1 Replies
10. Shell Programming and Scripting
Hi All,
How can i run a single command on multiple servers with or without giving credentials.
I have a file(servers.txt) which has got list of servers and i want to run a command lsb_release -dr on all these servers and get output of those servers against each server.
I tried below code... (9 Replies)
Discussion started by: darling
9 Replies
LEARN ABOUT REDHAT
urlview
urlview(1) General Commands Manual urlview(1)
NAME
urlview - URL extractor/launcher
SYNOPSIS
urlview filename [ filename ... ]
DESCRIPTION
urlview is a screen oriented program for extracting URLs from text files and displaying a menu from which you may launch a command to view
a specific item.
CONFIGURATION
urlview attempts to read ~/.urlview upon startup. If this file doesn't exist, it will try to read a system wide file in /etc/urlview.conf.
There are two configuration commands (order does not matter):
REGEXP regexp
urlview uses a regular expression to extract URLs from the specified text files.
, ,
and f are all converted to their nor-
mal printf(3) meanings. The default REGEXP is:
(((https?|ftp|gopher)://|(mailto|file|news):)[^' <>"]+|(www|web|w3).[-a-z0-9.]+)[^' .,;<>":]
COMMAND command
If the specified command contains a %s, it will be subsituted with the URL that was requested, otherwise the URL is appended to the
COMMAND string. The default COMMAND is:
url_handler.sh %s
Note: You should never put single quotes around the %s. urlview does this for you, and also makes sure that single quotes eventually show-
ing up inside the URL are handled properly. (Note that this shouldn't happen with the default regular expression, which explicitly
excludes single quotes.)
FILES
/etc/urlview.conf
system-wide urlview configuration file
~/.urlview
urlview configuration file
SEE ALSO
printf(3), regcomp(3), regex(7)
AUTHOR
Michael Elkins <me@cs.hmc.edu>.
Modified for Debian by Luis Francisco Gonzalez <luisgh@debian.org>.
Modified for SuSE by Dr. Werner Fink <werner@suse.de> and Stepan Kasal <kasal@suse.cz>.
Changes put together by Thomas Roessler <roessler@does-not-exist.org>.
urlview(1)