10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
what is the following bash command does
grep `date +%Y-%m-%d --date='1 day ago'` /path/to/file/FILE_PREFIX_\`date +%Y%m%d --date='1 day ago'`.dsv | grep -v 'ERROR' | cut -d "|" -f 2 | sed 's/^0/27/' (1 Reply)
Discussion started by: tera
2. UNIX for Dummies Questions & Answers
I've written the following code to zip the big file
zip -r $dir_temp/file_nm.zip $dir_temp/file_nm
The zip file has been created . When I try to UNZIP the file
with the following command
The file got unzipped but created in the... (3 Replies)
Discussion started by: smile689
3. Shell Programming and Scripting
I have make an menu in which first option is to start and second is to stop the services
echo "Please enter the appropriate choice for doing the operations"
1) STOP Services
2) START Services
case $choice in
... (4 Replies)
Discussion started by: punpun66
4. UNIX for Dummies Questions & Answers
I'm a Bash Newbie, hope you guys can help.
Ok, So I need to make a script that will get a list of the Users that are/have logged in (recently).
I've been wondering how to get it with either the last or the who command.
This Poses a problem, as with who, it ONLY shows the Users... (3 Replies)
Discussion started by: lsteamer
5. Shell Programming and Scripting
I am trying to emulate the '|' functionality through pipe function call. I am passing the o/p of exec in parent as input to the exec in child. The buf is readin the o/p but the exec in child is not working. Can somebody checkout the code and point where am i going wrong or missing something.... (3 Replies)
Discussion started by: amejoish
6. UNIX for Dummies Questions & Answers
i have a function defined in one ksh
i want to use the same functionality in another ksh
i am using
. ../<ksh name>
but it is not picking that functionality
what i have to do for the same (2 Replies)
Discussion started by: trichyselva
7. UNIX for Advanced & Expert Users
I'll start this out by saying that I'm super-new to UNIX and need some help. My setup is as follows:
I am currently running 3 UNIX boxes, 2 application servers and 1 db server. The first application server is my production box, the second application server is my test box, and the db server... (1 Reply)
Discussion started by: dkeaton
8. Shell Programming and Scripting
I am trying to write a script that has a option of restarting the script from where it failed. I have to write a script called Batch.sh. This script has to run quite a few sql files as shown below:
logcmd.sh -f test1.sql
logcmd.sh -f test2.sql
logcmd.sh -f test3.sql
logcmd.sh -f... (4 Replies)
Discussion started by: rkumar28
9. Shell Programming and Scripting
I have a few xml files and I want to input say 5 parameters within each file. is it possible to do so with sed?
And so on.
These parameters are meant to go in just inside:
<?xml... (2 Replies)
Discussion started by: collern2
10. UNIX for Dummies Questions & Answers
Could someone help me to get yesterday's date in MMDDYY format.
echo `date '+%m%d%y'`
is giving me today's date in the above format.
Thanks in advance for your help..
Suresh. (1 Reply)
Discussion started by: svannala1