06-29-2015
What is your input file and desire output?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am trying to write a script which will loop until a certain action has been performed. I have two files i would like to compares.
For example:
file1 has a list of user ids (about 900) from the company's e-mail server.
file2 has a list of user ids (about 50 or so) from... (7 Replies)
Discussion started by: muzica
7 Replies
2. Shell Programming and Scripting
Can I use search & replace in any variable?
Suppose I have one variable named var1 which holds value "abcabc" I need to search 'a' in var1 and want to replace with 'x' like 'xbcxbc'. Is it possible? Can you provide me an example?
Malay (3 Replies)
Discussion started by: malaymaru
3 Replies
3. Shell Programming and Scripting
Surely there's an easier way to do this, lets see if anyone knows! I am new to scripting so go easy on me!
I have the following script and at the moment it doesn't work and I believe the problem is that I am using a while loop within a while loop. When I run the script using sh -x I can see... (6 Replies)
Discussion started by: StevePace
6 Replies
4. Shell Programming and Scripting
I want to instert Category:XXXXX into the 2. line
something like this should work, but I have somewhere the wrong sytanx. something with the linebreak goes wrong:
sed "2i\\${n}Category:$cat\n"
Sample:
Titel Blahh Blahh abllk sdhsd sjdhf
Blahh Blah Blahh
Blahh
Should look like... (2 Replies)
Discussion started by: lowmaster
2 Replies
5. UNIX for Dummies Questions & Answers
Hi, I need some help to figure out why an outer for loop KSH variable does not decode in AWK but inner for loop does. Below is my code,
If I hard code variable 'SUBSEQ' in AWK it works but if I try to pass the SUBSEQ from KSH, it does not and when I pass the variable 'NAM' from KSH it works: I... (1 Reply)
Discussion started by: chowdhut
1 Replies
6. Shell Programming and Scripting
I have tried everything I can think of to get sed to change line N of a file to the contents of a variable. I have Googled the Internet, and I find lots of people telling how to use variables with the "Substitute" command, but no one telling how to use variables with the "Change" command.
I... (4 Replies)
Discussion started by: Mr.Lauren
4 Replies
7. Shell Programming and Scripting
Hi,
I've a requirement where I want to re-assign the value in the variable through which FOR LOOP loops.
For e.g.
Snippet of code
---------------
for i in $var
do
echo $i >> $tempFile
var=`echo $another_var | awk -F" " '{print $1}'`
done
I am re-assigning var so... (2 Replies)
Discussion started by: dips_ag
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I've been researching this problem and I am pretty sure that the issue is related to the while loop and the piping. There are plenty of other threads about this issue that recommend removing the pipe and using redirection. However, I haven't been able to get it working using the ssh and... (1 Reply)
Discussion started by: 1skydive
1 Replies
9. UNIX for Advanced & Expert Users
I have a below syntax its working fine...
var12=$(ps -ef | grep apache | awk '{print $2,$4}')
Im getting expected output as below:
printf "%b\n" "${VAR12}"
dell 123
dell 456
dell 457
Now I wrote a while loop.. the output of VAR12 should be passed as input parameters to while loop and results... (5 Replies)
Discussion started by: sam@sam
5 Replies
10. Shell Programming and Scripting
Hello,
Below I try to control that the input is good an IP :
#!/bin/bash
cp /home/scripts/choice_interfaces.txt /home/scripts/interfaces.txt
chmod 644 /home/scripts/interfaces.txt
echo -e "Please enter the network informations into the /etc/network/interfaces file, complete them below... (9 Replies)
Discussion started by: Arnaudh78
9 Replies
ESPDIFF(1) Man pages ESPDIFF(1)
NAME
espdiff - apply the appropriate transformation to a set of patches
SYNOPSIS
espdiff [--deep-brainwave-mode] [--recurse] [--compare] [file...]
espdiff {[--help] | [--version]}
DESCRIPTION
espdiff applies the appropriate transformation to a patch or set of patches, depending on what you intend to accomplish.
The input patches must be "clean": in other words they must apply without fuzz or offsets in whichever order they are meant to be applied.
The exception is if you intend espdiff to clean them for you (good luck).
You may find it useful to cross your fingers while the program performs its task, or to screw your eyes tight shut while imagining it doing
the right thing.
OPTIONS
--deep-brainwave-mode
Probes your brain deeply in a manner that takes longer, but produces better extra sensory results.
--recurse
Recurses neural pathways throughout all parts of the brain, in some cases determining code changes you might make far off in the
future. You may feel a gentle tickling sensation when using this option.
--compare
Allows the program to scan the current directory examining existing patches to determine areas of code you are likely to change again,
and concentrating on these areas more closely.
--help
Display a short usage message.
--version
Display the version number of espdiff.
LIMITATIONS
Do not use this program while sleep-walking, or before your first cup of coffee.
There are some cases in which it is not possible to determine what the intention of the user is. In these cases, you should construct the
output you desire using an editor, and send the input files together with the desired output file to Tim Waugh twaugh@redhat.com asking for
a new diff tool.
AUTHORS
Tim Waugh <twaugh@redhat.com>
Package maintainer
Mike Harris <mharris@redhat.com>
Conceptual designer
patchutils 5 March 2003 ESPDIFF(1)