10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
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. Shell Programming and Scripting
Could you please help me with the below question?
I have a file with the following properties
1) File Delimiter is ;
2) Text columns are within double quotes
3) Numeric columns will not have double quotes
4) File has total 6 columns
Please see a sample record from file
... (3 Replies)
Discussion started by: sam99
3. Shell Programming and Scripting
I wanted to create an automated script that will output a create table statement in unix. Below is the input and the desired output:
desc... (5 Replies)
Discussion started by: reignangel2003
4. Shell Programming and Scripting
I have a script which I need to change. I want to add a semicolon at the end of each line where the line starts with "grant"
grant select on TABL1 to USER1
grant select on TABL1 to USER2should become
grant select on TABL1 to... (3 Replies)
Discussion started by: pparthiv
5. UNIX for Dummies Questions & Answers
Hello, I was wondering how I can move this:
thanks for your help. (1 Reply)
Discussion started by: blakers
6. Shell Programming and Scripting
I have a file that is formatted in this way.
I want to replace the value just before the 4th semicolon to empty string, regardless the value, such that it looks... (3 Replies)
Discussion started by: alienated
7. UNIX for Dummies Questions & Answers
I can use the following command to insert a ' at the beginning of each line
sed "s/^/'/g" test.txt > test1.txt
However, I'm unable to use the following to insert a ' at the end of each line in this way
sed "s/$/'/g" test.txt > test1.txt
Any... (3 Replies)
Discussion started by: karthiknaidu
8. UNIX for Dummies Questions & Answers
How to add control characters at the end of each line in a file?
Can anyone help me with this?
Shobana (2 Replies)
Discussion started by: Shobana_s
9. Shell Programming and Scripting
I am using the below script to enter the URL at the end of file:
echo "Enter the URL that should point to the particular microsite"
sed "$a $url" redirects.virgin-atlantic.com.conf > temp
But am getting the below error:
./script.sh:... (7 Replies)
Discussion started by: Shazin
10. Shell Programming and Scripting
Consider there is a file containing 200 lines. please let me know which command is to be used to put a semicolon at the end of each line. if no single command is there then how it can be achieved. (1 Reply)
Discussion started by: surjyap