10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi there,
I am having this problem:
a) I am uploading a txt file from windows (notepad) with some Gaussian 09 command lines;
b) Gaussian needs in certain command files, that those files have a blank line at the end of the file!
c) I open the command file with vi and no blank line at the of... (2 Replies)
Discussion started by: luismga
2 Replies
2. 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
3. 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
4. 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
5. Shell Programming and Scripting
Hi,
I`m a total newbie, well my requirement is that i have 2 files
I want to identify which countries i do not currently have in db..
how can i use the grep or another command to find this file ..
i want to match all-countries.txt with countries-in-db.txt so the output is equal to... (11 Replies)
Discussion started by: beanbaby
11 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
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
8. 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
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