07-22-2009
Thanks !! Guys ...
but ls -l | tr [a-z] [A-Z] is not yielding any results
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How to combine 3 find statements into 1-liner?
find statements:
cd ${dir1} ; find . ! -name . -prune -type f | xargs file | grep -i ascii | cut -f1 -d: | xargs grep -l "${searchtxt}"
cd ${dir2} ; find . ! -name . -prune -type f | xargs file | grep -i ascii | cut -f1 -d: | xargs grep -l... (4 Replies)
Discussion started by: ux4me
4 Replies
2. Solaris
Hi SSHers,
I have embedded this below code in my shell script..
/usr/bin/ssh -t $USER@$SERVER1 /usr/bin/ssh $USER2@S$SERVER2 echo uptime:`/opt/OV/bin/snmpget -r 0 -t 60 $nodeName system.3.0 | cut -d: -f3-5`
SSH to both these servers are public-key authenticated, so things run... (13 Replies)
Discussion started by: LinuxUser2008
13 Replies
3. Shell Programming and Scripting
Hi
I am trying to search and replace a multi line pattern in a php file using awk.
The pattern starts with
<div id="navbar">
and ends with
</div>
and spans over an unknown number of lines.
I need the command to be a one liner.
I use the "record separator" like this :
awk -v... (8 Replies)
Discussion started by: louisJ
8 Replies
4. Shell Programming and Scripting
I would like to print result of multiple search pattern invoked from an one liner. The code looks like this but won't work
gawk -F '{{if ($0 ~ /pattern1/) pat1=$1 && if ($0 ~ /pattern2/) pat2=$2} ; print pat1, pat2}'
Can anybody help getting the right code? (10 Replies)
Discussion started by: sdf
10 Replies
5. Shell Programming and Scripting
Thanks for giving your time and effort to answer questions and helping newbies like me understand awk.
I have a huge file, millions of lines, so perl takes quite a bit of time, I'd like to convert these perl one liners to awk.
Basically I'd like all lines with ISA sandwiched between... (9 Replies)
Discussion started by: verge
9 Replies
6. Shell Programming and Scripting
Hi,
I have a directory /home/datasets/ which contains a bunch (720) of subdirectories called hour_1/ hour_2/ etc..etc.. in each of these there is a single text file called (hour_1.txt in hour_1/ , hour_2.txt for hour_2/ etc..etc..) and i would like to do some text processing in them.
Each of... (20 Replies)
Discussion started by: amarn
20 Replies
7. UNIX for Dummies Questions & Answers
hi,
I have a directory "test" under which there are 3 files a.txt,b.txt and c.txt.
I need to rename those files to a.pl,b.pl and c.pl respectively.
is it possible to achieve this in a sed or awk one liner?
i have searched but many of them are scripts.
I need to do this in a one liner.
I... (2 Replies)
Discussion started by: pandeesh
2 Replies
8. Shell Programming and Scripting
I am new for Perl I want to ask one question. I have around 50 custom packages which i am using in my Perl script. I want to import all .pm packages in my Perl script in an easy way. Right now i have to import each package individually. So Is there any way to do so??
Right Now i am doing like:
... (1 Reply)
Discussion started by: Navrattan Bansa
1 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
What is the maximum number of sed squeezing in one shell?? I've surprised with this message when I squeezed 50 sed in the same shell:
253: Identifier too long - maximum length is 18.This is what I've did in my sed query
| sed -e "s/ 0 /Default /" | sed -e "s/ 1 ... (2 Replies)
Discussion started by: leo_ultra_leo
2 Replies
10. UNIX for Advanced & Expert Users
Hello,
I'm attempting to open multiple xterms and run a command as an SAP user via sudo using PSSH. So far, I'm able to run PSSH to a file of servers with no check for keys, open every xterm in to the servers in the file list, and SUDO to the SAP(ADM) user, but it won't do anything else... (11 Replies)
Discussion started by: icemanj
11 Replies
LEARN ABOUT DEBIAN
panelctl
PANELCTL(1) User Commands PANELCTL(1)
NAME
panelctl - remote control for set-top boxes
SYNOPSIS
panelctl [OPTION...] <channel|command>
DESCRIPTION
AV/C panelctl - change channels on, or issue commands to, a firewire AV device
-c, --commands
Print command list (requires a dummy argument)
-d, --debug
Debug mode
-g, --guid=GUID
Specify GUID for the STB to control
-n, --swversion=SW_VERSION Specify sofware version of STB
-s, --specid=SPEC_ID
Specify spec_id of STB to control
-v, --verbose
Produce verbose output
-?, --help
Give this help list
--usage
Give a short usage message
-V, --version
Print program version
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.
This program is mostly useful for a firewire tuner or set-top box with an AV interface. Use it to issue a command (panelctl <command>) or
to change channels on the tuner (panelctl <channel>). To get a list of legal commands, use the --commands switch.
By default, panelctl will control the first Motorola STB on the firewire chain. This will only work with some Motorola STBs. To control
any other STB, or to control multiple STBs, specify the GUID or both the spec_id and software version for the desired STB. This can be
found out by running "panelctl -v -g 1 1". Because there won't be a STV with GUID of 1, it will run through all possible devices and print
the info for each one. Once the GUID, or the spec_id and sw_version of the desired device has been learned, it can be used in following
commands, e.g. "panelctl -g 0x123456 666". Generally, it will be a better approach to use guid, since this will be unique to each STB.
By: Stacey D. Son, John Woodell, Dan Dennedy, and Jerry Fiddler Copyright (C) 2004-2009
SEE ALSO
The full documentation for panelctl is maintained as a Texinfo manual. If the info and panelctl programs are properly installed at your
site, the command
info panelctl
should give you access to the complete manual.
panelctl 0.2 November 2009 PANELCTL(1)