Hi ,
i am beginner to Unix, I have one small script which execute java programme,it has java command input output structure . Right now i have given Input output structure manually that is on same directory, now how can i pass that by commandline
#!/bin/sh
java Classjava input.txt... (5 Replies)
Hi,
I have a shell script with an ambedded awk script.
i need to pass a script variable to the awk script.
Please help.
Thanks in advance
Himani (3 Replies)
Hello experts,
can I return a value from gawk to a shell script ?
My script as follows,
#Here I want the num value to shell script so that I can use later
gawk '
{
split($0,num,",");
print num
}'
gawk -v no=$number '{print no}'
file1
... (3 Replies)
Hello Experts,
Actually I was searching for a solution here in this forum , but didn't get what exactly I want . Is this possible to do in awk ?
I am trying to do some thing like below in ksh script . Upto my knowledge I can pass shell script to awk with "-v " option.
But I... (3 Replies)
This is my script structure
main script calls configure script which needs to be run as a different user and the configure script calls my application installation script. the application instruction script prompts the user for a directory which I need to pass from my main or configure script.
... (4 Replies)
Discussion started by: cmastays
4 Replies
6. Post Here to Contact Site Administrators and Moderators
Variable I have in my shell script
diff=$1$2.diff
id=$2
new=new_$diff
echo "My id is $1"
echo "I want to sync for user account $id"
##awk command I am using is as below
cat $diff | awk -F'~' ''$2 == "$id"' {print $0}' > $new
I could see value of $id is not passing to the awk... (0 Replies)
I am trying to automate a testcase . I am installing some software and it waits for user input after displaying "Do you want to continue ? " I am trying to do this in shell scripting.
#!/bin/bash
#!/usr/bin/expect -f
/usr/bin/expect << EOF
spawn apt-get install openjdk-7-jdk
expect "*Do you... (1 Reply)
Hi All,
I am new to shell script. I am trying to pass value from .sh file to .sql file .
But I am able to run the .sql file from .sh file with values in sql file.
But I am unable to pass the values from .sh file. can some one please help to resolve this.
here is my .sh file
s1.sh
... (4 Replies)
Hi,
Please need to print the Rej variable outsite the awk script which is given below...please advised how to achieve it.
#!/bin/bash
echo "Enter DMU Pipe delimited File name for the Feed to be validated"
read DMU_File
echo "Enter Pre-DMU File name for the Feed"
read Predum_file
... (3 Replies)
I want to make a config file which contain all the paths.
i want to read the config file line by line and pass as an argument on my below function.
Replace all the path with reading config path line by line and pass in respective functions.
how can i achieve that?
Kindly guide.
... (6 Replies)
Discussion started by: sadique.manzar
6 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)