10-07-2009
Thanks a lot for the quick reply and the solution!!!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
can any help how to remove blank spaces in a string?
STR="GOOD BYE"
by removing blank spaces, the string should be GOOD,BYE
thanks in advance (2 Replies)
Discussion started by: spandu
2 Replies
2. UNIX for Dummies Questions & Answers
I have a file that has dates like this:
date FINAL_RESULT; 7
date FINAL_RESULT; 2
date FINAL_RESULT; 5
With this command: seira=`cut -f2 -d\; tes.txt` i take the date FINAL RESULTs and i store them on variable seira.then seira look like this: 6 3 8
I want to read seira and make a sum of all... (4 Replies)
Discussion started by: psalas
4 Replies
3. Shell Programming and Scripting
Hello All,
I am trying to remove all tabspaces and all blankspaces from my file using sed & awk, but not getting proper code. Please help me out.
My file is like this (<b> means one blank space, <t> means one tab space)-
$ cat file
NARESH<b><b><b>KUMAR<t><t>PRADHAN... (3 Replies)
Discussion started by: NARESH1302
3 Replies
4. Shell Programming and Scripting
Hello..
I have a text file. I want to remove all the blank spaces(except tab) from the file..
I tried using sed command as shown below
sed 's/ //g' file1
But the problem with the above command is that it also eliminates 'tab' which is between the columns..
For example if the contents... (7 Replies)
Discussion started by: abk07
7 Replies
5. Shell Programming and Scripting
Hi everyone..
I'm trying to eliminate multiple whitespaces from a file..
I must make use of shell script to eliminate whitespaces..
Take a look at the sample file
1 int main()
2 {
3 int a,b;
4 printf("Enter the values of a and b");
5 scanf("%d%d",&a,&b);
6 if(a>b) ... (6 Replies)
Discussion started by: abk07
6 Replies
6. Shell Programming and Scripting
Hi I'm trying to remove blank spaces in expressions and function calls..
Consider the following example
printf ("Hello");
a = a + b;
I'm trying to eliminate space in between the function name and the opening brace. And also eliminate space between operators and operands..
That is, I'm... (19 Replies)
Discussion started by: abk07
19 Replies
7. Shell Programming and Scripting
Hello, could you please help with this one. I have an input file like this:
123,4567,89000
123456789,9876543,12
and for the output I need strings to be with the fixed length, let's say 15, and if the string is -lt 15 to be populated with blanks at the end until it reach 15, like this:
123 ,4567... (1 Reply)
Discussion started by: apenkov
1 Replies
8. Shell Programming and Scripting
Our university has upgraded its version of a computational chemistry program that our group uses quite regularly. In the past we have been able to extract frequency spectra from log files that are generated. Since the upgrade, the viewing program errors out. I've been able to trace down the changes... (16 Replies)
Discussion started by: wsuchem
16 Replies
9. UNIX for Advanced & Expert Users
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
10. Shell Programming and Scripting
Hi Guru,
I need some advice on how to add blank spaces to the code, rather than me just adding <space-bar spaces> which does not work.
Current output of the code
File System Backed Up - ALL_LOCAL_DRIVES
Daily - Incremental Backup Schedule - 1 Month Retention
• 7pm - PRD... (2 Replies)
Discussion started by: Junes
2 Replies
lifinit(1) General Commands Manual lifinit(1)
NAME
lifinit - write LIF volume header on file
SYNOPSIS
nnn] nnn] string] nnn] nnn] nnn] file
DESCRIPTION
writes a LIF volume header on a volume or file.
Options
recognizes the following options and command-line arguments which can appear in any order:
Sets volume size to
nnn bytes. If nnn is not a multiple of 256, it is rounded down to the next such multiple.
Sets directory size to
nnn file entries. If nnn is not an integer multiple of 8, it is rounded up to next such multiple.
Sets the volume name to be
string. If the option is not specified, the volume name is set to the last component of the path name specified by file.
A legal LIF volume name is 6 characters long and is limited to uppercase letters (A-Z), digits (0-9) and the underscore
character (_). The first character (if any) must be a letter. The utility automatically performs translation to create
legal LIF volume names. Therefore, all lowercase letters are converted to uppercase, and all other characters except
numeric and underscore are replaced with a capital letter If the volume name does not start with a letter, the volume
name is preceded by a capital letter The volume name is also right-padded with spaces or truncated as needed to be six
characters long. If is used with no string, the default volume name is set to 6 spaces.
set the initial system load (ISL) start address to
nnn in the volume label. This is useful when building boot media for Series 700/800 systems.
specifies the length in bytes of the ISL code in the LIF volume.
set the ISL entry point to
nnn bytes from the beginning of the ISL. For example, specifying means that the ISL entry point is 3272 (decimal) bytes
from the beginning of the ISL object module.
forces the directory start location to be the nearest multiple of
nnn x 1024 bytes from the beginning of the volume. This is necessary for booting Series 700/800 systems from LIF media.
If file does not exist, a regular HP-UX disk file is created and initialized.
The default values for volume size are 256 kilobytes for regular files, and the actual capacity of the device for device files.
The default directory size is a function of the volume size. A percentage of the volume size is allocated to the volume directory as fol-
lows:
|
Volume Size | Directory Size
------------+----------------
< 2MB | ~1.3%
> 2MB | ~0.5%
Each directory entry occupies 32 bytes of storage. The actual directory space is subject to the rounding rules stated above.
RETURN VALUE
returns exit code 0 if the volume is initialized successfully. Otherwise it prints a diagnostic message and returns nonzero.
EXAMPLES
Initialize file to be a LIF volume containing 500000 bytes with 10 directory file entries:
Initialize device as a LIF volume using default initialization conditions (device must not be a mounted file system device):
WARNINGS
To prevent media corruption, do not terminate lifinit once it has started executing.
AUTHOR
was developed by HP.
SEE ALSO
lifcp(1), lifls(1), lifrename(1), lifrm(1), lif(4).
lifinit(1)