You might want to give this version a try:
It lists all files (or star name convention) in increasing size or, with "-r" as the first parm, in decreasing size. Ties are alphabetical by file name.
I need to do a substitution: CPF to ,C,P,F, CPM to ,C,P,M, SPF to ,S,P,F etc. I can do each of them with separate substitutions e.g. s/CPF/,C,P,F/ but I'd like to know if there is a more elegant solution. In general, how can I use the results of the search in the substitution, ... (3 Replies)
Is there a way to simplify stating 1 through to 10, for example in a for loop construct?
for x in 1 2 3 4 5 6 7 8 9 10
do
....
done
I have tried (1-10) with no luck.. thanks (2 Replies)
tcpdump -nr testdump|awk '!/:/;gsub(/^+|+$/,""){print $3};a!~$0;{a=$0};{print $3};!/length/;/./;!/11\:/;!/8 7 6 5 4 3 2 1/;!/UDP/{b=$0} END {for (j=i-1; j>=0; ) print b };{for (i=NF; i>0; i--) printf("%s ",i);printf ("\n")}'
*NOTE IN j>=0 the ; ) was given a space since a smiley is showing up...... (1 Reply)
my script:
FILE="$1"
echo "You Entered $FILE"
if ; then
tmp=$(cat $FILE | sed '/./!d' | sed -n '/regex/,/regex/{/regex/d;p}'| sed -n '/---/,+2!p' | sed -n '/#/!p' | sed 's/^*//' | sed -e\
s/*:// | sed -n '/==> /!p' | sed -n '/--> /!p' | sed -n '/regex/,+1!p' | sed -n '/======/!p' | sed -n... (1 Reply)
Hi,
Is there a way to simplify the below script? Because I am having problems executing this if I added this to CRON. Also, you may notice that its objective is to put all information in one file (rm1.txt). And in addition file "sRMR_6.txt" to sRMR_23.txt" changes its information everyday.... (4 Replies)
Hello,
I have a large number of sed commands that I execute one after the other, simply because I don't know if there's a shorter way to do it. I hope someone can help me save some time :-)
These are my commands:
1.) remove all " in the file:
sed -e 's/\"//g' file
2.) insert ( and... (3 Replies)
the code below is a small fragment of the actual line, in fact i have about 20 values i'm comparing and want to know if it can be simplified. other than the x.xx.xx format of the value they have nothing in common
if || || ; then
do this
else
do this
fiany suggestions? (6 Replies)
Hi all, I don't have much experience with shell scripting and I was wondering if there's a shorter way to write this.
Basically, given a list of strings separated by new lines, I want to prepend each string with a prefix and separate the strings with commas
i.e.
stra
strb
strc
becomes... (3 Replies)
Hello,
I want to submit my awk script into cluster queue as my job takes about forty minutes to finish so I can not run it on the main node.
My awk script is like the following and I have three files. so, I write :
qsub -q short.q Myscript.awk file1 file2 file3
It submits the work into... (1 Reply)
I have the following script:
awk -F "," '{ if ( $4 > 450 && $4 < 550 && $5 > 0.5 ) print $2, $5; else print $2, "0" }' test.txt | awk '{a+=$2}END{for(i in a){print i, a}}' | sort -nk 1.2 | sed 1,2d
and a bunch of files that look like the test file attached here.
I am outputting all... (2 Replies)
Discussion started by: Xterra
2 Replies
LEARN ABOUT DEBIAN
svn::web::browse
SVN::Web::Browse(3pm) User Contributed Perl Documentation SVN::Web::Browse(3pm)NAME
SVN::Web::Browse - SVN::Web action to browse a Subversion repository
SYNOPSIS
In config.yaml
actions:
...
browse:
class: SVN::Web::Browse
action_menu:
show:
- directory
link_text: (browse directory)
...
DESCRIPTION
Returns a file/directory listing for the given repository path.
OPTIONS
rev The repository revision to show. Defaults to the repository's youngest revision.
TEMPLATE VARIABLES
at_head
A boolean value, indicating whether or not the user is currently browsing the HEAD of the repository.
context
Always "directory".
entries
A list of hash refs, one for each file and directory entry in the browsed path. The list is ordered with directories first, then
files, sorted alphabetically.
Each hash ref has the following keys.
name The entry's name.
path The entry's full path.
rev The entry's most recent interesting revision.
size The entry's size, in bytes. The empty string '' for directories.
type The entry's "svn:mime-type" property. Not set for directories.
author The userid that committed the most recent interesting revision for this entry.
date The date of the entry's most recent interesting revision, formatted according to "Time and date formatting" in SVN::Web.
msg The log message for the entry's most recent interesting revision.
rev The repository revision that is being browsed. Will be the same as the "rev" parameter given to the action, unless that parameter was
not set, in which case it will be the repository's youngest revision.
youngest_rev
The repository's youngest revision.
EXCEPTIONS
(path %1 does not exist in revision %2)
The given path is not present in the repository at the given revision.
(path %1 is not a directory in revision %2)
The given path exists in the repository at the given revision, but is not a directory. This action is only used to browse directories.
COPYRIGHT
Copyright 2003-2004 by Chia-liang Kao "<clkao@clkao.org>".
Copyright 2005-2007 by Nik Clayton "<nik@FreeBSD.org>".
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
perl v5.14.2 2012-06-11 SVN::Web::Browse(3pm)