I want to save the contents of a variable to a file. How can that be achieved?
I have tried with:
echo $varname > textfile.txt
but for some reason it does not print anything. (1 Reply)
Hello all,
Can somebody explain to me how set up a basename and dirname variable to simplify this script. I currently have a 'infile' with the contents of FTTPDataPVC_ & BaaisDSLFeed. I need to add a basename and or dirname variable so that any additions can be made through the infile and not... (1 Reply)
Hi,
I am a file with the following layout.
field1|field2|field3|field4|field5|field6|field7
field1|field2|field3|field4|field5|field6|field7
field1|field2|field3|field4|field5|field6|field7
I need to write a file with the below layout
field1|field2|fieldx|field6
where fieldx =... (5 Replies)
Hi,
I have a 3rd party tool on Solaris 8. I am running it thorugh my script but I am not able to capture its output into a variable.
Like, I tried, but did not work.
output=`/usr/bin/myTool`
echo $output
Also, I tried saving in a file but when I run, output is always shown on the... (19 Replies)
Hi,
in shell script, i have the command swstart -p which returns an output. i want to store the output of this command into a variable. how i can do that
excerpt from the script
#!/usr/bin/ksh
#
#
#
# Program: swstart -p
#
# Description: Starts the sentinels on Slave server
... (4 Replies)
i want to save the output of /scripts/whoowns domain.com to a username
like $user = /scripts/whoowns domain.com
but I'm not sure how to do that
This is inside a bash script
how can I get the output of /scripts/whoowns
then save that to a variable?
thanks!
---------- Post updated at... (0 Replies)
i have list of names in a text file and I wanted to delete the commas en every line.
for example: inside the text is a list of names in it with commas after each line. I wanted to delete these commas. which command must I execute for this?
unix,
dale,
shawn,
aaron, (4 Replies)
My requirement is to read a column data from a file & save it in a variable for each row & process it. I am using the below code-
Leadlines="$TGTFILE/Error.txt">>$log_file
while read line
do
id = ` echo $line | cut -d "," -f1 `
email = ` echo $line | cut -d "," -f2 `
-----------
done
My... (2 Replies)
I have friends that this command worked perfectly, but I would like to save the result in a variable, which I have not achieved
var=prueba.txt
echo $var | cut -d "." -f 1
prueba
I need to do this but does not work me
salida=echo $var | cut -d "." -f 1
echo "result:$salida"
... (8 Replies)
Discussion started by: tricampeon81
8 Replies
LEARN ABOUT DEBIAN
plaympeg
PLAYMPEG(1) General Commands Manual PLAYMPEG(1)NAME
plaympeg - MPEG audio (MP3) and video (MPEG-1) player
SYNOPSIS
plaympeg [options] file ...
DESCRIPTION
plaympeg is an MPEG audio and video player that uses the SDL MPEG Player Library. It can play back MPEG audio (layer 1, 2 and 3), MPEG
video (MPEG-1) and MPEG system (audio and video combined) files. MPEG-2 video files (as found on DVDs) are not supported.
The video player works best on a 16 bit color depth X11 display, it works on other color depths with reduced speed as well. You'll need a
CPU with 300 MHz or more to play back an MPEG system stream with 25 frames per seconds (fps) at full speed.
OPTIONS --help Show short usage information
--noaudio
Don't play the audio stream (if available)
--novideo
Don't play the video stream (if available)
--fullscreen
Play the MPEG video stream in fullscreen mode (this requires root privileges or a setuid plaympeg binary)
-2, --double
Play the MPEG video stream at double size
-l, --loop
Play the stream (audio or video) over and over again
-v N, --volume N
Set the volume of the audio stream to N% (N in the range of 0 to 100)
-s S, --scale S
Play the MPEG video stream at S size
SEE ALSO
SMPEG home page at http://www.lokigames.com/development/smpeg.php3
AUTHOR
The SDL MPEG Player Library was written by Karl Robillard and Sam Lantinga of Loki Entertainment Software. Please report any bugs and/or
fixes to smpeg@lokigames.com.
This manual page was written by Stefan Gybas <sgybas@debian.org> for the Debian GNU/Linux system, but may be used elsewhere under the GPL.
PLAYMPEG(1)