12-06-2009
File Operation
I have one text file like
1 filename
2 filename2
3 hi
4 myname
i have one variable in which i have index value..i.e.1,2,3 and so...
i want to copy value after the index into somevariable.....
how i can do it....
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
I have just started fidling with script. Can anyone please help me out with this question. I have a file that contains the below 4 lines of words
Abcd
Efgh
Ijkl
Mnop
The question is I want to add a line to the middle of these without using sed or awk. Can anyone bail me out... (4 Replies)
Discussion started by: Musaroro
4 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I need information on file handling in UNIX enviornment.
If in UNIX enviornment I have two process..
P1
P2
Both accessing the same file simultaneosuly(read operation)..
Suppose P1 opened the file in read mode first and started reading the file..
Then P2 opens the same file in... (5 Replies)
Discussion started by: chibob
5 Replies
3. Shell Programming and Scripting
Hi All,
I have one CVS file, and doing some actions on it. I have removed some columns by
SWITCH: {
$column eq 'COL1' && do {next;};
$column eq 'COL2' && do {next;};
push(@columns, $column);
... (1 Reply)
Discussion started by: gentleDean
1 Replies
4. Linux
Hi,
I am creating a progress bar for file upload for which I have CGI script which copies the data and depending on certain bytes it increments the progress bar. Here, I am writing the incremented value to a file which is read by Ajax at server end. However, here I want to ask that, is it... (18 Replies)
Discussion started by: xs2punit
18 Replies
5. Shell Programming and Scripting
I have a txt file with several columns and i want to peform an operation on two columns and output it to a new txt file .
file.txt
900.00000 1 1 1
500.00000
500.00000
100000.000
4
4
1.45257346E-07 899.10834 ... (4 Replies)
Discussion started by: shashi792
4 Replies
6. Emergency UNIX and Linux Support
Hi,
i need to copy contents from source to destination with a few conditions, Please helpme out.
Sample input file
$>cat testfile.txt
/a/b/c/d | /e/f/g/d (d can be either a file or directory)
my conditions are:
check if destination is valid and if its a file or directory
if its a... (5 Replies)
Discussion started by: raghu_shekar
5 Replies
7. Shell Programming and Scripting
Hi,
I am new to Shell Scripting. I need the following help.
I have a file which is Ctrl +A delimited.I have to do the following validation
1. Header row second column should be having the SYSdate time stamp.(ddmmyyyyhhmiss) Need compare only sysdate. Time is not required.
2. ln Footer... (2 Replies)
Discussion started by: gatha_vdm
2 Replies
8. Shell Programming and Scripting
Hi I have
the file has some formulas how to create a program (per, ksh, awk) which calculate the operation and put the result on other file
example
data of source file - this has separate by ";"... (5 Replies)
Discussion started by: Miguel Gonzalez
5 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
We have a Unix program in oracle when we run the program this connects to specified ftp and will get the file into local server.
We are facing a problem like when file writing operations is not completed, this program is getting the incomplete file.
Could anyone please help me... (2 Replies)
Discussion started by: world.apps
2 Replies
10. Shell Programming and Scripting
i have one file which contains data like the below
DE_CODE|AXXANY|APP_NAME|TELCO|LOC|NY
DE_CODE|AXXATX|APP_NAME|TELCO|LOC|TX
DE_CODE|AXXABT|APP_NAME|TELCO|LOC|BT
DE_CODE|AXXANJ|APP_NAME|TELCO|LOC|NJ
DE_CODE|AXXANJwt|APP_NAME|TELCO|LOC|WT
am going use a for loop or whole loop which will... (3 Replies)
Discussion started by: mail2sant
3 Replies
LKBIB(1) General Commands Manual LKBIB(1)
NAME
lkbib - search bibliographic databases
SYNOPSIS
lkbib [ -v ] [ -ifields ] [ -pfilename ] [ -tn ] key...
It is possible to have whitespace between a command line option and its parameter.
DESCRIPTION
lkbib searches bibliographic databases for references that contain the keys key... and prints any references found on the standard output.
lkbib will search any databases given by -p options, and then a default database. The default database is taken from the REFER environment
variable if it is set, otherwise it is /usr/dict/papers/Ind. For each database filename to be searched, if an index filename.i created by
indxbib(1) exists, then it will be searched instead; each index can cover multiple databases.
OPTIONS
-v Print the version number.
-pfilename
Search filename. Multiple -p options can be used.
-istring
When searching files for which no index exists, ignore the contents of fields whose names are in string.
-tn Only require the first n characters of keys to be given. Initially n is 6.
ENVIRONMENT
REFER Default database.
FILES
/usr/dict/papers/Ind Default database to be used if the REFER environment variable is not set.
filename.i Index files.
SEE ALSO
refer(1), lookbib(1), indxbib(1)
Groff Version 1.22.2 7 February 2013 LKBIB(1)