my file looks like this:
101928 101943
101928 101944
101929 101943
101929 101943
101929 102044
i want to insert bc to get answer like this:
101928 101943 000015
101928 101944 000016
101929 101943 000013
101929 101943 000014
101929 102044 000115
total 000173
my... (3 Replies)
I need to rename a directory full of files named like:
page_001.jpg
page_002.jpg
page_003.jpg
to the file name minus one. Meaning instead of page_001.jpg that file becomes page_000.jpg so:
page_001.jpg => page_000.jpg
page_002.jpg => page_001.jpg
page_003.jpg => page_002.jpg
I was... (3 Replies)
In Redhat it is easy....
date --date="60 minutes ago"
How do you do this in Solaris?
I got creative and got the epoch time but had problems..
EPOCHTIME=`truss date 2>&1 | grep "time()" | awk '{print $3 - 900}'`
echo $EPOCHTIME
TIME=`perl -e 'print scalar(localtime("$EPOCHTIME")),... (5 Replies)
Hi there,
I have a problem with arithmetic ops in awk.
Here is what my script does right now.
while read nr val ; do
case $nr in
400) awk '$2~/eigenvectors/ {print $NF-'$val'};' input.txt >> output.txt;;
esac
done < frames.txtI have a file named frames.txt with two columns (nr and... (2 Replies)
Hi,
I need to subtract 5 minutes from the date. Example
$date +"%Y-%m-%d-%H.%M.%S" displays 2014-06-26-06.06.38
I want to show it as 2014-06-26-06.01.38 (5 mins are subtracted from date)
Any help would be appreciated. I am currently on AIX version 6.1
-Vrushank (10 Replies)
Hi the below code is failing i am trying to generate do the following:
2014-10-22 11:26:00 (Substract 24 hrs)
should produce
2014-10-21 11:26:00
I need the same formatting below because that gets inputted into code for an... (4 Replies)
Hello,
date --date '-60 min ago' +'%Y-%m-%d %H:%M:%S,%3N'
Above command gives the date and time minus 60 minutes
but the problem i am facing is, i do not want to hardcode the value 60
it is stored in a variable var=60
now if i run below command , i get error
date --date '-$var min... (3 Replies)
Hello Folks,
I have a variable output holding date as below -
output = "20141220"
I need to extract a day out of it and store it in another variable i.e. something similar to below -
output1=20141219"
and if the month is changing i.e. date in on 31st or 1st it should be taken care of
"date... (5 Replies)
Discussion started by: ektubbe
5 Replies
LEARN ABOUT DEBIAN
rmgdiff
RMGDIFF(1x)RMGDIFF(1x)NAME
rmgdiff - use almost any graphical file difference browser to recursively view the differences between two directories.
SYNOPSIS
rmgdiff [-b] [-d] [-g gui] [-n] dir1 dir2
DESCRIPTION
rmgdiff is an awk script that works in conjunction with almost any graphical file difference browser. It is known to work with mgdiff,
tkdiff, and xdiff.
Unless I am mistaken, most of the GUI difference viewers (except for emacs) do not have built-in support for recursing down two directo-
ries, but diff does. Based on diff's output, rmgdiff decides when to invoke the graphical difference viewer.
In addition, rmgdiff also collates diff's output. As soon as a new difference is encountered in a text file, rmgdiff will print to stan-
dard output the name of the file that both directories have in common. It will then start the GUI and block until the user exits. As more
text files with differences are found, the GUI will be started up again.
In the interim, rmgdiff will keep track of differences in binary (non-text) files. It organizes the binary files as executables, shared
libraries, static libraries, object files, and other. Only after all the text files have been displayed will rmgdiff report the binary
differences.
It also keeps track of files and directories that diff reports as being only in one directory or another. rmgdiff organizes these entries
by directory. Thus, files in one directory will be reported in one block, and files that are in the other directory will be reported in a
different block.
In addition to printing the name of the files that are different, rmgdiff defaults to printing the relevant portion of the output from the
file command. This has the unfortunate side-effect of slowing things down; however, I find this information to be invaluable. If you're
just looking for a fast way to collate diff's output, try piping it into sort instead.
COMMAND LINE OPTIONS -b Sets the basic reporting mode. In basic mode, rmgdiff reports only file names. It does not report the file types involved.
-c By default, files relating to CVS are ignored by rmgdiff. If you want to include CVS files, use this option.
-d Sets rmgdiff to print way too much debugging information.
-g gui Tells rmgdiff which gui you would like to use for viewing differences. By default, mgdiff is used. You can also set $RMGDIFF_GUI
in your environment, but it can be overridden with this option.
-n rmgdiff will not invoke the gui. This is useful, if you only want to view the collated output.
AUTHOR
Paul Serice (paul@serice.net)
RMGDIFF(1x)