10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
Hi everyone, i need to "grep" a file with a string with space blanks, like this:
grep "XXXX XX" file.txt
The problem, i need put the "XXXX XX" in a string variable. When the script executes the grep, do:
gresp XXXX XX file.txt
How can i solve this problem?
The... (5 Replies)
Discussion started by: Xedrox
5 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. Shell Programming and Scripting
TT0000013101257
|
JCJMMUJMMUB018 ... (0 Replies)
Discussion started by: sususa
0 Replies
5. 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
6. 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
7. Shell Programming and Scripting
Dear All-
Please suggest a single unix command which can append blank line in multiple files.
I need to achieve this using a single unix command and not a script
Please do advice
Regards,
Suresh (2 Replies)
Discussion started by: sureshg_sampat
2 Replies
8. Shell Programming and Scripting
Dear Masters,
Need your help for this small query.
I am trying to get all the strings that starts with a blank space as output.
Limitation is , it should be done only through AWK.
Input will be:
aa
_1bbb
c-ccc
ddd
eeeee
ff
Output should be:
_1bbb
c-ccc
eeee
ff (5 Replies)
Discussion started by: patric2326
5 Replies
9. 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
10. 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