10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i am executing below code to achive my result, but for second row the value is not coming
it should come URL like other two . url start with http:// and end with .xhtml
cat FILE | grep 'Test failed' | awk -F',' '{print $3,$8,$12}'
INPUT
1517679173303,84,SKILLED LANGUAGE - ENTER... (11 Replies)
Discussion started by: mirwasim
11 Replies
2. Shell Programming and Scripting
Hello Unix gurus,
I have a file with this format (example values):
label1 1 0
label2 1 0
label3 0.4 0.6
label4 0.5 0.5
label5 0.1 0.9
label6 0.9 0.1
in which:
column 1 is a row label
column 2 and 3 are values
I would like to do a simple operation on this table and get the... (8 Replies)
Discussion started by: ksennin
8 Replies
3. Shell Programming and Scripting
`awk` function looks like this in a file name `fun.awk`:
{
print small()
}
function small()
{
a=$0
smal=0
for(i=1;i<=3;i++)
{
if( a<a)
smal=a
else (4 Replies)
Discussion started by: lazerz
4 Replies
4. UNIX for Dummies Questions & Answers
I am trying to move files which donot have same filename using
find /Users/ParijatMac/desktop/unix/new_dir -type f -mmin +"$HRS" -exec mv -n "{}" /Users/ParijatMac/desktop/unix/old_dir \; -print
but i am getting all filenames including the ones with duplicate names.Please help me to sort... (5 Replies)
Discussion started by: parijat guh
5 Replies
5. Shell Programming and Scripting
I have a result like this
root@server # grep -rl maldet /etc/cron*
/etc/cron.d/maldet_daily
/etc/cron.d/malcron
/etc/cron.d/malcrondaily
/etc/cron.d/malcronweekly
What I need is, I need an if/else condition such that, if there is any output other than /etc/cron.d/maldet_daily in the... (8 Replies)
Discussion started by: anil510
8 Replies
6. Shell Programming and Scripting
Hi all,
Say I have a script named script.sh. What it does is to print a line like "abc"
#! /usr/bin/ksh
print "abc"
I would like to pass this value to an external variable,
var1="script.sh"
However when I echo $var1 I got "script.sh" itself instead of the result?
Thanks (3 Replies)
Discussion started by: isaacniu
3 Replies
7. Shell Programming and Scripting
there is a directory /data/users/osa/psidp/dmp/files/cimdir ,it have some subdirectories ,and also the subdirectoriy have it's subdirectoriis.
I want to get all the leaf nodes of the directory path .
but the result of the script is wrong ,how can i get the right result
somebody who can help me... (3 Replies)
Discussion started by: fw0037
3 Replies
8. Shell Programming and Scripting
there is a directory /data/users/osa/psidp/dmp/files/cimdir ,it have some subdirectories ,and also the subdirectoriy have it's subdirectoriis.
I want to get all the leaf nodes of the directory path .
but the result of the script is wrong ,how can i get the right result
somebody who can... (1 Reply)
Discussion started by: fw0037
1 Replies
9. Homework & Coursework Questions
there is a directory /data/users/osa/psidp/dmp/files/cimdir ,it have some subdirectories ,and also the subdirectoriy have it's subdirectoriis.
I want to get all the leaf nodes of the directory path .
but the result of the script is wrong ,how can i get the right result
somebody who can help... (1 Reply)
Discussion started by: fw0037
1 Replies
10. Shell Programming and Scripting
i got a data file which contains all the pid,ppid,user,command,pcpu,start_time,status. I wanted to display out the pcpu which is greater than 0.
i uses awk'{if($5 > 0){print}}' filename.txt but is printing out result which not i wanted. Is there any way which i can print out those pcpu which is... (8 Replies)
Discussion started by: thms_sum
8 Replies
PDL2(1p) User Contributed Perl Documentation PDL2(1p)
NAME
pdl2 - Simple shell (version 2) for PDL
SYNOPSIS
Use PDL interactively:
%> pdl2
pdl> $a = sequence(10) # or any other perl or PDL command
pdl> print "$a = $a
";
$a = [0 1 2 3 4 5 6 7 8 9]
DESCRIPTION
The "pdl2" program, also known as the Perldl2 shell, is a second generation version of the original "perldl" interactive PDL shell. It
attempts to be backward compatible in usage while providing improved features, better support for Perl syntax, and an more easily extended
framework based on the Devel::REPL shell.
If you have Devel::REPL version 1.003011 or later, then "pdl2" will start with full functionality. If Devel::REPL is not installed or
found then "pdl2" will print a warning and run the legacy "perldl" shell command instead.
By default, command lines beginning with the default prompt of either "pdl2" or "perldl" (one of 'pdl> ', 'PDL> ', or 'perldl> ') will have
the prefix string and surrounding whitespace stripped. This allows for easy cut-and-paste from sample PDL shell sessions or other examples
into another PDL shell session.
FUNCTIONS
do_print
Toggle print-by-default on and off (default value: off)
By default, "pdl2" does not print the results of operations since the results can be very large (e.g., a small 640x480 RGBA image is still
more than 1_000_000 elements). However, for experimenting and debugging more complex structures, it helps to see the results of every
operation. The "do_print" routine allows you to toggle between the default "quiet" operation and a full Read, Evaluate, Loop style.
pdl> $a = pdl(3,2)
pdl> do_print
1
pdl> $a = pdl(3,2)
$PDL1 = [3 2];
pdl> do_print
pdl> $a = pdl(3,2)
VARIABLES
$PDL::toolongtoprint
The maximal size pdls to print (defaults to 10000 elements). This is not just a "perldl" or "pdl2" variable but it is something that
is usually needed in an interactive debugging session.
SEE ALSO
perldl, Devel::REPL
perl v5.14.2 2012-05-19 PDL2(1p)