Sponsored Content
Top Forums Shell Programming and Scripting delete a single space in a line Post 302253221 by danmero on Friday 31st of October 2008 08:01:56 AM
Old 10-31-2008
man sed
Code:
echo 'TL1330000000800 000DE9248737900 08000TS0231DE92 87379AMEX0000.T N 0080000000 00000.' | sed 's. ..'
TL1330000000800000DE9248737900 08000TS0231DE92 87379AMEX0000.T N 0080000000 00000.

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Space free on tape /delete a single file on tape

Hi, I' using a sun solaris server, I would like to known if there is the possibility to control how many space is free on a tape and how I can delete a single file on a tape. Thanks DOMENICO (3 Replies)
Discussion started by: Minguccio75
3 Replies

2. Shell Programming and Scripting

delete blank space in begining of line

Hi All, below is my data file file.txt $$0 ServerA LAN1 AAA IT01 04/30/2008 09:16:26 $$0 ServerB LAN1 AAA IT02 04/30/2008 09:16:26 here $ is a blank space how to delete first 2 blank spaces in a file. (4 Replies)
Discussion started by: karthikn7974
4 Replies

3. Shell Programming and Scripting

replace space or spaces in a line of a file with a single :

I am searching while I await a response to this so if it has been asked already I apologize. I have a file with lines in it that look like: bob johnson email@email.org I need it to look like: bob:johnson:email@email.org I am trying to use sed like this: sed -e 's/ /:/g' file >... (5 Replies)
Discussion started by: NewSolarisAdmin
5 Replies

4. UNIX for Dummies Questions & Answers

single line command to delete a 6 months old file

i had this scenario where i need to delete a file that is 6 months old which is no longer needed. basically the filename is in the format of PCARDDAILYmmddyyyy.txt where the mm is the month, dd is the day, and yyyy is the year. e.g. PCARDDAILY05262009.txt PCARDDAILY05252009.txt ... (6 Replies)
Discussion started by: wtolentino
6 Replies

5. Shell Programming and Scripting

Stripping out more than a space from a line, but keep single space.

Hi all, Is there a way to perform the above, I am trying to strip out more than one space from a line, but keep the single space. See below output example. My Name is test test2 test3 test4 test5 My Name is test test2 test3 test4 test5 Please note that the lines would contain... (7 Replies)
Discussion started by: eo29
7 Replies

6. Shell Programming and Scripting

How to avoid the truncating of multiple spaces into a single space while reading a line from a file?

consider the small piece of code while read line do echo $line done < example content of example file sadasdasdasdsa erwerewrwr ergdgdfgf rgerg erwererwr the output is like sadasdasdasdsa erwerewrwr ergdgdfgf rgerg erwererwr the... (4 Replies)
Discussion started by: Kesavan
4 Replies

7. Shell Programming and Scripting

how to delete the line if the first letter is a single digit

Hi, I'm trying to acheive the following, I have a dat file in which i have several addresses, If the address starts with a single digit then i have to delete the line, if it starts with 2 or more digits then i have to keep the line Here is a sample of my file: 377 CARRER DE LA... (5 Replies)
Discussion started by: ramky79
5 Replies

8. Shell Programming and Scripting

Delete entire line starting with space

Folks, How do i delete an entire line that starts with blank space? Ex: I have a file like below. abc def (10/12) ghi _________ jkl _________ mno pqr stu (11/12) vwx I need the ouput like abc def (10/12) ghi pqr stu (11/12) vwx Thanks for your elp in advance !!!! (2 Replies)
Discussion started by: jayadanabalan
2 Replies

9. Shell Programming and Scripting

sed command to grep multiple pattern present in single line and delete that line

here is what i want to achieve.. i have a file with below contents cat fileName blah blah blah . .DROP this REJECT that . --sport 7800 -j REJECT --reject-with icmp-port-unreachable --dport 7800 -j REJECT --reject-with icmp-port-unreachable . . . more blah blah blah --dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies

10. Shell Programming and Scripting

Getting email output in single line with out space in email

I have tried below email method and i am getting every thing in single line . i have put echo to provide space, but it is not helping my code ( echo "From: $FROM" echo "To: $MAILTO" echo "CC: $CC" echo "Subject: $SUBJECT" echo "MIME-Version: 1.0" echo 'Content-Type: multipart/mixed;... (6 Replies)
Discussion started by: mirwasim
6 Replies
measurefs.reiser4(8)						reiser4progs manual					      measurefs.reiser4(8)

NAME
measurefs.reiser4 - the program for measuring reiser4 filesystem parameters (fragmentation, node packing, etc.). SYNOPSIS
measurefs.reiser4 [ options ] FILE DESCRIPTION
measurefs.reiser4 is reiser4 filesystem measure program. You can estimate reiser4 filesystem fragmentation, packingm etc. structures by using it. COMMON OPTIONS
-V, --version prints program version. -?, -h, --help prints program help. -y, --yes assumes an answer 'yes' to all questions. -f, --force forces measurefs to use whole disk, not block device or mounted partition. -c, --cache N sets tree cache node number to passed value. This affects very much behavior of libreiser4. It affects speed, tree allocation, etc. MEASUREMENT OPTIONS
-S, --tree-stat shows different tree statistics (node packing, internal nodes, leaves, etc) -T, --tree-frag measures total tree fragmentation. The result is fragmentation factor - value from 0.00000 (minimal fragmentation) to 1.00000 (maxi- mal one). Most probably, this factor may affect sequential read performance. -D, --data-frag measures average files fragmentation. This means, that fragmentation of each file in filesystem will be measured separately and results will be averaged. The result is fragmentation factor - value from 0.00000 (minimal fragmentation) to 1.00000 (maximal one). Note, that for the fresh filesystem (created not very long time ago) and even fully filled by data, this value will be pretty small. -F, --file-frag FILE measures fragmentation of the specified file. The result is fragmentation factor - value from 0.00000 (minimal fragmentation) to 1.00000 (maximal one). Note, that fragmentation of a small file (depends of used tail policy), which consists of tail items, is not very reliable value. That is because, they is always afoot due to balancing. Examples: measurefs.reiser4 -F /usr/bin /dev/hda2 measurefs.reiser4 -F /bin/bash /dev/hda2 -E, --show-file show file fragmentation for each file if --data-frag is specified. PLUGIN OPTIONS
-p, --print-profile prints the plugin profile. This is the set of default plugins used for all parts of a filesystem -- format, nodes, files, directo- ries, hashes, etc. If --override is specified, then prints modified plugins. -l, --print-plugins prints all plugins libreiser4 know about. -o, --override TYPE=PLUGIN, ... overrides the default plugin of the type "TYPE" by the plugin "PLUGIN" in the plugin profile. Examples: measurefs.reiser4 -o nodeptr=nodeptr41,hash=rupasov_hash /dev/hda2 REPORTING BUGS
Report bugs to <reiserfs-devel@vger.kernel.org> SEE ALSO
debugfs.reiser4(8), mkfs.reiser4(8), fsck.reiser4(8) AUTHOR
This manual page was written by Yury Umanets <umka@namesys.com> reiser4progs 28 Apr, 2003 measurefs.reiser4(8)
All times are GMT -4. The time now is 05:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy