08-04-2008
Thank you
Hi Manoj .. Thanks for your code .. It worked nicely for me ....
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i="1"
while
do
k=`expr $i + 1`
sed -e 's/"$i"/"$k"/' < somefile1.txt >> somefile2.txt
i=`expr $i + 1`
done
ive been trying to :
1 from a file containing numbers in a row divided with correct number of 2 spaces to find the corresponding one
2 change the value
3 and append... (1 Reply)
Discussion started by: trilicno
1 Replies
2. UNIX for Dummies Questions & Answers
i="1"
while
do
k=`expr $i + 1`
sed -e 's/"$i"/"$k"/' < somefile1.txt >> somefile2.txt
i=`expr $i + 1`
done
ive been trying to :
1 from a file containing numbers in a row divided with correct number of spaces to find the corresponding one
2 change the value
3 and append... (3 Replies)
Discussion started by: trilicno
3 Replies
3. Programming
Hi everybody, i am doing a project on checkpoints, where in i need to write the heap area into a file. I have got a code which i need to analyze, also asked in the forum under solaris
https://www.unix.com/solaris/135483-libckpt.html
The heap is implemented as a link list given by the structure... (2 Replies)
Discussion started by: holla4ni
2 Replies
4. Shell Programming and Scripting
hi ..
i have a problem how to search file with date and version number(ms_2.0_dd/mm/yy_24)in folder.Here 24 is version number and compare the this file to other file which is in another folder and if does not match then copy this file to respective folder.Also copy different files in different... (1 Reply)
Discussion started by: shubhig15
1 Replies
5. Shell Programming and Scripting
hi buddies;
rollbackip.txt:10.14.3.65 2
10.14.3.65 3
...
lookup.txt:
...
10.14.3.65 2 10.14.5.55 1 55 10.14.6.66 1 66
10.14.3.65 3 10.14.7.77 3 77 10.14.8.88 2 88 10.14.9.99 4 99
...
ip-port.txt
...
port111 3 10.14.5.55 57
port111 2 10.14.5.55 51
port111 1 10.14.5.55 59 ->... (7 Replies)
Discussion started by: gc_sw
7 Replies
6. Shell Programming and Scripting
Guys, i wanna get any user files with write permission (on user or group permission) for review but i confuse with -perm parameter.
any body can help me to explain what is that mean?
thank's (1 Reply)
Discussion started by: michlix
1 Replies
7. Shell Programming and Scripting
Hi , Need to shell script to extracts files names and write those to another file in different directory.
input file is
inputfile.txt
abc|1|bcd.dat
123 david123
123 rudy2345
124 tinku5634
abc|1|def.dat
123 jevid123
123 qwer2345
124 ghjlk5634
abc|1|pqr.txt
123 vbjnnjh435
123 jggdy876... (1 Reply)
Discussion started by: dssyadav
1 Replies
8. Shell Programming and Scripting
I have file which contains a huge amount of data. I need to search the pattern Message id. When that pattern is matched I need to get abcdeff0-1g6g-91g3-1z2z-2mm605m90000 to another file.
Kindly provide your input.
File is like below
Jan 11 04:05:10 linux100 |NOTICE... (2 Replies)
Discussion started by: Raysf
2 Replies
9. Shell Programming and Scripting
Hi,
I have a file which contains the below details.. My requirement is to fetch all the lines which are starting with "ABC_XY_" into 1 file and rest of the lines (not starting with "ABC_XY_") into another file.
Could you please help with what command needs to be used?
file1.txt
----------... (12 Replies)
Discussion started by: satyaatcgi
12 Replies
10. Shell Programming and Scripting
Hi Friends,
I have a very big text file, that has code for multiple functions. I have scan through the file and write each function in seperate file. All functions starts with
BEGIN DSFNC
Identifier "ABCDDataValidationfnc"
and ends with
END DSFNC
I need create a file(using identifier)... (2 Replies)
Discussion started by: anandapani
2 Replies
UCFQ(1) User Contributed Perl Documentation UCFQ(1)
NAME
ucfq - query the ucf database
SYNOPSIS
usage: ucfq [options] (/path/to/file|package)[/path/to/file|package ...]
OPTIONS
--help h Print out a usage message.
--debug -d Turn on debugging mode.
--verbose -v Make the script more verbose..
--with-colons -w
Normally, the script presents the information in a human readable tabular format, but that may be harder for a machine to parse. With
this option, the output is a compact, colon separated line, with no dividers, headers, or footer.
--state-dr dir
Set the state directory to "/path/to/dir" instead of the default "/var/lib/ucf". Used mostly for testing.
DESCRIPTION
This script takes a set of arguments, each of which is a package name (and thus does not contain a /) or a full path to a configuration
file, and outputs the associated package, if any, if the file exists on disk, and whether it has been modified by the user. The output is
either a human readable tabular form, or a compact colon-separated machine friendly format.
This script can potentially be used in package "postrm" scripts during purge to query the system for configuration files that may still
exist on the system, and whether these files have been locally modified by the user -- assuming that the package registered all the config-
uration files with ucf using "ucfr".
CAVEATS
This is very inchoate, at the moment, and needs testing.
BUGS
None Known so far.
AUTHOR
Manoj Srivastava <srivasta@debian.org>
COPYRIGHT AND LICENSE
This script is a part of the Ucf package, and is
Copyright (c) 2006 Manoj Srivastava <srivasta@debian.org>
This program is free software; you can redistribute it and / or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
perl v5.8.8 2006-04-16 UCFQ(1)