Sponsored Content
Full Discussion: Blank Lines - End of file
Top Forums Shell Programming and Scripting Blank Lines - End of file Post 38305 by saabir on Friday 11th of July 2003 10:39:04 AM
Old 07-11-2003
MySQL

Nice one, thanks. Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Delete blank lines at the end of file

I am attempting to delete blank lines in my file and I've used this command: sed '/^$/d' $file > $file.fixed all this seems to do is copy the file and not delete the blank lines located at the end of the file. Any assistance would be greatly appreciated. (3 Replies)
Discussion started by: TL56
3 Replies

2. Shell Programming and Scripting

how to add blank spaces at the end of every record in a file.

hi, Does anyone has any idea in adding few blank spaces at the end of every record in a file. Eg: file.txt Baby Boy Kim 1234 Baby Boy Vik 1334 Desired output:- output.txt Baby Boy Kim 1234 Baby Boy Vik 1334 I want to add 10 blank spaces at the end every record in file.txt (3 Replies)
Discussion started by: techmoris
3 Replies

3. Shell Programming and Scripting

deleting blank lines ONLY at the end of the file

Hi Guys, I have a quetion which was already discussed in the forum, but for some reason all approches suggested fail for me. I have a file which have blank lines at the body of the text as well as at the end. I need to delete ONLY blank lines at the end. Unfortunatly the approach below does not... (5 Replies)
Discussion started by: aoussenko
5 Replies

4. Shell Programming and Scripting

Delete blank lines, if blank lines are more than one using shell

Hi, Consider a file named "testfile" The contents of file are as below first line added for test second line added for test third line added for test fourth line added for test fifth line added for test (5 Replies)
Discussion started by: anil8103
5 Replies

5. UNIX for Dummies Questions & Answers

Add blank line to end of file

Alright, so I was looking around a bit on the forum before posting and still don't really understand so I figured I'd post my own question. I am appending two files using cat file_1.txt >> file_2.txt The problem is that I need a blank line in between the two different text files and it does... (2 Replies)
Discussion started by: cgagnon
2 Replies

6. Shell Programming and Scripting

default blank line in end of file

Dear Experts, I have spent my full day looking for the solution..:wall:but could no resolved. Here it goes: I have a txt file say data.txt. The content is shown below: ************** datav1 datav2 datav3 *********** I have shown the blank line knowingly. If I open this txt file using... (12 Replies)
Discussion started by: nrjrasaxena
12 Replies

7. Shell Programming and Scripting

Reform Lines in File without blank lines and spaces

Hello All, I have a file with data as below. Each line consists of 21 fields. I am not able to load them back to the database. 50733339,"834","834 ","005010X279A1","N","Y","007977163","0001 ",30,"2110D ","EB ","EB007 ","2 ","Conditional Required Data Element Miss ing... (3 Replies)
Discussion started by: Praveenkulkarni
3 Replies

8. UNIX for Advanced & Expert Users

Delete blank spaces and blank lines in a file

Hi Gurus, Somebody can say me how to delete blank spaces and blank lines in a file unix, please. Thank you for advanced. (10 Replies)
Discussion started by: systemoper
10 Replies

9. Shell Programming and Scripting

To check Blank Lines, Blank Records and Junk Characters in a File

Hi All Need Help I have a file with the below format (ABC.TXT) : ®¿¿ABCDHEJJSJJ|XCBJSKK01|M|7348974982790 HDFLJDKJSKJ|KJALKSD02|M|7378439274898 KJHSAJKHHJJ|LJDSAJKK03|F|9898982039999 (cont......) I need to write a script where it will check for : blank lines (between rows,before... (6 Replies)
Discussion started by: chatwithsaurav
6 Replies

10. UNIX for Beginners Questions & Answers

Inserting a blank line at the end of a .txt file?

Hi there, I am having this problem: a) I am uploading a txt file from windows (notepad) with some Gaussian 09 command lines; b) Gaussian needs in certain command files, that those files have a blank line at the end of the file! c) I open the command file with vi and no blank line at the of... (2 Replies)
Discussion started by: luismga
2 Replies
PRELOAD(8)						  System Administration Utilities						PRELOAD(8)

NAME
preload - Adaptive readahead daemon SYNOPSIS
preload [OPTION]... DESCRIPTION
preload is an adaptive readahead daemon that prefetches files mapped by applications from the disk to reduce application startup time. -h, --help Display command line parameters and their default values, and exit. -v, --version Display version information and exit. -c, --conffile Set configuration file. Empty string means no conf file. (default is /etc/preload.conf) -s, --statefile Set state file to load/save. Empty string means no state. (default is /var/lib/preload/preload.state) -l, --logfile Set log file. Empty string means to log to stderr. (default is /var/log/preload.log) -f, --foreground Run in foreground, do not daemonize. -n, --nice Nice level. (default is 15) -V, --verbose Set the verbosity level. Levels 0 to 10 are recognized. (default is 4) -d, --debug Debug mode: --logfile '' --foreground --verbose 9 SIGNALS
On receipt of a SIGHUP, the daemon will close and reopen its log file, and reread the configuratoin file. On receipt of a SIGUSR1, the daemon dumps the currently loaded configuration into the log file. On receipt of a SIGUSR2, the daemon saves its state into the state file. AUTHOR
Written by Behdad Esfahbod <behdad@gnu.org> REPORTING BUGS
Report bugs to <http://preload.sf.net/bug> COPYRIGHT
Copyright (C) 2005,2006,2007,2008 Behdad Esfahbod. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. preload 0.6.4 May 2012 PRELOAD(8)
All times are GMT -4. The time now is 03:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy