Search Results

Search: Posts Made By: ulab
10,437
Posted By ulab
its Linux. got this in some forum. ...
its Linux.

got this in some forum.


date1=$1
date2=$2

#verify dates
if ! date -d "$date1" 2>&1 > /dev/null ;
then echo "first date is invalid" ; exit 1
fi
if ! date -d "$date2"...
10,437
Posted By ulab
How to get dates between two dates?
HI,

to my shell script i pass two parameters date1 and date2

is there any way to get all dates betwen these two dates?

if i pass 20130714 and 20130717 i need to get below dates

20130715...
4,831
Posted By ulab
ignore this
ignore this
2,139
Posted By ulab
not sure if i complicated the simple task..but...
not sure if i complicated the simple task..but this is how...i tried for the required logic

cat test.txt|cut -d' ' -f1|sort -u |while read i
do
cat test.txt|grep ^$i >> test1.txt
echo " " >>...
1,217
Posted By ulab
thats wat below command does mv $i...
thats wat below command does


mv $i <destionation_dir>


you give your directory name in place of destination_dir
1,217
Posted By ulab
you may try this for i in `ls` do ...
you may try this


for i in `ls`
do
row_count=`cat $i|wc -l`
if [ $row_count -gt 1 ];then
mv $i <destionation_dir>
fi
done
1,160
Posted By ulab
Query on SFTP
Hi All,

i need help on below requirement.

from my loacal machine i need to connect to other server(am trying with STFP not sure of we have any other options) and check for the availabilty of...
4,661
Posted By ulab
beauty.... Many thanks for the quick...
beauty....

Many thanks for the quick response.. :b:
4,661
Posted By ulab
Finding position of space in a variable
HI All,

am trying to find the position of space in a variable, it is working for other characters other than space
ulab="ulab1|ulab2"
find_pos=`expr index $ulab '|'`
echo $find_pos

above...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 08:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy