Search Results

Search: Posts Made By: vikatakavi
3,642
Posted By vikatakavi
Hi wisecracker, Thanks for the reply,i...
Hi wisecracker,

Thanks for the reply,i tried the above code but i still see the same results.
3,642
Posted By vikatakavi
Echo does not work to append to a new line
Hi,

i am witing a function in a shell script which will echo the file name and witre in to the new line, but i dont get expected results. The below is my code


#!/bin/bash
DATE=$1...
1,905
Posted By vikatakavi
so here you mean to say tar -zxvf...
so here you mean to say


tar -zxvf /source/path -C /destination/path
1,905
Posted By vikatakavi
Facing difficulties to untar a tra.gz file
Hi ,

I trying to cp a files to one location and trying to untar there,the tar.gz files get copied to the specified location but wont untar. Here is what i did


if cp...
1,773
Posted By vikatakavi
This script will be coping file for one directory...
This script will be coping file for one directory to other directory
1,773
Posted By vikatakavi
How to write a shell script to Run it the from Date A to Date B?
Hi ,

How would i write a shell script to run the code from one date to another date EXample 2014-01-01 to 2014-02-28, can i any provide some clue on this
731
Posted By vikatakavi
Try to use -f to look for a file
Hi i am try to find a find using a if loop i here is what i did


if [ -f != /path/to/file ]
then
echo "test succeded"
else
echo " test failed "
fi


can i use {-f !=} is this the...
2,419
Posted By vikatakavi
How can i get the date range for the last 4 days?
Hi

i am try to run a script by using a dates here is what i am doing


EXPORTDATE=`date --date "2 days ago" +%Y-%m-%d`

sh /path/to/the/files.sh ${EXPORTDATE}


the above code runs...
1,349
Posted By vikatakavi
Hi, In this code how do i use path to the files
Hi,
In this code how do i use path to the files
1,349
Posted By vikatakavi
[Solved] How to find particular files ina directory?
Hi,

I am trying to write a script to find some files in a directory
Example: if i have files like
2014-02-01_aaaa.txt
2014-02-01_bbbb.txt
2014-02-01_cccc.txt
2014-02-01_dddd.txt and some...
813
Posted By vikatakavi
Hi Vbe, echo " $EXPORTDATE "sh...
Hi Vbe,

echo " $EXPORTDATE "sh /path/to/file//file.sh $EXPORTDATE
i corrected this line in the above script it was my mistake when i did ctrl+v
all the scripts in the run.sh executed perfectly...
813
Posted By vikatakavi
Having some issues with cronjob
Hi,

i have a cronjob scheduled to run daily at 7AM , the job which i am executing has three other scripts in it to execute. The first scripts gets executed perfectly but the 2nd and 3rd scripts...
1,400
Posted By vikatakavi
Thank you yoda and corona688
Thank you yoda and corona688
1,400
Posted By vikatakavi
Hi Yoda, Thanks for the quick reply...
Hi Yoda,

Thanks for the quick reply ,in the last step after done do This > append or overwrite the file (as far as my little knowledge in unix to append >> is used right) correct me if i...
1,400
Posted By vikatakavi
Doubt in For loop
Hi All,

I wrote a for loop where i am trying to delete the 1st line of each file and append then into a single file, my code looks like this but i am not sure if its right or worng . Can any one...
1,264
Posted By vikatakavi
How can i use function for the below script to shorten it?
Hi All,

i worte a shell script which will zcat the .gz file and write it in to a tmp file and then again cat the file and convert it to Dos mode. Next step is i am greping the file to search for...
1,106
Posted By vikatakavi
can you show me the usage
can you show me the usage
1,106
Posted By vikatakavi
Find the missing file and print
Hi ,

i will be getting 24 files for one day with a formate like 20131028_01 - 20131028_24 kind of ,i am trying to write a shell script to count the number of files and if the count is not...
2,180
Posted By vikatakavi
i get this UTF-8 Unicode English text,...
i get this


UTF-8 Unicode English text, with very long lines
./edited.sh: line 17: file: ambiguous redirect
2,180
Posted By vikatakavi
can you provide the usage
can you provide the usage
2,180
Posted By vikatakavi
How to improve the performance of this script?
Hi ,

i wrote a script to convert dates to the formate i want .it works fine but the conversion is tkaing lot of time . Can some one help me tweek this script

#!/bin/bash
file=$1
ofile=$2...
1,675
Posted By vikatakavi
i just tried this and worked but is there any...
i just tried this and worked but is there any better way i can work around


cat file.tsv | sed -e "s_\(..\)/\(.\)/\(....\)_\3-\1-\2_g" | sed -e "s_\(.\)/\(..\)/\(....\)_\3-\1-\2_g" > tmp.tsv
1,675
Posted By vikatakavi
i am using CentOS release 6.2 (Final) and i...
i am using
CentOS release 6.2 (Final)
and i did notice it changing only one field of date (its ignores the first date field and changes the second ) and in the file i found some thing like if the...
1,675
Posted By vikatakavi
my Input is a tsv file raju [tab] id[tab]...
my Input is a tsv file

raju [tab] id[tab] name[tab] address[tab]......date[tab] numberid[tab] updateddate[tab].....


but the out put remains the same
1,675
Posted By vikatakavi
tried but no luck
tried but no luck
Showing results 1 to 25 of 50

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