09-30-2008
How to achieve this?
hi to all,
i have the input(text file) like the below...
Header
1,2,3
4,5,6
7,8,9
Footer
i need a output(text file) like the below...
Header,1,2,3,Footer
Header,4,5,6,Footer
Header,7,8,9,Footer
please help me to find out?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to figure out how I can get an equivalent output to a text file such as if I use
gunzip -l filename
in that gunzip will output the previous file size and the compressed size and the ratio...
is there a way to achieve this with compress and zip?
i am very new at shell... (3 Replies)
Discussion started by: nortypig
3 Replies
2. Shell Programming and Scripting
hey......
i hav the follwing scripts needs to run parallel, so i made it as follows,
$HPath/start_script.sh 20 &
$HPath/start_script.sh 03 &
$HPath/start_script.sh 01 &
$HPath/start_script.sh 12 &
then once all these above got completed successfully i have to run
... (3 Replies)
Discussion started by: manas_ranjan
3 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
i have a following folder call 'zz'. This 'zz' folder is found in the following directories.
I would like to delete the zz in the following directories
/aa/zz
/aa/bb/cc/zz
/aa/bb/cc/dd/zz
/aa/bb/cc/dd/ee/zz
and keep the zz folder in the following directories
/WW/zz
... (1 Reply)
Discussion started by: new2ss
1 Replies
4. Programming
How to achieve SERIALIZATION in Unix , C, C++
Write Objects directly to disk and read back ? (1 Reply)
Discussion started by: Sivaswami
1 Replies
5. HP-UX
Hi all,
I have a master shell which will be running in cron tab.It will pick the files from certain directory and call subshell (Child Shell).This subshell / Child Shell runs in the background.
My problem is once if the master shell picks the file and passes it to subshell,it should go to... (6 Replies)
Discussion started by: cskumar
6 Replies
6. Shell Programming and Scripting
Hi,
Here is my requirement.
Currently, there is a function which gets called in a for loop 2 times.
doCopy() {
cp /src/a*.jar /target/
cp /src/b*.jar /target/
cp /src/c*.jar /target
}
Since it is called sequentially from the for loop, I was asked to make parellel copy to... (7 Replies)
Discussion started by: kgsrinivas
7 Replies
7. Shell Programming and Scripting
Hi all
I have the following which is part of a larger interactive script for adding virtual hosts to Apache's configuration (it was built for non-technical administrators). I'm curious as to whether there is a simpler way of achieving the same thing. All it does is look into the... (3 Replies)
Discussion started by: mlott
3 Replies
8. UNIX for Advanced & Expert Users
in AIX ,HP Unix and in SUN solaris,
how to find the logs by date and time, I mean , Logs which have been generated or updated
most recently , which might be present in folders and sub folders, I need to get the list of these Logs
along with location path.
Example:
========
folder... (3 Replies)
Discussion started by: sidharthmellam
3 Replies
9. Shell Programming and Scripting
Is there any i can achieve entity escaping, URL escaping & UTF-8 encoded for the xml generated through shell script?
#! /bin/bash
echo "<path>" >> file.xml
for x in `ls filename*`
do
echo -e "\t<dir>" >> file.xml
echo -e "\t\t<file>$x</file>" >> file.xml... (0 Replies)
Discussion started by: vel4ever
0 Replies
IDENT(1) General Commands Manual IDENT(1)
NAME
ident - identify files
SYNOPSIS
ident file ...
DESCRIPTION
Ident searches the named files for all occurrences of the pattern $keyword:...$, where keyword is one of
Author
Date
Header
Locker
Log
Revision
Source
State
These patterns are normally inserted automatically by the RCS command co (1), but can also be inserted manually.
Ident works on text files as well as object files. For example, if the C program in file f.c contains
char rcsid[] = "$Header: Header information $";
and f.c is compiled into f.o, then the command
ident f.c f.o
will print
f.c:
$Header: Header information $
f.o:
$Header: Header information $
IDENTIFICATION
Author: Walter F. Tichy, Purdue University, West Lafayette, IN, 47907.
Revision Number: 3.0 ; Release Date: 82/12/04 .
Copyright (C) 1982 by Walter F. Tichy.
SEE ALSO
ci (1), co (1), rcs (1), rcsdiff(1), rcsintro (1), rcsmerge (1), rlog (1), rcsfile (5).
Walter F. Tichy, "Design, Implementation, and Evaluation of a Revision Control System," in Proceedings of the 6th International Conference
on Software Engineering, IEEE, Tokyo, Sept. 1982.
BUGS
Purdue University 6/29/83 IDENT(1)