10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi All,
I need to write a script to find all "*.sh" files in /home file system and if any string find "*.sh" files with the name vijay@gmail.com need to replace with vijay.bhaskar@gmail.com. I just understood about the find the command to search .sh files. Please help me on this.
find / -name... (3 Replies)
Discussion started by: bhas85
3 Replies
2. Shell Programming and Scripting
I want to run commands inside a bash script.
An example is
I want to pass the command in a string as regexp as an argument to the script, then run sed on the bash variable
sed.sh regexp
sed.sh "-i \"s/<p>//g\""
then call
sed "$regexp" $fl (3 Replies)
Discussion started by: Kangol
3 Replies
3. UNIX for Beginners Questions & Answers
Hi All,
I have made a forloop as given below.
if ]; then
echo -e "serv_AAA_DS.ldif file created and will be splitted into 8 smaller files for ldapadd \n"
sh ./file_splitter.sh
for (( w=1; w <= 8; ++w ))
do
nohup ldapadd -x -c -h PL0 -p 389 -D "$LDAP_USER" -w... (8 Replies)
Discussion started by: Kamesh G
8 Replies
4. Shell Programming and Scripting
Hi ,
I have 4 scripts example script1,script2,script3,script4 .
I have to run script1,script2 and script3 parallely since this 3 scripts dont have dependencies .
Once script1,script2 and script3 got completed successfully , I have to trigger script4.
Can someone help me on this how to... (10 Replies)
Discussion started by: vinothsekark
10 Replies
5. Shell Programming and Scripting
I would like to execute a commands in four different servers through ssh at a single instance(simultaneously).
Below are the details with examples,
ssh user1@server1 "grep xxxx logs"
ssh user1@server2 "grep xxxx logs"
ssh user1@server3 "grep xxxx logs"
Each statement will take some... (4 Replies)
Discussion started by: Amutha
4 Replies
6. UNIX for Advanced & Expert Users
Hi,
I have a requirement to process multiple files in a directory parallely.Consider the below scenario:
In a directory there are three files file1,file2 and file3.When I use for loop each file will be executed in sequence but I want to process parallely.
Any Help would be appreciated.... (1 Reply)
Discussion started by: liyakathali
1 Replies
7. Programming
Hello experts
I want to execute a awk command, which reads from txt files and sums the numbers from the first column for those listed only inside a <init> block -- The awk command is like
awk '/<\/?init>/{x = !x}x{a++}x && a > 2{sum+=$1}END{printf"%E" "\n", sum}
So, I want to execute... (2 Replies)
Discussion started by: Alkass
2 Replies
8. Shell Programming and Scripting
Hi All,
I have to send a processed file to 24 different server locations. I feel, if this job can be done parallel in the background - Time will come down.
I found the script to FTP the file for a single server location through past Unix posts as below:
#!/usr/bin/ksh
ftp -v -n... (16 Replies)
Discussion started by: vsmeruga
16 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I have scheduled a script in cron which writes output to the below file.
....>> /data/Target/wrapper_invoke_ds_job_`date '+%Y%m%d'`.ksh_out 2>&1
But the date command is not getting resolved in the format specified. It just resolves to the following.
wrapper_invoke_MQ_ds_job_Tue... (3 Replies)
Discussion started by: pkm_oec
3 Replies
10. Shell Programming and Scripting
Hi everyone!
I need some help with my shell script :(
I am sending a shell command from a html text input to a cgi. Then, I store it into a variable. For example
var="ps -axu"
echo `$var`
This functions properly. But consider the following...
var="ps -axu | grep root"
Now, I want... (2 Replies)
Discussion started by: Nene
2 Replies