10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have the shell script requirement mentioned below :
List all java and c files or all files in directory and sub directories' in folder structure in current dir.
then search for pattren1 in all files globally and replace with other string .
And also check the date... (3 Replies)
Discussion started by: ammulu
3 Replies
2. Shell Programming and Scripting
Hi
i want to copy all the files of current date in another directory.
for example, below i want to save all the file of 26 march to copied in debug dir.
$ ls -lrt | tail -5
-rwxrwxrwx 1 khare guest 73 Jan 6 12:35 chk
-rw-r--r-- 1 khare guest 770 Mar 26 02:21 cc1... (2 Replies)
Discussion started by: scriptor
2 Replies
3. HP-UX
Hello HP Admins,
Somehow Permissions of files inside /etc set to 777 in HP-UX 11. Due to this, system malfunctioning. I would like to know if there exists any command/script that sets all system files (or /etc atleast) to its default standard permissions.
I just don't want to run 755 on /etc... (3 Replies)
Discussion started by: prvnrk
3 Replies
4. Shell Programming and Scripting
hello,
I have a question regarding the below script.. I just simply trying to write to a file in directory that does not have write permissions but this is failing .. it still writes to it regardless ..
Many thanks in advance..
#!/bin/bash
#check if dir exists, if so write to it
... (5 Replies)
Discussion started by: Reb0rn
5 Replies
5. Shell Programming and Scripting
Hello all,
I'm very new to shell scripting and need quite urgently to do this thing for my student job. I have a directory called "vectors" with a bunch of files all named ".vector". also i have for each of those files a directory with the name . I now want to move each of those *.vector files... (2 Replies)
Discussion started by: sherresh
2 Replies
6. Shell Programming and Scripting
Hi all;
I have the following code which gives me kind of what I need:
#!/usr/bin/perl
use Fcntl ':mode';
#
if ($ARGV ne "") {
$filename = $ARGV;
} else {
print "Please specify a file!\n";
exit;
}
#
if... (2 Replies)
Discussion started by: gvolpini
2 Replies
7. Shell Programming and Scripting
Hello all;
I have a question based on a ticket I have from a user... K...first some background...this client needed a generic user setup to allow them to ftp files; user is called "msifpt"...so here's what they want to do now with this account:
1. Client will use the user id ‘msiftp'... (1 Reply)
Discussion started by: gvolpini
1 Replies
8. Shell Programming and Scripting
Need a script to move the files from one dir to other dir and at the same time it has to read the log in the source dir. Please help me ASAP. (4 Replies)
Discussion started by: viswanathkishor
4 Replies
9. Shell Programming and Scripting
Hi All,
I have a script which will be run by another user say user 2 which will create a new dir say dir 4 in my work place and copy certains files from his dir.
/t1/t2/t3/dir4
I want to allow the user to create the dir dir4 and copy the files,but bring the control back to my name say user... (2 Replies)
Discussion started by: prasperl
2 Replies
10. Shell Programming and Scripting
Hello!!
I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory:
drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
Discussion started by: bigben1220
3 Replies