10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi---Is there's way can write small shell script or perl script open "abc.txt" file and create new "new_abc.txt" file with format output below? Thanks
cat abc.txt
###########################Readme###############################
Contained with this README.TXT file are all of the
file... (7 Replies)
Discussion started by: dotran
7 Replies
2. Shell Programming and Scripting
Hi Guys,
i am trying to redirect a file wherein i need to change the extension of the file from .sh to .tmp, but getting an error
a=test.txt
sh test.txt > path/$(basename "$a" .sh).tmp
i need
test.tmp
---------- Post updated at 02:09 AM ---------- Previous update was at... (3 Replies)
Discussion started by: rohit_shinez
3 Replies
3. Shell Programming and Scripting
I very new to C Shell. I am trying to do is read from Command line.
Find the if the file is zip, .txt, symbloic link,pipe, unknow (if file is not zip, txt, sy....)
here is what I what got so far. I am very stuck atm Please help me out :
If the file is symblooc link what file is link to
... (12 Replies)
Discussion started by: madbull41
12 Replies
4. Shell Programming and Scripting
I have to increase the date by one week in an input when script is executed in solaris. I was able to acheive this using ksh script that is working in Linux enivironment, when i execute the same script in Solaris i am getting below error:
/var/tmp\n\r-> ./script.ksh
date: illegal option -- d... (3 Replies)
Discussion started by: sriramanaramoju
3 Replies
5. Shell Programming and Scripting
hi,
I have a local.conf file which has the first line
TOPDIR = "/home/mvdev/workspace/boxer". I want to replace the value to
"/home/common/workspace/mirror". I tried the following perl command that is
perl -p -i -e 's/Path/path1/g' myfile.txt then
sed... (7 Replies)
Discussion started by: amvarma77
7 Replies
6. Shell Programming and Scripting
Hi,
IŽd like to know how to program a shell script for know when a file changes and based on that make another tasks all this in real time.. Thanks (2 Replies)
Discussion started by: mrios7
2 Replies
7. Shell Programming and Scripting
Hi,
I'm working on a script to make automatic the new releases of my website...
However in this script I put all the css script in a single one. There's no rpoblem for that.
My problem is when I want to change the header of my layout page to put instead of :
$header.="<link rel=\"stylesheet\"... (2 Replies)
Discussion started by: lahabana
2 Replies
8. UNIX for Dummies Questions & Answers
I searched the forum, but there was different type of rename.
Hello.
I have files in folder.
Like:
xxxxxxxx1.html
or
xxxxxxxx2.txt
or
xxxxxxxx3.tar.gz
and how to rename or change file extension case to
xxxxxxxx1.htm
or
xxxxxxx2.TXT
or (5 Replies)
Discussion started by: Sheldon
5 Replies
9. Homework & Coursework Questions
Interpreter should be bash.
1. The problem statement, all variables and given/known data:
I need to make a file (myText.txt or song.mp3 or cloud.tar.gz or whatever) and then change the extension to (myText.TXT , song.MP3, cloud.TAR.GZ).
It would be good if I can add all information in... (4 Replies)
Discussion started by: Kdenmen
4 Replies
10. Shell Programming and Scripting
Hello, my first post!
I'd appreciate help with this script, I'm new to this.
I have a media directory where I want to batch convert image file names from .img to .iso.
I've tried but get:
$ ./img2iso2.sh
./img2iso2.sh: line 13: syntax error: unexpected end of file :(
This is my... (10 Replies)
Discussion started by: Astrid
10 Replies
yppasswdd(4) File Formats yppasswdd(4)
NAME
yppasswdd - configuration file for rpc.yppasswdd (NIS password daemon)
SYNOPSIS
/etc/default/yppasswdd
DESCRIPTION
The yppasswdd file contains a parameter that modifies the behavior of the rpc.yppasswdd(1M) daemon.
The yppasswdd file contains a single parameter:
#check_restricted_shell_name=1
By default in the current release, this line in yppasswdd is commented out. If you uncomment the line, when a user attempts to change his
default shell using `passwd -r nis -e` (see passwd(1)), the rpc.yppasswdd daemon checks whether the name of the user's current shell
begins with an 'r'. rpc.yppasswdd considers any shell whose name begins with an 'r' (for example, rcsh) to be a restricted shell. If a
user's shell does begin with 'r', his attempt to change from the default shell will fail.
If the line in the yppasswdd file is commented out (the default), the rpc.yppasswdd daemon does not perform the restricted shell check.
The yppasswdd file is editable only by root or a member of the sys group.
FILES
/etc/default/yppasswdd configuration file for rpc.yppasswdd daemon
SEE ALSO
rpc.yppasswdd(1M)
SunOS 5.11 8 Nov 2001 yppasswdd(4)