how to include a text pattern in system function in PERL
Pleeeeease help..
I'm working in perl
i have a system function to check whether a file is readable for others or not.
i just want to print a text in that command
my command is :
i know for displaying text in awk command one needs to put it in double quotes "" but here how to do that.. when we are executing awk in system command (which already has double quotes in the start and end)
Moderator's Comments:
Please use code tags next time for your code and data. You already got a PM for that for your last posts, do not ignore that. Else you will start collecting infraction points.
Last edited by zaxxon; 08-23-2012 at 04:17 AM..
Reason: code tags
hello All,
I need to invoke by perl script some program/command and monitor it for 5
minutes . In case it still running for more then 5 min I need to send a signal which will stop it.
I implemeted this as shown below by using eval & alarm
and I'd like to know if there is a better way to... (1 Reply)
Hi,
I have a sql file that runs something like this
vi Test.sql
REVOKE EXECUTE ON DEMO_USER.SQC_SAMP FROM PUBLIC;
REVOKE EXECUTE ON DEMO_USER.SQC_SAMP FROM DEMO_READ;
REVOKE SELECT ON DEMO_USER.DEMO_NOMINEE_TEST FROM DEMO_READ;
REVOKE EXECUTE ON DEMO_USER.SQC_SAMP FROM... (3 Replies)
Hi,
I have a script that checks the length of each record/line in file - This seems to be working when there are no special systems character that are invisible or hidden.
awk -v file=$file '{
if (filename==file)
{ k+=$5
if (length() <= 10 ){print size length(), "bytes " k}
}... (2 Replies)
Hello,
I was using a shell script for sending contents of a text file(email.report) to different users.
I was using the below command in my script to send email...
cat email.report | /usr/bin/mailx -s $REQ_SUBJECT -h 5 abc@xyz.com
It was working fine all these days but now all of a sudden it... (18 Replies)
Hi,
I'm trying to remove rows that including specific word, but the below is replacing only the first occurrence, how to do this for the all occurrences within the file.
grep -v "mdsMVLink\|mdsMVMembership\|mdsMVLinkType" sfile.txt > dfile.txt
Could someone help me how to accomplish this?
... (2 Replies)
Hello,
I'm using Ubuntu Netbook Edition on my family's 4 netbooks. Sadly (and a big mistake in my opinion?), I can't add a temp monitoring applet to my panel, but that's not really the point. I am needing a way to monitor my computer temps that includes a graph (kinda like a CPU usage ... (0 Replies)
Hi
I am trying to filter some data using awk. I have a statement-
awk 'BEGIN { FS = "\n" ; RS = "" } { if ( $6 = "City: " ) { print "City: Unknown" } else { print $6 } }'`
The $6 values are
City: London
City: Madrid
City:
City: Tokyo
This expression seems to catch all the lines... (4 Replies)
I have the following script that greps lines containing "AT" from data files data1.hsq through data1000.hsq, then cuts their second column and puts in data files called perm1 through perm1000.
I want to modify the script so that instead of putting the data in separate data files perm1 through... (2 Replies)
Hi
I've to remove the files which has the following file pattern in path /home/etc/logs
fnm_HST_date1
fnm_hst_date1
fnm_HST_date2
I've used the following code to to remove the files having file names like "HST" .
#!/usr/bin/ksh
set -x
file_path=/home/etc/logs
file_nm=HST
find... (2 Replies)
Hi,
I have two files:
File1:
sample statements1
<UID = " " PWD = " ">
sample statements2
File2:
UID ="admin"
PWD ="password" (6 Replies)
Discussion started by: manid
6 Replies
LEARN ABOUT DEBIAN
exfalso
exfalso(1) General Commands Manual exfalso(1)NAME
exfalso - audio tag editor
SYNOPSIS
exfalso [ directory ]
DESCRIPTION
Ex Falso displays and edits audio metadata tags. Supported formats include MP3, Ogg Vorbis, FLAC, Musepack (MPC), WavPack, and MOD/XM/IT.
This manual page is only a short reference for Ex Falso. Complete documentation is available at http://code.google.com/p/quodli-
bet/wiki/Guide.
OPTIONS
Ex Falso may be given a directory to open on the command line.
TIED TAGS
Many places in Ex Falso allow you to use "tied tags". Tied tags are two tag names joined together with a "~" like "title~version" or
"album~part". Tied tags result in "nice" displays even when one of the tags is missing; for example, "title~version" will result in
Title - Version when a version tag is present, but only Title when one isn't. You can tie any number of tags together.
RENAMING FILES
Ex Falso allows you to rename files based on their tags. In some cases you may wish to alter the filename depending on whether some tags
are present or missing, in addition to their values. A common pattern might be
<tracknumber>. <title~version>
You can use a '|' to only text when a tag is present:
<tracknumber|<tracknumber>. ><title~version>
You can also specify literal text to use if the tag is missing by adding another '|':
<album|<album>|No Album> - <title>
See http://code.google.com/p/quodlibet/wiki/Guide_Renaming.
BUGS
See http://code.google.com/p/quodlibet/issues/list for a list of all currently open bugs and feature requests.
AUTHORS
Joe Wreschnig and Michael Urman are the primary authors of Ex Falso.
SEE ALSO
http://code.google.com/p/quodlibet/wiki/Guide,
http://code.google.com/p/quodlibet/wiki/FAQ
February 20th, 2006 exfalso(1)