Forum: Shell Scripting Oct 1st, 2008 |
| Replies: 5 Views: 2,162 Here's the solution..
awk -F"~" '{printf("%-15s%s~%s\n", $1,$2,$3)}' inputfile
ID1 Name1~Place1
ID2 Name2~Place2
ID3 Name3~Place3
Thanks guys for your help.. |
Forum: Shell Scripting Oct 1st, 2008 |
| Replies: 5 Views: 2,162 i am using vi editor,....and want to send the file genrated as a mail...and want it to be in proper format |
Forum: Shell Scripting Oct 1st, 2008 |
| Replies: 5 Views: 2,162 mY QUERY IS RELATED TO..
How can i set coloumn width in unix...
Like for ex. i am having a file, whose content is like
------------------------------
aba bba baba
abba baba ... |
Forum: Shell Scripting Jan 18th, 2008 |
| Replies: 5 Views: 1,142 output:
$ tr "/v23.9" "/ABCDE" < test.txt
ABC
-p /home/user/a/b/ABCDE/library -l /home/user/a/b/ABC/ABCDE testDexe
DEF
-r ABCDE /c/d/f -p /home/user/a/b/ABCDE/library -l... |
Forum: Shell Scripting Jan 18th, 2008 |
| Replies: 5 Views: 1,142 yup man i did tried this...but not working.. |
Forum: Shell Scripting Jan 18th, 2008 |
| Replies: 5 Views: 1,142 Hi all,
The scenario is like this: i have one file which contains some particular paths, now my aim is to make changes in this file so that i can change the path in that file.. eg:
file1.txt: ... |
Forum: Shell Scripting Nov 27th, 2007 |
| Replies: 1 Views: 857 Hi All,
My query is related to assinging a variable with value which is there in the env.
Suppose from my c++ code i am doing putenv("A=abc"), now wat i want to do is to get this value of A in... |