10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
We have a process where we store the database password in a config file like below from where the password is picked up and used in Database Scripts
ID, Password
But we now have a Audit Requirement not to have the passwords in Config Files directly. We have a command which could fetch the... (2 Replies)
Discussion started by: infernalhell
2 Replies
2. Shell Programming and Scripting
So, I need to find a bunch of files and delete them (this example, but sometimes I need it for something else) and my trusty go-to command has always been:
find . -type f -name '*file*' | xargs -I## rm '##'
Works wonders... But:
touch file\ file\'.txt
touch file.txt
touch file\ file.txt... (6 Replies)
Discussion started by: Mr.Glaurung
6 Replies
3. Programming
Iam trying to execute a file that include many files but it seems my main copy.c can't read anyone of them
-----------------------------------------------------------------------------------------
Copy.c
#include <sys/stat.h>
#include <fcntl.h>
#include "tlpi_hdr.h"
#ifndef BUF_SIZE /*... (2 Replies)
Discussion started by: fwrlfo
2 Replies
4. Shell Programming and Scripting
Hi
I have a requirement like below
I need to sort the files based on the timestamp in the file name and run them in sorted order and then archive all the files which are one day old to temp directory
My files looks like this
PGABOLTXML1D_201108121235.xml... (1 Reply)
Discussion started by: saidutta123
1 Replies
5. Shell Programming and Scripting
Hi Guys,
Is there any way I can execute my bash script on files in a different folder than what the script is in? Here is an excerpt of my script:
#!/usr/bin/bash
input_path="/cygdrive/c/files"
output_path="/cygdrive/c/files/data"
#script uses files from /cygdrive/c/files directory,... (1 Reply)
Discussion started by: npatwardhan
1 Replies
6. UNIX for Dummies Questions & Answers
Hello,
I have a set of input data that I split into batches using the following command:
split -l 4000000 MyInput.in Split_a
Once I get the split files, I run a certain command on the split files that spews an output. So far I have been doing it without a for loop. How can I translate the... (2 Replies)
Discussion started by: Gussifinknottle
2 Replies
7. Shell Programming and Scripting
I'm not sure how to word what I'm trying to do.
I would like to:
1. Generate a list of files (easy to do ls -l > list.txt)
2. Carry out an action again each file in the list (not so easy to do)
Like:
List all files in /dir and then execute a move of each file individually. something... (6 Replies)
Discussion started by: bbbngowc
6 Replies
8. Shell Programming and Scripting
I have a directory with several files with commands inside:
file1
file2
file3
...
file n
I want to make a script that will execute the commands in this files one by one and move the files to another directory.
When there is no more files in the directory the script ends.
Can you... (2 Replies)
Discussion started by: nagomes
2 Replies
9. Linux
I am having trouble getting my Tar.gz file to execute. I do the following
tar -zxvf firefox-2.0.0.1.tar.gz at the terminal once installed I can not get the firefox Icon or bin to execute. I do not know how to configure the path to get it to work. It places the folder under the /root/usr/local/bin.... (6 Replies)
Discussion started by: pgoble
6 Replies
10. UNIX for Dummies Questions & Answers
Hello!
I have an entry on my crontab.
10 00 * * * /bscsprod/bscs/prod/523/bin/tehcron.sh
$ /bscsprod/bscs/prod/523/bin/vi tehcron.sh
nohup teh -t -f > /dev/null &
~
~
~
~
~
~
~
~
"tehcron.sh" 13 lines, 365 characters
but executing the script from the... (5 Replies)
Discussion started by: Tris
5 Replies