Sponsored Content
Top Forums Shell Programming and Scripting update file contents using shell script Post 302244879 by drams on Wednesday 8th of October 2008 11:41:35 PM
Old 10-09-2008
Thanks for the reply madhan, but i am getting function cannot be parsed error.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to update the contents in a file conditionally?

Hi All, I have a data file which has two columns Location and the Count. The file looks like this India 1 US 0 UK 2 China 0 What I have to do is whenever I fails to login to Oracle then I have to add 1 to the count for that location. Whenever my script fails to login to Oracle for a... (5 Replies)
Discussion started by: rajus19
5 Replies

2. Shell Programming and Scripting

search for the contents in many file and print that file using shell script

hello have a file1 H87I Y788O T347U J23U and file2 J23U U887Y I99U T556U file3 I99O J99T F557J file4 N99I T666U R55Y file5 H87I T347U file6 H77U R556Y E44T file7 Y788O K98U H8I May be using script we can use file1 to search for all the files and have the output H87I file5... (3 Replies)
Discussion started by: cdfd123
3 Replies

3. Shell Programming and Scripting

Unix shell script to parse the contents of comma-separated file

Dear All, I have a comma-separated file. 1. The first line of the file(header) should have 4 commas(5 fields). 2. The last line of the file should have 1 comma(2 fields). Pls help me in checking this condition in a shell script. And the number of lines between the first line and last... (11 Replies)
Discussion started by: KrishnaSaran
11 Replies

4. Shell Programming and Scripting

Shell script for converting file contents into CSV

Hi, I am new in unix, I just want to replace some values from text file according to column numbers. Like, I am having a table as given below: val1 val2 val3 val4 val5 val6 val7 val8 val9 val10 val11 val12 val13 Now i want... (5 Replies)
Discussion started by: rish_max
5 Replies

5. Shell Programming and Scripting

Removing the entire file contents using unix shell script.

I need to remove the entire file contents in file using the shell script. Actually the grap -v command will create one more file and it occupy the space also. I need to remove the entire file contents without creating new file using the shell scripting. Please help me. (5 Replies)
Discussion started by: praka
5 Replies

6. Shell Programming and Scripting

shell script to compare file contents

Hello Has anyone got an example shell script that I can use to compare the contents of two files. The files should contain the same contents, eg. file1.txt apple pear grape file2.txt apple pear grape (2 Replies)
Discussion started by: deedaz
2 Replies

7. Shell Programming and Scripting

Modifying contents of the file in shell script

Hello all, I have a Kconfig file that looks like something below ... ================================ menu "Application type" config GUI_TYPE_STANDARD bool "Standard Application" source "cfg/config/std.in" source... (12 Replies)
Discussion started by: anand.shah
12 Replies

8. Shell Programming and Scripting

awk match to update contents of file

I am trying to match $1 in file1 with $2 in file2. If a match is found then $3 and $4 of file2 are copied to file1. Both files are tab-delimeted and I am getting a syntax error and would also like to update file1 in-place without creating a new file, but am not sure how. Thank you :). file1 ... (19 Replies)
Discussion started by: cmccabe
19 Replies

9. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

Shell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get... (22 Replies)
Discussion started by: pottic
22 Replies

10. UNIX for Beginners Questions & Answers

Shell Script to Read the given file contents into a merged one file

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
CCCC(1) 						      General Commands Manual							   CCCC(1)

NAME
cccc - C and C++ Code Counter, a software metrics tool SYNOPSIS
cccc [options] file1.c ... DESCRIPTION
CCCC analyses and reports measurements of source code in C, C++, and Java. It was developed to augment programmers' instinctive applica- tion of numeric rules of thumb about what constitutes high or low quality products with an automated analysis tool. CCCC processes the files listed on its command line. If the filenames include '-', read a list of files from standard input. This program is work in progress and is not well documented. Please be prepared to refer to the source code for the meaning of some options. OPTIONS
--help Generate this help message. --outdir=dname Directory for generated files (default=.cccc). --html_outfile=fname Name of primary HTML report generated (default=outdir/cccc.html). --db_infile=fname Preload internal database from named file (default=no initial content). --db_outfile=fname Save internal database to named file (default=outdir/cccc.db). --opt_infile=fname Load options from named file (default=use compiled-in option values, refer to cccc_opt.cc for option information). --opt_outfile=fname Save options to named file (default=outdir/cccc.opt). --lang=string Use language specified for files specified after this option. Languages supported are c, c++, ada, and java (default=use lan- guage/extension mapping controlled by options). --report_mask=hex Control report content (refer to ccccmain.cc for mask values). --debug_mask=hex Control debug output content (refer to ccccmain.cc for mask values). AUTHOR
CCCC was written by Tim Littlefair <tim_littlefair@hotmail.com>. This manual page was written by Colin Watson <cjwatson@debian.org> for the Debian system (but may be used by others). CCCC(1)
All times are GMT -4. The time now is 08:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy