10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi All ,
I am having an input file like this
Input file
r s
e y
Pin Numbers s n
eppppppppppppppppppc
... (3 Replies)
Discussion started by: kshitij
3 Replies
2. Shell Programming and Scripting
Hello,
I have some problem in inserting the space for the pairs of columns.
I have the input file :
I used this code below in replacing it using space in specific column (replace space in each two columns)
sed -e "s/,/ /2" -e "s/,/ /3" inputfile
Output showed :
However, I have many... (3 Replies)
Discussion started by: awil
3 Replies
3. Shell Programming and Scripting
Hello people,
I am having problem to sort, sed and zero padding of column in csv file.
7th column only.
Input of csv file:
1,2,3,4,5,6,4/1/2010 12:00 AM,8
1,2,3,4,5,6,3/11/2010 9:39 AM,8
1,2,3,4,5,6,5/12/2011 3:43 PM,8
1,2,3,4,5,6,12/20/2009 7:23 PM,8
Output:... (5 Replies)
Discussion started by: sean1357
5 Replies
4. Shell Programming and Scripting
HI
Input A
R04 tion=1 Li 51599
R08 tiea=1 Li 51995
R11 ocatea=1 Li 51992
R12 nArea=1 Li ... (2 Replies)
Discussion started by: asavaliya
2 Replies
5. Shell Programming and Scripting
Hello, i am trying to pad a column
A1
A2
A10
B2
B8
B12
to look like
A01
A02
A10
B02
B08
B12
using awk (6 Replies)
Discussion started by: mykey242
6 Replies
6. UNIX for Dummies Questions & Answers
Dear Users,
How do we pad with white space of particular length between two variables.
For Example:
Suppose i define the variables as follows:
a='toyota'
b='camry'
c='honda'
d='accord'
e=`echo "$a"'\n'"$b"`
f=`echo "$c"'\n'"$d"`
If i do an echo on variables e and f i get :... (1 Reply)
Discussion started by: sandeep_1105
1 Replies
7. AIX
Is it possible to give spaces using unix commands at a particular column?
eg:
123 56 89(input)
123 56 89(output) (4 Replies)
Discussion started by: rollthecoin
4 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
I need to create a header record of width 121 charecter with below fields,
position 001-001 - 0
position 002-15 - filled with space
position 016-020 - date value
position 021-121 - filled with space
Iam using the below code:
echo 0"14 spaces"$date"100 spaces" >> output.txt
... (3 Replies)
Discussion started by: Lokesha
3 Replies
9. Shell Programming and Scripting
I am having some issues with a script taking in column #5 which has a space and splitting it into another line. I don't want this but I can not figure out why its doing this. Any help is appreciated.
Here is my input file (comma delimited):
... (4 Replies)
Discussion started by: n3al10
4 Replies
10. UNIX for Dummies Questions & Answers
Hi,
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
6 Replies