Sponsored Content
Top Forums Shell Programming and Scripting difference between "QUIET=${QUIET:-yes}" and "QUIET=yes" Post 302370251 by Scrutinizer on Wednesday 11th of November 2009 01:24:19 AM
Old 11-11-2009
From the man page:
Code:
${parameter:-word}
          If parameter is set and is non-null then substitute its value; otherwise substitute word.

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

2. Shell Programming and Scripting

cat $como_file | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'

hi All, cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g' Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies

3. Solaris

difference between "root" and "usr" packages

Hi, could someone pls enlighten me on the difference between the "root" package and "usr" package? Like in this example: pkginfo -l SUNWGtku | grep -i desc DESC: GTK - The GIMP Toolkit (Usr) and pkginfo -l SUNWGtkr | grep -i desc DESC: GTK - The GIMP Toolkit (Root)... (6 Replies)
Discussion started by: masloff
6 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Solaris

The slices "usr", "opt", "tmp" disappeared!!! Help please.

The system don't boot. on the screen appears following: press enter to maintenance (or type CTRL-D to continue)...I checked with format command. ... the slices "0-root","1-swap","2-backup" exist. ...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies

6. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

7. Red Hat

"rhgb quiet" controlling the display of commands in single user mode ?"rhgb quiet" controlling the d

Why does removing "rhgb quiet" from the kernel boot parameters control whether or not the commands I enter are displayed in single user mode ? For instance, if I do not remove "rhgb quiet", when I am in single user mode, whatever command I type will not be displayed on the screen. The... (0 Replies)
Discussion started by: Hijanoqu
0 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

9. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
tcprobe(1)						      General Commands Manual							tcprobe(1)

NAME
tcprobe - probe multimedia streams from medium and print information on the standard output SYNOPSIS
tcprobe -i name [ -B ] [ -M ] [ -T title ] [ -b bitrate ] [ -H n ] [ -f seekfile ] [ -d verbosity ] [ -v ] COPYRIGHT
tcprobe is Copyright (C) by Thomas Oestreich. DESCRIPTION
tcprobe is part of and usually called by transcode. However, it can also be used independently. tcprobe reads source (from stdin if not explicitely defined) and prints on the standard output. OPTIONS
-i name Specify input source. If ommited, stdin is assumed. You can specify a file, directory, device, mountpoint or host address as input source. tcprobe usually handles the different types correctly. -B Binary output to stdout for use in transcode. -M Use EXPERIMENTAL mplayer probe, useful for streams that tcprobe doesn't recognize elsewhere. With this option enabled, tcprobe merely acts as a frontend for mplayer; of course mplayer binary needs to be installed and avalaible somewhere in PATH. -T title Probe for DVD title -H n This option tells tcprobe to scan n MB of input data. Default is to scan 1 MB. To detect all subtitles and audio tracks (if avail- able) it is highly recommended that this n should be at least increased to 10 or even higher. Very often only some audio tracks start during the first MB of a VOB or DVD file so transcode cannot detect them if not called with a higher value. Please note that transcode(1) has a similar -H option as well which has the same meaning. -s n Skip the first n bytes of the input stream. Default is to skip no bytes. -b bitrate Set audio encoder bitrate to bitrate -f seekfile Read index/seek information from seekfile. This is especially useful for AVI files when it takes a long time to probe when there is no index in the AVI available. Also see aviindex(1). -d level With this option you can specify a bitmask to enable different levels of verbosity (if supported). You can combine several levels by adding the corresponding values: QUIET 0 INFO 1 DEBUG 2 STATS 4 WATCH 8 FLIST 16 VIDCORE 32 SYNC 64 COUNTER 128 PRIVATE 256 -v Print version information and exit. NOTES
tcprobe is a front end for probing various source types and is used in transcode's import modules. EXAMPLES
The command tcprobe -i foo.avi will print interesting information about the AVI file itself and its video and audio content. AUTHORS
tcprobe was written by Thomas Oestreich <ostreich@theorie.physik.uni-goettingen.de> with contributions from many others. See AUTHORS for details. SEE ALSO
aviindex(1), avifix(1), avisync(1), avimerge(1), avisplit(1), tcprobe(1), tcscan(1), tccat(1), tcdemux(1), tcextract(1), tcdecode(1), transcode(1) tcprobe(1) 12th October 2003 tcprobe(1)
All times are GMT -4. The time now is 08:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy