10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
#!/bin/bash
a=(*.pdf)
punct=((~`!@#$%^&*()_-+=|\{};':",./<>?))
for (( i =0; i < ${#a}; i++ ))
do
sed -ri 's/$punct//g' ${a}
done
I cannot use the above code, can you help me in removing all punctuation marks from file name except file extension. The idea is that once all... (9 Replies)
Discussion started by: ambijat
9 Replies
2. Shell Programming and Scripting
Hi All,
I am trying to replace a string in a oracle LDT file file extension .ldt.
I am using the following command:
sed "s/Test Number Viewer/Test Number 1/g" TEST_LIEN_FORM.ldt > TEST_LIEN_FORM.ldt.tmp
mv TEST_LIEN_FORM.ldt.tmp TEST_LIEN_FORM.ldt
But after the command, the file... (2 Replies)
Discussion started by: veena484
2 Replies
3. Shell Programming and Scripting
I have the following string:
31-01-2012, 09:42:37;OK;94727132638;"Mozilla/5.0 (Linux; U; Android 2.2.1)";3G;WAP;I need a script which is counting the occurrence of semicolons ( ; ) but exclude the ones from the quotation marks.
In the string given as example there are 8 semicolons but the script... (3 Replies)
Discussion started by: calinlicj
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have been having problem with pine for the past few weeks. I use email clinet Thunderbird to view my emails. Every time I open the thunderbird, all my emails were marked as unread. So, I logged into our email server to see what's wrong. even when I opened pine, all messages are labeled as... (0 Replies)
Discussion started by: veepine
0 Replies
5. Solaris
I have a netscape 4.79 browser for our GUI which connects to a Solaris5.8 box. During peek hours, we see question marks appearing in the screen instead of the text we enter. This results in query failure. This problem does not happen always, and is quite irritating because, we have to close the... (6 Replies)
Discussion started by: vanz
6 Replies
6. Shell Programming and Scripting
Hi Experts,
I have written a php script that calls several smaller bash shell scripts throughout it's loop process. Users run this script to achieve a task that this script has automated. However this script depending upon the amount of input variables could take some time to run. It may be a... (5 Replies)
Discussion started by: jaysunn
5 Replies
7. UNIX for Dummies Questions & Answers
I have a file like this :
name phone id sub marks
abc 2345 45 mat 90
bgt 6573 54 eng 89
... .... .. ... ..
... .... .. ... ..
Now i need to take in name and phone as input and then print sub and marks out, can u give me a sample code for this.
P.S. If there are two of with same... (2 Replies)
Discussion started by: SasankaBITS
2 Replies
8. Shell Programming and Scripting
i have a file like this
aaaa bbbb cccc
aaa aaaa
aa cccccccccccccccc
aaaaaaa aaaa aaaa
i want to enclose this lines with double quotation:
"aaaa bbbb cccc"
"aaa aaaa"
"aa cccccccccccccccc"
"aaaaaaa aaaa aaaa"
any idea? (preferably without using sed)
thanks in advance... (3 Replies)
Discussion started by: gfhgfnhhn
3 Replies
9. Shell Programming and Scripting
Folks;
on a unix server I have a mapping file which holds a list mountpoints of all databases and their mountpoints. tab delimited or colon deliminted..I needed to copy the datafiles from the pristine mountpoints to test's mountpoints in this case. I needed to do this by passing sid name using... (18 Replies)
Discussion started by: jigarlakhani
18 Replies
10. UNIX for Dummies Questions & Answers
I typed the following commands:
176 lab2-37:~> ed newb.txt
74
1,6p
Hello
Hello World.
I need some sentences to edit.
add the script
OK Fn
2,4c
.
1,3p
Hello
add the script
OK Fn
q
? (4 Replies)
Discussion started by: endeavour1985
4 Replies