10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
I am searching the following string Folder^ in a file and replacing it with Folder^/
However if the file already contains Folder^/ I want to avoid replacing it with Folder^//
To do this I have to do the following today:
1) echo "Folder^" | sed 's/Folder\^/Folder\^\//g'
I get... (2 Replies)
Discussion started by: mehimadri12
2 Replies
2. Shell Programming and Scripting
I have written the following shell script
#!/bin/bash
file="/home/CSV/data.csv"
badfile="/home/CSV/bad/"
while IFS= read -r line
do
num_fields=`echo "$line" | awk -F'|' '{print NF}'`
field1=`echo "$line" | awk -F'|' '{print $1}'`
echo $num_fields
echo $field1
done <"$file"
the code is... (3 Replies)
Discussion started by: Tomar
3 Replies
3. Shell Programming and Scripting
Hi,
I am working on a sever A.
I want to write a perl script to execute a shell script persent on the server B.
please help me in this.
thanks in advance. (3 Replies)
Discussion started by: anandgodse
3 Replies
4. Shell Programming and Scripting
Hi All,
Please provide the command to stop all the cron jobs.
Thanks in Advance
Regards,
Sindu (2 Replies)
Discussion started by: indira_s
2 Replies
5. Shell Programming and Scripting
What is the best way to schedule a task that is be executed years later? Like execute a script after 4 years.
Is cron the best method for that?
Any other option other than cron/at ? :confused: (7 Replies)
Discussion started by: nitin09
7 Replies
6. Shell Programming and Scripting
Hi,
I am new to shell scripting and want to create a script with the follwoing description:
I want to restrict the users from giving a kill command on a unix server. The server have a restricted logins with login id and passwords. I want a script that will find out if a user has given a... (9 Replies)
Discussion started by: shell_scripting
9 Replies
7. Shell Programming and Scripting
Hi,
I have a directory structure like the one given below
root\a\b1
root\a\b2
root\b\b1
root\b\b2
.
.
.
root\j\b1
root\j\b2
Now, there are a txt files in each dir and subdir, there is a root.txt
I have to write a script where in i have to run a command called "genrb <filename>"... (6 Replies)
Discussion started by: vikramsinghnegi
6 Replies
8. UNIX for Advanced & Expert Users
I need to execute a shell script kept in unix machine from windows. User id, password area available.
For eg.
There's a shell script wich moves all the logs kept in my home directory to a directory named LOGS.
Now i need to get this done through windows; either using a batch file, or java... (4 Replies)
Discussion started by: rajneesh_kapoor
4 Replies
9. Programming
Hi All,
I want to find if a certain exe is running and if it is running i want to stop the execution of this exe (the exe has been created by me) on solaris.
What are the unix command i need to use and can i put these comand in a shell script or create a new exe to do this task (i would... (4 Replies)
Discussion started by: zing
4 Replies
10. Shell Programming and Scripting
Hello Everybody,
I'm facing a weird problem with the awk command.
I try to retrieve in a variable the value returned by a simple ls command.
ls /export/home/tmp |tail -1 return a good value (the name of the .
But When I try to execute the same command in a remote server using ssh as... (2 Replies)
Discussion started by: Jabarod
2 Replies