Hi
I need to list files by their size and exclude those that match a certain size. With grep it is easy enough.
ll -rt | grep 2166 | awk '{print $9}'
2166 is the filesize and $9 the filenamefield.
What should I be looking for to use this in a C program? My aim is to cut the name... (2 Replies)
The following creates a needed awk command from some preexisting variables and stores it in the variable i. I then redirect it to a new file change the permission on the file and run it as a script.
How can I do a simple redirect on this variable to the command line, instead of creating a new... (8 Replies)
Hello friends,
I want a command to print the reult files from find command into a text file.:)
Iam looking from forum memebers. PLZ help me.ASAP
Thanks in Advance,
Siva Ranganath CH (5 Replies)
i have this script that reads a file "listall_101111" where 101111 varies.
awk '{print $0,$1}' listall_101111 | sed -e 's/\(.*\).$/\1/g' | awk '{print $6,$2,$3,$4,$5}' | sort -nrk5 | nawk 'NR==1{m=$5;a++;b=(b)?b:$0;next}$5==m{a++;b=(b)?b:$0}END{for (i in a){print b,a}}' | grep -v ^LG | sort... (4 Replies)
I have a script built that takes the standard inputs $1 $2 $3 after the name and parses some data.
hexsite=`echo "obase=16;$1"|bc`
hexfix=$(printf "%.3X" 0x$hexsite)
if || ;then
type=33
elif || ;then
type=59
elif ;then
type=99
else type=00
fi
cat /directory/*.2012$3*|
I am... (8 Replies)
I would like to redirect output of command line in for loop as $line.
Output should be processed as line but instead it throw whole output.
Could somebody help me on how to redirect output of command line and process it line by line without sending output to any file.
below is my code ... (1 Reply)
I'm using the below to get multiple input from USER and it is working, is there any better way in awk array single liner?
echo "Enter Multiple input (Ctrl+d to exit)"
>output
while read A
do
echo "$A" >>output
done (3 Replies)
Team ,
I am trying to write a case condition for database backups.But I am unable to make the script to read input from command line .
while true ;do
read -p "Do You Wish To Take Database Backup ?? " yn
case $yn in
*) echo " YES take backup ";;
*) echo " NO BACKUP " ;;
... (9 Replies)
Hi friends,
Need your help again to get a best approach for the below scenario.
I am previously having one shell script which accepts request_id/s as the command line argument.
single req_id arg= 1111
Multiple arg= 1111,2222,3333
which gets passed to the embedded sql inside to... (9 Replies)
Discussion started by: Showdown
9 Replies
LEARN ABOUT DEBIAN
ezstream-file
EZSTREAM-FILE.SH(1) BSD General Commands Manual EZSTREAM-FILE.SH(1)NAME
ezstream-file -- script to stream files from the command line
SYNOPSIS
ezstream-file [-hnqVv] [-T cfg_template] [file ...]
DESCRIPTION
The ezstream-file script uses an ezstream configuration file template to stream a list of files given on the command line, or via standard
input. In other words, filenames are written to a temporary playlist, and a template-based configuration is generated to stream them.
The path to a configuration template must be provided, either by using the -T command line argument, or the EZSTREAM_TEMPLATE environment
variable.
The configuration template must be a valid playlist configuration, and contain the follwing configuration statement:
<filename>%FILENAME%</filename>
If no input files are specified, the list of files to be streamed are read from standard input.
Lastly, the EZSTREAM environment variable allows to specify an alternate ezstream binary.
Command line parameters
-h Print a summary of available command line parameters with short descriptions and exit.
-n (Passed to ezstream.) Normalize metadata strings by removing excess whitespaces.
-q (Passed to ezstream.) Be more quiet. Suppress the output that external programs send to standard error.
-T cfg_template
Use the configuration in cfg_template, overriding the default set in the EZSTREAM_TEMPLATE environment variable.
-V Print the ezstream-file version number and exit.
-v (Passed to ezstream.) Produce more verbose output from ezstream. Use twice for even more verbose output.
FILES
/usr/share/doc/ezstream/examples Directory containing example configuration files for various uses of ezstream, as well as example playlist
and metadata scripts.
SEE ALSO ezstream(1)AUTHORS
The ezstream-file script and this manual were written by Moritz Grimm <mdgrimm@gmx.net>.
ezstream 0.5.6 September 27, 2009 ezstream 0.5.6