10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
Hi,
How to remove blank spaces using vi (I am using AIX)?
#cat siva.txt
AAA BBB
CCC DDD
EEE FFF
Need to remove space between 2 columns.
Regards,
Siva (7 Replies)
Discussion started by: ksgnathan
7 Replies
3. Shell Programming and Scripting
I have a file say ADCD which is like following-->
Please consider 'z' as space
#cat ADCD
<!--Yzzz|z-->
<!--Nzzzzz-->
Now I want to store the content of this file to a variable say VAR like this-->
#VAR=`cat ADCD`
#echo $VAR
<!--Yz|z--> <!--Nz-->
Now I don' t want the variable... (2 Replies)
Discussion started by: muchyog
2 Replies
4. UNIX for Dummies Questions & Answers
hi everyone,
i have a problem in unix script , i need to remove line that has blank , not blank line .
example: mahm,,jdggkhsd,ghskj,,fshjkl
can anyone help? (4 Replies)
Discussion started by: Reham.Donia
4 Replies
5. UNIX for Dummies Questions & Answers
dear all,
i have a question.
i have a data which looks like below
rs123 AATTTTTGGGGGGCC...
rs456 TTTTTTCCCCCCCCC...
rs5767 TTTTTTTGGGGGGCC...
rs89776 GGGGCCCCCCCCC...
WHAT I WANT is adding blank space as below:
rs123 AA TT TT TG GG GG GC ...
rs456 TT TT TT CC CC CC CC ...
rs5767... (3 Replies)
Discussion started by: forevertl
3 Replies
6. Shell Programming and Scripting
Hi,
Consider a file named "testfile"
The contents of file are as below
first line added for test
second line added for test
third line added for test
fourth line added for test
fifth line added for test (5 Replies)
Discussion started by: anil8103
5 Replies
7. Shell Programming and Scripting
Hello,
I am using this to get only directories :
ls -l | grep '^d'and here is the result :
drwx------ 13 so_nic sonic 13 Nov 4 13:03 GLARY
drwx------ 3 so_nic sonic 3 May 6 2010 PSY2R
drwx------ 15 so_nic sonic 15 Oct 14 08:47 PSYR1
But I only need to keep this... (7 Replies)
Discussion started by: Aswex
7 Replies
8. Shell Programming and Scripting
I write a script with register and login user.
So, i encrypt password with
encryptedpass=`perl -e "print crypt("${mypass}",salt)"`
if password do not contain blank space, it work
but if password have blank space, it cause error in that line
the error is:
syntax error at -e .....
Anyone... (3 Replies)
Discussion started by: WuZun
3 Replies
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
Hi,
I would like to add blank space for fixed length(50) if length of string <30.
Scenario:
File Size
AAA.CSV 123
BB.CSV 134
Expected:
File Size
AAA.CSV 123
BB.CSV 134
I want append blank space until 30 character.
Thanks and Regards,
HAA (1 Reply)
Discussion started by: HAA
1 Replies