Search Results

Search: Posts Made By: KiranKumarKarre
7,618
Posted By KiranKumarKarre
delete dead links
i am writing small shell script

how can i find dead links
How can delete dead links

Thanx
8,483
Posted By KiranKumarKarre
preserve timestamp of symlinks using rsync
Hi,
In my shell programming, When i copy sym links from one server to another server using rsync it does not preserve time stamp . it showing current time after copying in destination server.the...
1,600
Posted By KiranKumarKarre
pattern serach using grep
Frds
I have to search for a string which is starting with brighton which will be first in the line of a text file test1.txt. The contents of test1.txt are file names like

-----
brighton...
1,962
Posted By KiranKumarKarre
special character validation except '-'
here i have a concern forgot to mention that user allowed to entered user id range like

0920920-902992 (valid)
92920-9292%^& ( invalid)

so i need to do special character validation...
1,962
Posted By KiranKumarKarre
validate user ids
Hi

I have to validate the user ids. It should be numeric. I am using following code
echo $input | grep '^[0-9]\{11\} > /dev/null
if [ $? = 1 ]
echo "error"
else
echo "Success"
fi...
6,446
Posted By KiranKumarKarre
no of arguments to function in shell script
Hi,

I have a function in shell script
fun1{ echo "No.of arguments are..."}
this function will be called in same script by passing arguments
fun 1 2 3

I want to check the no. of arguments...
3,166
Posted By KiranKumarKarre
Hi , U have sent the same code what i...
Hi ,

U have sent the same code what i posted. Its not working at all..
same errors am getting. Please check once my requirements and posted code
3,166
Posted By KiranKumarKarre
validation against special characters
I have a criteria like bloew.
user entered the uid like <START_UID>-<END_UID>
it menas if he enter 00001-12345
START_UID=00001 and END_UID=12345
both are separated by `-`.
I need to validate...
2,782
Posted By KiranKumarKarre
logical expressions
Hi Fdz,

I have to verify the length of two uids are equals to 11 or not. The conditions is both lengths should be 11.I tried with this logic expr. am unable to get correct results.(Shell script...
1,884
Posted By KiranKumarKarre
validating user entered date
I need the date validation. I searched in the google but i didn't find my requirements.
requirements:
1) user has to enter the date in YYYY/MM/DD format
2) MM validations
3) DD validations.
...
18,116
Posted By KiranKumarKarre
I was googling the same, but it did not resolve...
I was googling the same, but it did not resolve my problem..sorry..
18,116
Posted By KiranKumarKarre
Sorry yar..i don't have i want shell script...
Sorry yar..i don't have

i want shell script in unix only..
18,116
Posted By KiranKumarKarre
check whether the directory is empty or not
I have the list of users in user.log, under each user folder there is sub1 folder is there. i want to check whether sub1 is empty or not, if it is empty i have to skip that user user folder and...
23,485
Posted By KiranKumarKarre
Thanks Guys for Quick Reply
Thanks Guys for Quick Reply
23,485
Posted By KiranKumarKarre
Storing the values in text file using while loop in shell script
Hi Frdz

while read line
do
name=`echo $line | cut -d' ' -f 1 `
password=`echo $line | cut -d`-` -f 2`

name > logfile.txt
password > logfile.txt

done < list.txt

When it is run,...
26,520
Posted By KiranKumarKarre
three dates comparision
can any one tell me how this can be modified to compare three dates at a time

echo 2005/02/31 2005/02/02 | awk '$2<$1{print -1;next}{print ($2>$1)}'


Thanks
5,236
Posted By KiranKumarKarre
Guys I asked for year when it is modified..any...
Guys
I asked for year when it is modified..any way i got solution ..i am sharing with u
use the following command

ls --full-time

you will get the modified year also..

regards
KK
5,236
Posted By KiranKumarKarre
File created year
Hi

I need to get the File creation date (MM,DD,YYYY)

using ls -ltr am getting only Month and Day only, I need year also when the file is modified.

Thanks
4,059
Posted By KiranKumarKarre
copying links/files using rsync command
Hi
I am using rsync command to copy the likes like bwlow

rsync -vaR krish/harris/test data/charles

I am running this script in test1 folder but the krish/harssis /test is existed in test2...
4,883
Posted By KiranKumarKarre
rsync exclude option
Hi Frdz,

i am using rsync to transfer files from source to destination. but i have one criteria like i have to tranfer only links from source to destination.

in home/test/po folder i have
...
10,345
Posted By KiranKumarKarre
file reading in nested loops
I have to to read files simultaneously in two nested loops,but am getting error can anyone do the needful.

useridFile=userIds.txt
fname=kiran.txt
exec<$useridFile
while read line
do
echo...
30,569
Posted By KiranKumarKarre
Hi I have the following string which...
Hi

I have the following string which contains -> symbol, i need to split this string into two strings using shell script in unix. can anyone help me out.
...
27,454
Posted By KiranKumarKarre
rsync without password prompt
Hi,

I am tranfering the files from local machine to remote machine using rsync utility but it is prompting password. but i don't want to provide through prompt. how can i give in my shell script....
2,770
Posted By KiranKumarKarre
ftp transfer in a for loop
The error is at the last line of the script.
If i remove the ftp related code out of the for loop and run the remaining it is working good. when ever i place the ftp code in side the for loop it is...
2,770
Posted By KiranKumarKarre
ftp transfer in a for loop
Its not working ..still am getting the same error..
Showing results 1 to 25 of 60

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