Hi All,
Can anyone give me Shell script sample script to generate Param file by Reading Values from DQL Plus query and it should assign those values to variables like..
$$SChema_Nmae='ORCL'
Thanks in Advance... Srav...
I have the following script - its supposed to loop files names using find but it seams to break the files names up by a space? I need the file names to remain intact
#!/bin/bash
for file in `find -name "*.avi"`
do
echo $file
done
Can anyone help me?
Thanks
Dear Gurus,
I have 57 tab-delimited different text files, each one containing entries in 3 columns. The first column in each file contains names of objects. Some names are present in more than one file.
I wish to configure OpenSSL such that when running openssl req -new to generate a new certificate signing request, I am prompted for any alternative subject names to include on the CSR.
I have added this line to the [req_attributes] section of my openssl.cnf:
subjectAltName = Alternative subject names
This has the desired effect that I am now prompted for SANs when generating
I have created a Shell Script as below
Sample.sh
echo "Hi there"
I also added cron job in cron tab which is under /etc/crontab as below
* * * * * /home/Sample.sh > /home/Sample.txt
I have created the Sample.txt file in /home/ directory.
I have also checked the permission for read and write for both the file
When I execute the Sample.sh file it works fine.it writes in Sample.txt file
I am a beginner to scripting, please help me in this regard.
How do I create a script that provides a count of distinct values of all the fields in the pipe delimited file ? I have 20 different files with multiple columns in each file.
would like to write a bash program which if I type in the following:
-bash-4.1$ ./sample.sh path regex keyword
that will result something like that:
path/sample.txt:12
path/sample.txt:34
path/dir/sample1.txt:56
path/dir/sample2.txt:78
I have absolutely no idea how can I achieve this without using find or grep -r (but I can use grep/ sed/ awk) in bash...
Hi,
I would like to write a loop to change the names of files in a directory. The files are called data1.txt through data1000.txt. I'd like to change their names to a1.txt through a1000.txt. How do I go about doing that? Thanks!
Hi ,
My requirement is to scan a directory for file names with LTR.PDF*
and send those files via ftp to another server one by one.
Now the the problem is file names are like LTR.PDF ,LTR.PDF1 ,LTR.PDF2.....LTR.PDF10..upto 99
and these needs to be sent in sorted order.
is there a way to get the files in sorted order based on file names in for loop
Code:
for file in $BASEDIR/output/$LTRNAME