Hi,
I'm trying to assign the permissions, owner and group of a file to seperate variables, but using
ls -l filename | awk '{print $1 "\t" $3 "\t" $4}'
gives the owner as tom.ja instead of tom.james
Is there any way to expand it so i get the full name, or is there an easier way to get them... (5 Replies)
Hi Gurus,
I am new to unix.I have a requirement as below
I have text file like a.txt which contains
a.txt
hi hello
process update
status
Ok to Proceed no issues good
data arrangement
My requirement here is i need to read the file and check for the words
"OK to Proceed" and if... (2 Replies)
Okay, I've made threads on extracting fields and comparing strings in separate files in .csv's. I've written the following code with intentions of learning more.
I just want this one question answered: How can I assign fields from a file(comma separated) to variables?
My goal is to check... (0 Replies)
I am looking to create a perl script which will take numbers from a simple text file, convert them from decimal to hex, and then rewrite those values in the file or create a new file with the hex numbers(whichever's easier).
My text document for example would be something as simple as
1312... (6 Replies)
Hi! This might be a simple thing, but I'm struggling to assign values to variables from the file.
I've the following values stored in the file.. It consists of only two rows..
10
20
I want to assign the first row value to variable "n1" and the second row value to variable "n2"..
That is ... (3 Replies)
Hi,
I need to read two values,startdate and enddate from a param file and then write this value to another param file(global) under a specific workflow name.Here in global param file there is may workflow names, hence we need to check for the right one and then add the data below it.
Any... (5 Replies)
I have a file that has four values on each line and I'd like to give each column a variable name and then use those values in each step of a loop. In bash, I believe you could use a while loop to do this or possibly a cat command, but I am super new to programming and I'm having trouble decoding... (2 Replies)
Hello everyone
We have a problem about searching and copying files with variables.
we have variables like $year $jday $date and we want to search the files whose name contain these variables.
we tried *$year*$jday*$date or with ? instead of *
thank you everyone!!! (4 Replies)
i have variables RECIPIENTS_DEVL,RECIPIENTS_UACC,RECIPIENTS_PROD
i have a case statement to get the phase variable:
case ${WMD_UPHASE1} in
u) WMD_UPHASE4=UACC;;
i) WMD_UPHASE4=DEVL;;
p) WMD_UPHASE4=PROD;;
d) WMD_UPHASE4=DEVL;;
*) WMD_UPHASE4=DEVL;;
esac
I am unable to... (3 Replies)
Hi,
Can the below be clarified please. i just want to know what is the difference between the two ways of assigning variables as mentioned below.
export SRC_TBL=${SRC_TBL-"MMA_COPAY_PLN_FACT_STG"}
export SRC_TBL="MMA_COPAY_PLN_FACT_STG"
thanks in advance :)
Arun (1 Reply)
Discussion started by: Arun Mishra
1 Replies
LEARN ABOUT DEBIAN
mpstore
MPSTORE(1) mpstore MPSTORE(1)NAME
mpstore - store and transfer mpd state between daemons
SYNOPSIS
mpstore [host] > file
mpload [host] < file
mpcp [src] dest
mpmv [src] dest
mpswap [A] B
DESCRIPTION
These commands allow saving, loading, and transferring state between mpd daemons running on different hosts.
mpstore dumps a daemon's state to stdout.
mpload loads a state dump from stdin and sends it to a daemon.
mpcp copies the state from the src daemon to the dest daemon, causing it to begin to play the same song as the src daemon, at the same
position.
mpmv moves the state, so the dest daemon is left playing what the src daemon was playing, and the src daemon is paused.
mpswap exchanges the state of daemons A and B, swapping what they're playing.
The first hostname passed to each command can be omitted, if it is then the MPD_HOST environment variable will be used. Like the MPD_HOST
variable, the hostname can be of the form "password@hostname" to specify a password. If any hostname is "-", the MPD_HOST setting will be
used.
The full list of state that is handled is:
the contents of the playlist
the playback state (playing, paused, stopped)
the currently playing song
the position within the playing song
the volume control
the repeat, random, and cross fade settings
LIMITATIONS
The host that state is transferred to must have the playing song available in its library, with the same filename. It's ok if some other
songs in the playlist are not available; such songs will be skipped.
mpcp cannot perfectly synchronise playback between the two daemons. Network latency and timing prevent this. It should manage better than
0.5 second accuracy. If you need better accuracy of synchronised playback, you should probably use Pulse Audio.
BUGS
The file format is not the same that mpd uses for saving its own state, which would be nice.
AUTHOR
Copyright 2007 Joey Hess <joey@kitenet.net>
Licensed under the GNU GPL version 2 or higher.
http://kitenet.net/~joey/code/mpdtoys
perl v5.10.1 2010-03-06 MPSTORE(1)