10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have script which work 70% of the desired task , the output from script.sh is following , however the desired output I require is following .
Any piece of suggestion would be great..
thanks in advance,
emily
#!/bin/bash ... (8 Replies)
Discussion started by: emily
8 Replies
2. Shell Programming and Scripting
Dear Experts.
I need to add/modify the entries in the DNS server and this has to be achieved using shell script and below is the requirement, could you please let me know if a shell script can be written for this task?
1. Log in to primary DNS server
2. Check /etc/named.conf if zone is... (4 Replies)
Discussion started by: VKIRUPHAKARAN
4 Replies
3. Shell Programming and Scripting
Hello all,
I have a Kconfig file that looks like something below ...
================================
menu "Application type"
config GUI_TYPE_STANDARD
bool "Standard Application"
source "cfg/config/std.in"
source... (12 Replies)
Discussion started by: anand.shah
12 Replies
4. Shell Programming and Scripting
#/bin/sh
echo "enter the user name"
read $username
echo "Enter new home directory"
read $newhd
usermod -d $newhd $username ;;
error while executing :
enter the user name
Rev
Enter new home directory:
/home/58745
usermod: option requires an argument -- 'd'
Try `usermod --help' or... (2 Replies)
Discussion started by: Revanth547
2 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I really wan't to know that how to edit a shell script with out using an editor..
Is there any command? (4 Replies)
Discussion started by: buddhi
4 Replies
6. Shell Programming and Scripting
Hi,
I want to convert a file that looks like this
>joe
XXXXXXXXXXXXXXXXXXX
>man
BBBBBBBBBBBBBBBBBBBBBSSSSSSSS
to something that looks like this (where the spacing is tab seperated)
joe XXXXXXXXXXXXXXXXXXX
man BBBBBBBBBBBBBBBBBBBBBSSSSSSSS
I am able to do the reverse but the other... (3 Replies)
Discussion started by: kylle345
3 Replies
7. Shell Programming and Scripting
Hi,
I am having trouble modifying this line. It is because there is a space that I dont know how to deal with.
So the file looks like this
>YM4911-Contig4
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>YM4915-Contig5
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
There are two spaces between contig#... (6 Replies)
Discussion started by: phil_heath
6 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have a file that looks something like this (2 columns 4 rows):
eeeeeeeeeeeeeeeeeeeeeeeeeeeee -45
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr -24
ttttttttttttttttttttttttttttttttttttttttttt -29
uuuuuuuuuuuuuuuuuuuuuuuuuuu -23
How do I get it to look like this:
-45... (3 Replies)
Discussion started by: phil_heath
3 Replies
9. Shell Programming and Scripting
Hi all,
I have some script that creates a temp csv file. What I need to do is do some search and replace and modify the file from my shell script. I know the commands to open the file and then apply the reg ex but wasnt sure how I could do this from a script and modify the file?
Any help... (2 Replies)
Discussion started by: not4google
2 Replies
10. UNIX for Dummies Questions & Answers
Just want to know a few conversion tricks.
in Borne Shell, I have the line:
if test -s testmap
then
...
fi
## testmap is a filename and I wanna test whether it exists
## then do whatever
How can I convert that to C Shell?
I've tried:
if (test -s testmap) then
...
endif
but it... (3 Replies)
Discussion started by: zenkisoft
3 Replies