09-18-2007
Hi.
I tried the awk code from blowtorch and it worked for me (I placed it in a shell script and adjusted the filenames and data with the ones provided).
I suggest you post the exact code you ran and the exact error message you received ... cheers, drl
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi All,
I want to read some number from a file into a variable in C shell as follows.
I know that the syntax in ksh is
read x < file name
I dont know what's the equivalent for this in C Shell
Can some one pls. help me out?
Thanks in advance
raju (2 Replies)
Discussion started by: rajugp1
2 Replies
2. Shell Programming and Scripting
Hi All,
Please help me in creating files through K-shell scripts.
I am having one file in this format.
OWNER.TABLE_NAME
OWNER.TABLE_NAME1
OWNER1.TABLE_NAME
OWNER1.TABLE_NAME1
I want to read the above file and create new file through k shell script.
The new file should looks like this.... (4 Replies)
Discussion started by: bsrajirs
4 Replies
3. Shell Programming and Scripting
This is shell programming assignment.
It needs to create a file called .std_dbrc contains
STD_DBROOT=${HOME}/class/2031/Assgn3/STD_DB
(which includes all my simple database files)
and I am gonna use this .std_dbrc in my script file (read the data from the database files)
like this: .... (3 Replies)
Discussion started by: ccwq
3 Replies
4. Shell Programming and Scripting
hi,
I am a begginer in unix and i want to know how to open a file and read it and separate the numbers & words and storing it in separate files, Using shell scripting.
Please help me out for this.
Regards
S.Kamakshi (2 Replies)
Discussion started by: kamakshi s
2 Replies
5. Shell Programming and Scripting
Need shell script to read two file at same time and print output in single file
Example I have two files 1) file1.txt 2) file2.txt
File1.txt contains
Aaa
Bbb
Ccc
Ddd
Eee
Fff
File2.txt contains
Zzz
Yyy
Xxx (10 Replies)
Discussion started by: sreedhargouda
10 Replies
6. Shell Programming and Scripting
Hi,
I have a file with few values in it. I need script help to read file line by line and check:
1/if it's a file (with extension eg .java .css .jar etc )
or
2/if it's a file without extension and treat it as a directory and then check if the directory exists in working copy else create one... (6 Replies)
Discussion started by: iaav
6 Replies
7. UNIX for Dummies Questions & Answers
sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies
8. Shell Programming and Scripting
Hello.
I want to to backup some "default:" values from a file do some other job and after restore that "default:" values back.
The problem is that the source and destination file has a lot of default: strings in it but with different values...
So..
Here is an example:
A part of my source... (6 Replies)
Discussion started by: ausdim
6 Replies
9. Shell Programming and Scripting
I have input data looks like this which is a part of a csv file
7,1265,76548,"0102:04"
8,1266,76545,"0112:04"
I need to make the output data should look like this and the output data will be part of text file:
7|1265000 |7654899 |A|
8|12660000 |76545999 |B|
The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies
10. UNIX for Beginners Questions & Answers
Like to have shell script to Read the given file contents into a merged one file with header of path+file name followed by file contents into a single output file.
While reading and merging the file contents into a single file, Like to keep the format of the source file.
... (4 Replies)
Discussion started by: Siva SQL
4 Replies
LEARN ABOUT DEBIAN
fssync-debug_vgcquery
FSSYNC-DEBUG_VGCQUERY(8) AFS Command Reference FSSYNC-DEBUG_VGCQUERY(8)
NAME
fssync-debug_vgcquery - Displays VG cache contents (FSYNC_VG_QUERY opcode)
SYNOPSIS
fssync-debug vgcquery
-partition <exact partition name>
-volumeid <volume ID>
[-reason <sync protocol reason code>]
[-programtype <program type code>]
[-help]
fssync-debug vgcq
-pa <exact partition name>
-v <volume ID>
[-r <sync protocol reason code>]
[-pr <program type code>]
[-h]
fssync-debug vgcqry
-pa <exact partition name>
-v <volume ID>
[-r <sync protocol reason code>]
[-pr <program type code>]
[-h]
DESCRIPTION
The fssync-debug vgcquery command displays an entry from the volume group cache (VGC), and possibly starts a VGC scan if appropriate.
OPTIONS
-partition <exact partition name>
Specifies the exact partition name (e.g. /vicepa). Abbreviations are not permitted.
-volumeid <volume ID>
Specifies the numeric volume ID. Volume names are not permitted.
-reason <sync protocol reason code>
Specifies numeric sync protocol reason code. Available codes are listed in OpenAFS source file src/vol/fssync_inline.h. For
SYNC_REASON_NONE, use -reason 0.
-programtype <program type code>
Specifies program type code. Permitted values are fileServer, volumeUtility, salvager, salvageServer, volumeServer and volumeSalvager.
PRIVILEGE REQUIRED
The issuer must have write access to the file server. Usually, this means that the issuer must be the local superuser "root" on the file
server machine.
SEE ALSO
fssync-debug_vgcadd(8), fssync-debug_vgcdel(8), fssync-debug_vgcscan(8), fssync-debug_vgcscanall(8),
COPYRIGHT
Copyright 2010 Sine Nomine Associates
This documentation is covered by the IBM Public License Version 1.0. This man page was written by Andrew Deason and Davor Ocelic for
OpenAFS.
OpenAFS 2012-03-26 FSSYNC-DEBUG_VGCQUERY(8)