I have to find out the file system location of the script file inside script. for example a script "abc.sh" placed anywhere in the file system when executed shold tell by itself the location of it.
example
#pwd
/
#./abc
this is /
#cd /root
#./abc
this is /root
#cd /
#/root/abc
this... (10 Replies)
I wrote this find script for all those questions about 'files created in the last three hours' and 'files created more than 2 minutes ago'. This script *will* recurse into subdirectories.
As always, please suggest/make changes as you see fit.
#!/usr/bin/ksh
#set -x # unhash... (3 Replies)
Hi, I'm trying to write a basic script which will measure throughput at a node on a network, and pass the results on to a manager script (running on another node on the same network). I presume that I need to use some sort of naming service, so that the manager can publish its location. From what I... (2 Replies)
i have a below script that will give me the filename along with the their size if the file size is more than 1 GB
for j in `find /ednadtu3/u01/pipe -type f -size +1048576`
do
du -g $j
done
--------------------------------------------------------------------------
the above script is... (3 Replies)
Hello, as I'm doing my first steps in Linux I'm trying to create bash file
that will search file\s in folders by using the Find command.
can u help me with the script?
it should be :
myfind.sh
thanx! (2 Replies)
Hello,
I have a log file which is called datafile.info. This file contains data from a script but I can't find the script.
I have tried to grep the file name but I am only getting the output files back.
I have also tried find but no luck again.
Is there a way to find the script... (2 Replies)
I want to make a script which takes the number of argument, add those argument and gives output to the user, but I am not getting through...
Script that i am using is below :
#!/bin/bash
sum=0
for i in $@
do
sum=$sum+$1
echo $sum
shift
done
I am executing the script as... (3 Replies)
hi everyone
i tried to write my first script on unix solaris
the target is to find every file had size above 200M and save it to log file with size and path
i can do this but i still don't like it
#!/bin/bash
find / type f -size +200M -ls | log.txt
is there better way to do this !!... (3 Replies)