I have tried ur code. It works well
But it shows output only for a single A file and its corresponding single B file.
Now, I need to run it for multiple files and save their data into new file.
I tried the following code, but it doesnt work
f
thanks for the help!!!!
---------- Post updated at 07:40 AM ---------- Previous update was at 06:04 AM ----------
Hi ygemici,
code given by you also works for single A file and single B file.
the output shown is :
Although I need to display only RGF
Kindly help me to work with multiple files at a time.
Last edited by radoulov; 05-20-2011 at 11:12 AM..
Reason: Code tags, please!
Anyone here knows any reasonably priced courses for independent (not corporate) users that can point me to. Already know Unix commands/vi/etc but now need scripting too. Any replies will be appreciated. (2 Replies)
Please Let me know this Que and Ans please Because i applied for a H1B VISA nad i have a INTERVIEW as soon so please "Difference between Linux and Unix and also C and C++ and also about Shell Scripting about all Questions and Answers ." (3 Replies)
I want to learn Linux/Unix shell scripting, I searched this forum but got some results for Unix Admin books and general Linux books.
Would someone recommend a good Linux Shell Scripting book?
I did order one book
A Practical Guide to Linux(R) Commands, Editors, and Shell Programming ... (4 Replies)
In shell Can I pass " to a program ? If not what is the work around ..?
Can I define * as a wild card charecter that will return all the values from
the files ..?
I am trying to create a tool that will return the values from a property file . This tool has to support all the wild card... (1 Reply)
Hi,
I have general question: i have good working Perl script with .pl extension, and now I have to migrate all to another Linux box, and I was told that I can use only shell scripting, so I'm not sure how different those two things are, will it work without any changes . Is there anything smart I... (6 Replies)
hi
My script as below
#!/bin/ksh
for i in `seq 1 7`
do
a=$(awk '{print $i}' /home/rama/expenese.txt)
done
for i in `seq 1 7`
do
echo "${a}"
done
content of expense.txt is as below
5032 210179 3110 132813874 53488966 11459221 5300794
I want output as... (6 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
This is what is asked:
If the user enters ‘3’, prompt the user for two file names. Verify that the file names... (2 Replies)
This is the sample json I have pasted here. I want all the IP address strings to be converted into an array. For example "10.38.32.202" has to be converted to everywhere in the JSON. There are multiple IPs in a JSON I am pasting one sample object from the JSON. But the IPs already in an Array... (11 Replies)
Hi,
I would like to know how to define the size of the array in c shell scripting. (15 Replies)
Discussion started by: gopishrine
15 Replies
LEARN ABOUT DEBIAN
dh-exec-illiterate
DH-EXEC-ILLITERATE(1) dh-exec DH-EXEC-ILLITERATE(1)NAME
dh-exec-illiterate - Write literate debhelper config files!
SYNOPSIS
#! /usr/bin/dh-exec --with=illiterate,subst,install
Greetings, my dear reader, and welcome to the awesome world of
literate programming!
Today, we're going to explore how to write a debhelper install file in
a literate manner. Trust me, it's going to be lots and lots of fun!
So, what exactly are we trying to accomplish? We're going to try
installing a file from `src/this-file' in the source tree, to a
multi-arched path in the binary file. Lets say, to
`/usr/lib/foo/${DEB_HOST_MULTIARCH}/'.
Of course, ${DEB_HOST_MULTIARCH} is a variable, and will be expanded
later in the dh-exec pipeline. It'll be something like
x86_64-linux-gnu.
Furthermore, we want to install all files from the 'usr/lib' directory
under debian/tmp. If we were writing an illiteral install file, we'd
write this rule as:
usr/lib
But the above description is much easier to understand, isn't it?
We're almost finished! One thing left to do, is to install a script
named `rename-me', to `/usr/share/foo/new-name' - we renamed it
in the process!
DESCRIPTION
The dh-exec-illiterate sub-command, unlike the others, does not serve any particular case, except to serve as a warning to all, that things
can be taken to an extreme, even with dh-exec. On the other hand, it is just like the other sub-commands in that it must not be called
directly, but through dh-exec(1), which automatically runs all available sub-commands if run bare; or explicitly with dh-exec
--with=illiterate.
It is a program that will translate its input from pretty much free-form text into something that resembles an install file. At least,
that's the only supported output format for now.
Everything that's not recognised, will be ignored, and not printed. The recognised constructs are:
`source' ... `destination'
The first string between a backtick and a single quote will be treated as the source file, the next such string will be the
destination. If the destination ends with a slash, dh-exec-illiterate will consider it a directory, otherwise it will output a
construct that dh-exec-install can recognise as a rename operation.
'source'
A string, without whitespace, between two single quotes is treated as a source, whose destination is unspecified, and is left up to
dh_install(1) to figure out.
ENVIRONMENT
DH_EXEC_SCRIPTDIR
Indicates which directory the command-specific scripts should be sought for. If not specified, scripts will be searched for in
/usr/share/dh-exec/.
FILES
$DH_EXEC_SCRIPTDIR/dh-exec-illiterate-*
The various scripts for the higher-level program.
SEE ALSO debhelper(1), dh-exec(1)AUTHOR
dh-exec-illiterate is copyright (C) 2011-2012 by Gergely Nagy <algernon@madhouse-project.org>.
2012-05-03 DH-EXEC-ILLITERATE(1)