06-25-2009
Beyond the problem ,the logic behind ur script is not seems to be correct.
If you post you input and the output your expecting , you can expect more results.
Regards
Sastry.P
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
In our html pages, we have the image path as "/dir1/dir2/image.gif".
We are changing the location of the image directory.
So now we wish to do a global search and replace the path. I think we are having trouble with forward slash character.
Please help
Thanks in advance
Vikas
a... (3 Replies)
Discussion started by: vikas_j@hotmail
3 Replies
2. UNIX for Dummies Questions & Answers
I have statement like this
column_id.columnname=="value"
in unix i want to modify above statement to
variable1=="value"
that means i have to replace the string before "==" by string "variable1"
second catch is, in statement instead of "==" you can have any arithmatic comarision... (7 Replies)
Discussion started by: mahabunta
7 Replies
3. UNIX for Dummies Questions & Answers
After running a command like
grep -ir files2/ *
This will find all the files that contain "files2/" in it.
For example if it finds
files2/dir/today
files2/dir/yesterday
files2/dir/2daysago
Now it may find 100 instances, so is there a quick find and replace command I can use? I... (4 Replies)
Discussion started by: NycUnxer
4 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am trying to do this find and replace in unix and somehow its not working.
TR|20080325|22952 |000000040|20080327|0530
TR|20080417|23078 |000000104|20080418|0530|1040001 |
I have the records coming in the above format. My requirement is if delimiter count is not 8 then... (2 Replies)
Discussion started by: kiran_418
2 Replies
5. Shell Programming and Scripting
hi guys!!!
i am writing a script in which i take an input from user and find it in a file and replace it.
My input file looks like
hi
what your name?
allrise
my code looks is
echo "Enter the name"
read name
FILE="/opt/name.txt"
NEW_FILE="/opt/new_name.txt"
exec 0<$FILE
... (3 Replies)
Discussion started by: allrise123
3 Replies
6. Shell Programming and Scripting
New to change change 10 to 45 its a first line in the file.
"15/10/2009 00:00:00"|DATA|NEW (10 Replies)
Discussion started by: dinjo_jo
10 Replies
7. Shell Programming and Scripting
Need to convert
echo "7 6"
to
$7,$6
But the count of numbers can increase say echo "7,6,8,9" tried this didn't work
echo "7 6" | sed 's/\(*\)/\1/'
But did not help much (3 Replies)
Discussion started by: dinjo_jo
3 Replies
8. Shell Programming and Scripting
In a directory I have many XML files, how to search for the string
<text>You are here</text> and replace it with
<text>YOU Are HERE</bc-text> in a unix command
find . -name "*.xml" (1 Reply)
Discussion started by: sandy1028
1 Replies
9. Shell Programming and Scripting
Hi Team,
one silly issue. but its not working for me.
I need to find a pattern a file and replace it with the given value in another file.
Here's the code snippet.
Search_String=100
Replace_String=151
cat ${work}/temp_${CSV_File} | sed 's|"${Search_String}"|"${Replace_String}"|g'... (2 Replies)
Discussion started by: kmanivan82
2 Replies
10. Shell Programming and Scripting
Hi,
I have a variable which holds the below value:
echo $FROM_DIR
/fsg/fgldevu/fs_ne/inst/FGLDEVU_01/logs/appl/conc/out/o14946708.out
I want to change the value in the variable as below:
out/o to be replaced with log/l
.out to be replaced with .req
The desired output should look like... (5 Replies)
Discussion started by: Prasannag87
5 Replies
GZEXE(1) General Commands Manual GZEXE(1)
NAME
gzexe - compress executable files in place
SYNOPSIS
gzexe [ name ... ]
DESCRIPTION
The gzexe utility allows you to compress executables in place and have them automatically uncompress and execute when you run them (at a
penalty in performance). For example if you execute ``gzexe /bin/cat'' it will create the following two files:
-r-xr-xr-x 1 root bin 9644 Feb 11 11:16 /bin/cat
-r-xr-xr-x 1 bin bin 24576 Nov 23 13:21 /bin/cat~
/bin/cat~ is the original file and /bin/cat is the self-uncompressing executable file. You can remove /bin/cat~ once you are sure that
/bin/cat works properly.
This utility is most useful on systems with very small disks.
OPTIONS
-d Decompress the given executables instead of compressing them.
SEE ALSO
gzip(1), znew(1), zmore(1), zcmp(1), zforce(1)
CAVEATS
The compressed executable is a shell script. This may create some security holes. In particular, the compressed executable relies on the
PATH environment variable to find gzip and some other utilities (tail, chmod, ln, sleep).
BUGS
gzexe attempts to retain the original file attributes on the compressed executable, but you may have to fix them manually in some cases,
using chmod or chown.
GZEXE(1)