Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Hardcoding & Record counts in a file Post 302549221 by yazu on Monday 22nd of August 2011 08:55:43 AM
Old 08-22-2011
No way. You have to make a new copy of the file explicitly or implicitly (perl or GNU sed with -i option).

Last edited by yazu; 08-22-2011 at 10:01 AM..
 

10 More Discussions You Might Find Interesting

1. Solaris

file size counts??

Hello experts, I do - $ ls -lhtr logs2007* Is it possible that i can get the results of- totals size in MB/KB for ALL "logs2007*" note: in the same directory I have "logs2006*" & "logs2007*" files. (4 Replies)
Discussion started by: thepurple
4 Replies

2. UNIX for Dummies Questions & Answers

how to get a file name & record count of csv file

HI , I am new to shell scripting , I have a requirement that I send a file for data quality ( original.csv) & i will be getting 4 files daily into a particular directory in return with cleansed data . the files may be clean.csv, unclean.csv , ... (2 Replies)
Discussion started by: sirik
2 Replies

3. Shell Programming and Scripting

Sending e-mail of record counts in 3 or more files

I am trying to load data into 3 tables simultaneously (which is working fine). Then when loaded, it should count the total number of records in all the 3 input files and send an e-mail to the user. The script is working fine, as far as loading all the 3 input files into the database tables, but... (3 Replies)
Discussion started by: msrahman
3 Replies

4. Shell Programming and Scripting

New file should store all the 7 existing filenames and their record counts and ftp th

Hi, I need help regarding below concern. There is a script and it has 7 existing files(in a path say,. usr/appl/temp/file1.txt) and I need to create one new blank file say “file_count.txt” in the same script itself. Then the new file <file_count.txt> should store all the 7 filenames and... (1 Reply)
Discussion started by: pr293
1 Replies

5. Shell Programming and Scripting

Read record from the text file & assign those values to variables in the script

For eg: I have sample.txt file with 4 rows of record like: user1|password1 user2|password2 user3|password3 user4|password4 The username and password is sepsrated by '|' I want to get the 1st row value from the file and assign it to two different variables(username and password) in my... (1 Reply)
Discussion started by: priya001
1 Replies

6. Shell Programming and Scripting

Read record from the text file contain multiple separated values & assign those values to variables

I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables. I need to read this file which is an input to my script Config.txt file name, first path, second... (7 Replies)
Discussion started by: ketanraut
7 Replies

7. Shell Programming and Scripting

Extract timestamp from first record in xml file and it checks if not it will replace first record

I have test.xml <emp><id>101</id><name>AAA</name><date>06/06/14 1811</date></emp> <Join><id>101</id><city>london</city><date>06/06/14 2011</date></join> <Join><id>101</id><city>new york</city><date>06/06/14 1811</date></join> <Join><id>101</id><city>sydney</city><date>06/06/14... (2 Replies)
Discussion started by: vsraju
2 Replies

8. Shell Programming and Scripting

Counts not matching in file

I can not figure out why there are 56,548 unique entries in test.bed. However, perl and awk see only 56,543 and that # is what my analysis see's as well. What happened to the 5 missing? Thank you :). The file is attached as well. cmccabe@DTV-A5211QLM:~/Desktop/NGS/bed/bedtools$wc -l... (2 Replies)
Discussion started by: cmccabe
2 Replies

9. Shell Programming and Scripting

CSV File:Filter duplicate records from column1 & another column having unique record

Hi Experts, I have csv file with 30, 40 columns Pasting just 2 column for problem description. Need to print error if below combination is not present in file check for column-1 (DocumentNumber) and filter columns where value in DocumentNumber field is same. For all such rows, the field... (7 Replies)
Discussion started by: as7951
7 Replies

10. Shell Programming and Scripting

Remove duplicated records and update last line record counts

Hi Gurus, I need to remove duplicate line in file and update TRAILER (last line) record count. the file is comma delimited, field 2 is key to identify duplicated record. I can use below command to remove duplicated. but don't know how to replace last line 2nd field to new count. awk -F","... (11 Replies)
Discussion started by: green_k
11 Replies
DhMakePerl::Command::make(3pm)				User Contributed Perl Documentation			    DhMakePerl::Command::make(3pm)

NAME
DhMakePerl::Command::make - implementation of 'dh-make-perl make' SYNOPSIS
TO BE FILLED use DhMakePerl; my $foo = DhMakePerl->new(); ... METHODS
warning string ... In verbose mode, prints supplied arguments on STDERR, prepended with "W: " and suffixed with a new line. Does nothing in non-verbose mode. AUTHOR
dh-make-perl was created by Paolo Molaro. It is currently maintained by Gunnar Wolf and others, under the umbrella of the Debian Perl Group <debian-perl@lists.debian.org> BUGS
Please report any bugs or feature requests to the Debian Bug Tracking System (<http://bugs.debian.org/>, use dh-make-perl as package name) or to the debian-perl@lists.debian.org mailing list. SUPPORT
You can find documentation for this module with the perldoc command. perldoc DhMakePerl You can also look for information at: o Debian Bugtracking System http://bugs.debian.org/dh-make-perl <http://bugs.debian.org/dh-make-perl> COPYRIGHT &; LICENSE Copyright (C) 2000, 2001 Paolo Molaro <lupus@debian.org> Copyright (C) 2002, 2003, 2008 Ivan Kohler <ivan-debian@420.am> Copyright (C) 2003, 2004 Marc 'HE' Brockschmidt <he@debian.org> Copyright (C) 2005-2007 Gunnar Wolf <gwolf@debian.org> Copyright (C) 2006 Frank Lichtenheld <djpig@debian.org> Copyright (C) 2007-2010 Gregor Herrmann <gregoa@debian.org> Copyright (C) 2007,2008,2009,2010,2011 Damyan Ivanov <dmn@debian.org> Copyright (C) 2008, Roberto C. Sanchez <roberto@connexer.com> Copyright (C) 2009-2010, Salvatore Bonaccorso <carnil@debian.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. perl v5.14.2 2012-01-15 DhMakePerl::Command::make(3pm)
All times are GMT -4. The time now is 03:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy