9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have this csv file that I would like to sort on the 20th and 21st field. They are high lighted below. My challenge is that when I sort on those fields they are not in order as I would have liked. It seems like I have to pad those fields to the longest value in that fields data.
... (6 Replies)
Discussion started by: GroveTuckey
2. Shell Programming and Scripting
How do I a add space with each column .
Each column has fixed size
like 1 st column = 10
2nd column = 20
In each column data can be of variable length.So rest of the length should be space
Sue Admin (3 Replies)
Discussion started by: Chinky23
3. Shell Programming and Scripting
I would like to left pad with "0's" on first column say (width six)
I have a large file with the format:
1: ALFRED 84378 NY
8385: JAMES 88385 FL
323: SMITH 00850 TX
My output needs to be like:
000001: ALFRED 84378 NY
008385: JAMES 88385 FL
000323: SMITH... (10 Replies)
Discussion started by: sbasetty
4. UNIX for Dummies Questions & Answers
I have a file with records containing dates like:
SMPBR|DUP-DO NOT USE|NEW YORK||16105|BA5270715|2007-6-6|MWERNER|109||||JOHN||SMITH|MD|72211118||||||74559|21 WILMINGTON RD||D|2003-11-6|SL# MD CONTACT-LIZ RICHARDS|||0|Y|N||1411458|
How can I get the date fields in each of my records to be... (1 Reply)
Discussion started by: ChicagoBlues
5. UNIX for Dummies Questions & Answers
How do we pad with white space of particular length between two variables.
Suppose i define the variables as follows:
If i do an echo on variables e and f i get :... (1 Reply)
Discussion started by: sandeep_1105
Can someone explain what is byte padding?
What will be the size of this structure?
Thanks (6 Replies)
Discussion started by: naan
7. UNIX for Dummies Questions & Answers
How do I format the following?
I have a for loop that retrieves me the path and file name of a file. In column fashion I would like to add the time and another variable containing the file's size. This will result in all the time being under each other and all the file size's being under... (6 Replies)
Discussion started by: hugow
8. UNIX for Dummies Questions & Answers
Can anyone tell me how to pad zeroes on the left side to a numeric string in unix shell scripting
Your answer is very much appreciated
Vijay (2 Replies)
Discussion started by: vijaygopalsk
9. UNIX for Advanced & Expert Users
Structure padding & structure size are different on Compaq & HP UNIX. When structures are transfered via netfork from Compaq to HP will this be a problem? If yes, what can be the solution?
shilpa (2 Replies)
Discussion started by: informshilpa