03-20-2019
Thanks all for you swift response for you comments
As i was new to scripting , it helped ,solution suggested by Corona688 worked for me.
Thanks
Abhay
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to iterate a UNIX awk script that returns min/max temperature data for each day from a monthly weather data file (01_weath.dat). The temperature data is held in $5. The temps are reported each minute so each day contains 1440 temperature enteries. The below code has gotten me as far as... (5 Replies)
Discussion started by: jgourley
5 Replies
2. Shell Programming and Scripting
I'm trying to write a script that accepts both arguments and options, e.g.
./script -h 1 -m 15 -s 30
or
./script
-h 1 -m 15 -s 30
I'd like for any of the arguments and options to be optional, and the option values should be numerals only. I've tried both getopt and getopts but I... (1 Reply)
Discussion started by: Ilja
1 Replies
3. Shell Programming and Scripting
Afternoon all,
I have been writing a script to do some selects on a table dependent on what options are selected when the script is run:
#!/bin/ksh
set -x
set -m
if
then
echo "usage: msglog.ksh -da <date and time> -i <interface> -m <msg> -di <direction> -mi <MIR>"
exit 1
fi... (3 Replies)
Discussion started by: chris01010
3 Replies
4. UNIX for Dummies Questions & Answers
Hi guys i have written a script which takes the options given to him and execute itself accordingly.
for example
if a script name is doctortux then executing doctortux without option should made doctortux to be executed in automatic mode i.e. doctortux -a
or if a doctortux is needed to run in... (4 Replies)
Discussion started by: pinga123
4 Replies
5. Shell Programming and Scripting
Hi Experts,
I want to know the count of specific word in a file. I have almost 600+ files.
So I want to loop thru each file and get the count of the specific word.
Please help me on achieving this...
Many thanks (2 Replies)
Discussion started by: elamurugu
2 Replies
6. Shell Programming and Scripting
one thing i was trying to figure out is if you can give people the option to choose what they want to do in a shell script. for example, let's just say that you have a simple shell script to install a couple of programs, can you make it to where you can press a certain key to install a certain... (1 Reply)
Discussion started by: hotshot247
1 Replies
7. Shell Programming and Scripting
Hi
i need to find x in the following equation such that it satisfies this condition:
y/x-ln(x)-1.24=0
how can i write a script to iterate to give random x to satisfy this equation.
y is different each time too. any help with awk/shell script will be awesome!
thanks (1 Reply)
Discussion started by: saint2006
1 Replies
8. UNIX for Dummies Questions & Answers
Hi guys,
I am having trouble with this script. What i want it to do is to iterate all command line arguments in reverse order. The code below does this fine but i need the output to print the words on separate lines instead of one line:
#!/bin/bash
#Takes in the arguments and displays them... (7 Replies)
Discussion started by: pipeline2012
7 Replies
9. Shell Programming and Scripting
I would like to iterate over `dirs`in a script, but the script will never show more than one (current) folder
#! /bin/bash
for i in `dirs`
do
echo ${i}
done
echo ++++++++++++++++++
for i in $( dirs -p )
do
echo ${i}
done
echo ------------------
dirscontent=`dirs`
echo... (5 Replies)
Discussion started by: alexanderb
5 Replies
LEARN ABOUT V7
vorbiscomment
VORBISCOMMENT(1) Ogg Vorbis Tools VORBISCOMMENT(1)
NAME
vorbiscomment - List or edit comments in Ogg Vorbis files
SYNOPSIS
vorbiscomment [-l] [-R] [-e] file.ogg
vorbiscomment -a [ -c commentfile | -t "name=value" ] [-q] [-R] [-e] in.ogg [out.ogg]
vorbiscomment -w [ -c commentfile | -t "name=value" ] [-q] [-R] [-e] in.ogg [out.ogg]
DESCRIPTION
vorbiscomment Reads, modifies, and appends Ogg Vorbis audio file metadata tags.
OPTIONS
-a, --append
Append comments.
-c file, --commentfile file
Take comments from a file. The file is the same format as is output by the the -l option or given to the -t option: one element per
line in 'tag=value' format. If the file is /dev/null and -w was passed, the existing comments will be removed.
-h, --help
Show command help.
-l, --list
List the comments in the Ogg Vorbis file.
-q, --quiet
Quiet mode. No messages are displayed.
-t 'name=value', --tag 'name=value'
Specify a new tag on the command line. Each tag is given as a single string. The part before the '=' is treated as the tag name and
the part after as the value.
-w, --write
Replace comments with the new set given either on the command line with -t or from a file with -c. If neither -c nor -t is given,
the new set will be read from the standard input.
-R, --raw
Read and write comments in UTF-8, rather than converting to the user's character set.
-e, --escapes
Quote/unquote newlines and backslashes in the comments. This ensures every comment is exactly one line in the output (or input),
allowing to filter and round-trip them. Without it, you can only write multi-line comments by using -t and you can't reliably dis-
tinguish them from multiple one-line comments.
Supported escapes are c-style "
", "
", "\" and "