Search Results

Search: Posts Made By: dipeshvshah
2,579
Posted By dipeshvshah
Thank you.
Thank you.
2,579
Posted By dipeshvshah
Re: Deleting lines from big file.
Hi,

I have a big (2.7 GB) text file. Each lines has '|' saperator to saperate each columns.

I want to delete those lines which has text like '|0|0|0|0|0'

I tried:
sed '/|0|0|0|0|0/d'...
4,006
Posted By dipeshvshah
Thanks!! The problem has been resolved. ...
Thanks!!

The problem has been resolved.

The problem was with Oracle Environment variables. My scripts is calling
Oracle stored procedures and functions. If script executed from CRON, the...
4,006
Posted By dipeshvshah
Executing a script from CRON behaves differently than terminal
Hi have a script which transferers from Microsoft server to Linux box.

The scripts(ksh) is on Linux box.

If I run script from terminal, it transfers files to directory. Where as If
I run...
1,582
Posted By dipeshvshah
Thanks Franklin & Icon.
Thanks Franklin & Icon.
1,582
Posted By dipeshvshah
substr issue
Hi

I have a script:


ls -l | grep "$TDATE" | awk '{print $NF}' > todays_files.txt
for run in $(cat todays_files.txt)
do
SSTR='expr substr "$run" 1 5'
echo "$SSTR"
done



I want...
1,445
Posted By dipeshvshah
Thanks!!
Thanks!!
1,445
Posted By dipeshvshah
Thank you very much!! Regards, Dipesh
Thank you very much!!

Regards,
Dipesh
1,445
Posted By dipeshvshah
Date related issue
Hi,

I have
TDATE=$(date '+%b %d')

That stores "Sep 01" in the TDATE.

How I can store "Sep 1"?

Thanks in advance
6,228
Posted By dipeshvshah
Thanks Kevin for reply!! I tried: ...
Thanks Kevin for reply!!

I tried:


ssh admin@xyz.aaa.com "ls --full-time /doc/"


That works fine but when


ssh admin@xyz.aaa.com "ls --full-time /doc/" | \
awk ' BEGIN{ "date...
6,228
Posted By dipeshvshah
USR='admin' PASSWD='abc' HT='xyz.aaa.com' ...
USR='admin'
PASSWD='abc'
HT='xyz.aaa.com'
FILE='S*.pdf
DIRNAME='/doc'

ssh $USR@$HT "ls --full-time /doc" | \
awk ' BEGIN{ "date \"+%F\"" | getline today } \
{ if($6 == today)...
6,228
Posted By dipeshvshah
Kevin Thanks again for quick reply. I...
Kevin Thanks again for quick reply.

I modified the script was per your suggetion.

The directory has 5000 files but still it says


Number of files created today: 0
Number of old files: 0
6,228
Posted By dipeshvshah
Thanks Kevin for quick reply. ls...
Thanks Kevin for quick reply.

ls --full-time | awk ' BEGIN{ "date \"+%F\"" | getline today } \ { if($6 == today) ++nFileCreatedToday; else ++nOldFile } \ END { print "Number of files created...
6,228
Posted By dipeshvshah
Count todays created files and old files
Hello experts,

I used following approach to get listing of all files of remote server.
Now I have remote server file information on same server.




I am getting listing in the...
1,910
Posted By dipeshvshah
Thanks for the reply. I need to use FTP...
Thanks for the reply.

I need to use FTP because files are setting on remote server.

Let me give you more details about my problem.

I have backup_server and application_server.
...
1,910
Posted By dipeshvshah
FTP stores unwanted chars to output file
I want to only store date of all files. However, the below script also store
unwanted FTP related lines to output file.

Could someone tell me how to ignore them (see output first 6 lines)?
...
2,309
Posted By dipeshvshah
Thanks!! /doc> ls -l | gawk '{print $6,$7}'...
Thanks!!

/doc> ls -l | gawk '{print $6,$7}' | sort | uniq -c

1
1 Aug 13
876 Jul 5



How to get rid of first output line? It returns only
1

And how to store the out put in...
2,309
Posted By dipeshvshah
How to check all files in dir has same date stamp?
Hello Experts,

Can some one write the code to find,
all files in the directory has today's time stamp or not?

Dir = /doc
Files
-----
a.txt Aug 13 10:15
b.txt Aug 13 10:16
c.txt Aug...
2,423
Posted By dipeshvshah
Thanks scott. It works now.
Thanks scott. It works now.
2,423
Posted By dipeshvshah
Issue in passing a parameter value from one script to another
Hi Experts,

I am passing current month & day (i.e. 'Jul 21') from script aaa.ksh to zzz.ksh. The value 'Mon DD' is being used in zzz.ksh.

Problem: If I pass 'Mon DD' value manually to zzz.ksh...
1,107
Posted By dipeshvshah
Thanks Tyler!! It is working now!!
Thanks Tyler!! It is working now!!
1,107
Posted By dipeshvshah
How to assing 'Mon DD' to a variable?
Hi Experts,

I am trying to assing a value of current 'Mon DD' to the variable following way:

l_day=date '+%b %d'

Unfortunately, at the time of run, it says ' +%b %d: not found'

Thanks...
7,433
Posted By dipeshvshah
Thanks Corona688, I included 'binary'...
Thanks Corona688,

I included 'binary' command and it works fine.

I just love this forum:)
7,433
Posted By dipeshvshah
FTP is not transfering pdf files correctly
HI Experts,

I have following code to FTP all pdf files from remote (win sever) to Linux box.


function LsFiles(){
ftp -n -i -v $HT <<end_ftp
user $USR $PASSWD
cd $DIRNAME
ls "-lrt *.pdf"...
21,953
Posted By dipeshvshah
Thanks research3!! ls "*.pdf" worked...
Thanks research3!!

ls "*.pdf"

worked well.
Showing results 1 to 25 of 32

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