Search Results

Search: Posts Made By: aimy
1,895
Posted By aimy
Thanks again Don. ls -l...
Thanks again Don.

ls -l /home/edwh_test/S13018/EDWH-DMT03/stgdata/RPT/INPUT_GIANT*
yields
-rw-r--r-- 1 edwh_test users 23082 Aug 5 16:05...
1,895
Posted By aimy
Thanks Don. Actually I've already fixed it...
Thanks Don.

Actually I've already fixed it by
for file in INPUT_GIANT_*csv; do filename=$file; done

Should be OK right? By right, there should be only one INPUT_GIANT_*csv at a time, it's just...
1,895
Posted By aimy
Linux Compatibility
Hi all.

I'm in the process of migrating existing script on UNIX server to the LINUX platform.

One of the script that have issues is this one:
cd /home/edwh_test/S13018/EDWH-DMT03/stgdata/RPT/...
2,683
Posted By aimy
Thanks a lot again Mr. Don. So meaning if I...
Thanks a lot again Mr. Don.

So meaning if I want get a list of all files that exceed 500MB, this should be the command right:
$ find 104857600 -xdev -size +104857600c -exec ls -lad {} +|sort -n...
2,683
Posted By aimy
Sorry to make you confused Sir. Of course...
Sorry to make you confused Sir.

Of course the neat output of your script solved my problem.

The one that I showed you is from the original script output. But what is wrong with the script I...
2,683
Posted By aimy
Thanks Don. This is some of the output: ...
Thanks Don.

This is some of the output:
-rw-r--r-- 1 ftphsbb ftpuser 89 Apr 24 21:40 CASS_voice_NON_IMS_20160424_61486.cdr.ext
-rw-r--r-- 1 ftphsbb ftpuser 89 Apr 25...
2,683
Posted By aimy
Find Large Files Recursively From Specific Directory
Hi.

I found many scripts in the web of achieving this.

But I like to use this one
find /EDWH-DMT03 -xdev -size +10000 -exec ls -la {} \;|sort -n -k 5 > LARGE.rst

But the problem is, why it...
1,350
Posted By aimy
Thanks so much. It works as expected! Really...
Thanks so much.

It works as expected! Really appreciate. :b:

Thanks.

---------- Post updated at 10:26 AM ---------- Previous update was at 10:25 AM ----------


Thanks for your input as...
1,350
Posted By aimy
Thanks Chubler. $ uname -a HP-UX system1...
Thanks Chubler.

$ uname -a
HP-UX system1 B.11.31 U ia64 0189138652 unlimited-user license

I've tried lsof yesterday. It's not available in my system.

Thanks.
1,350
Posted By aimy
Script to Exclude Files That Still On Transfer..
Hi.

I want to schedule a job at some directory will several files in it.

But there maybe a situation whereby some of the files at the point of the schedule are still transferring during that...
9,924
Posted By aimy
Thanks a lot Don! It works. But I just...
Thanks a lot Don!

It works.

But I just wondering, both type of files (Unix line and Windows line), the final output would have less 1 byte.

But the content look similar.

Is that expected?...
9,924
Posted By aimy
Thanks a lot! It works! But what about...
Thanks a lot!

It works!

But what about applying the same command that won't affect the file that is already OK, like this one..

I've tried the command but it will create a blank lines...
9,924
Posted By aimy
New Line in CSV file
Hi.

How do I convert the Windows new line into a known format to Unix?

Please see the attached file.

In UNIX it appears only one single line.

Please help.

Thank you.
1,259
Posted By aimy
Python Programming for asn1 file
Hi.

Has anyone here got an experience doing conversion from asn1 format to a readable format so that it can be processed by Oracle? I want to load the data into a table. This is a CDR file.
...
3,433
Posted By aimy
Python Programming for ASN.1 file
Hi.

Has anyone here got an experience doing conversion from asn1 format to a readable format so that it can be processed by Oracle? I want to load the data into a table. This is a CDR file.
...
2,467
Posted By aimy
Thanks. Yes, you are right. After I...
Thanks.

Yes, you are right.

After I pass this phase, I will rename the file with this:
mv complete.list ${grp}_complete.list
$grp is another parameter that I have set in the full script.
...
2,467
Posted By aimy
Please help me. Thank you.
Please help me.

Thank you.
2,467
Posted By aimy
Oh sorry for not being really clear. What I...
Oh sorry for not being really clear.

What I actually mean is that the ${file_name} variable is predefined before the command
sh /EDWH-DMT02/script/MISC/exec_sql.sh...
2,467
Posted By aimy
Call Script with Parameter (that has another parameter)
Hi.

How do I achieve this

sh /EDWH-DMT02/script/MISC/exec_sql.sh "@/EDWH-DMT02/script/others/CSM_CKC/Complete_List.sql ${file_name}" Complete_List.txt

The /EDWH-DMT02/script/MISC/exec_sql.sh...
3,711
Posted By aimy
Thanks. But I got this error: $ cut -c...
Thanks.

But I got this error:
$ cut -c 1-25 source.list | grep -vxFf - complete.list
grep: can't open -
3,711
Posted By aimy
Thanks a lot @Aia So in conclusion, there is...
Thanks a lot @Aia

So in conclusion, there is no way for me to mimic the process substitution by any other means right?

Because...
$ ls /dev/fd
/dev/fd not found

Thanks a lot to all.
3,711
Posted By aimy
Thanks a lot!! Yep this awk -F"@" 'NR==FNR...
Thanks a lot!!

Yep this awk -F"@" 'NR==FNR {a[$1];next} {if($1 in a){next;}print $1}' source.list complete.list works! And it is so flexible and thus the difference could be done both ways. Thank...
3,711
Posted By aimy
Thanks Jim & Rudic. Btw, I just noticed that...
Thanks Jim & Rudic.

Btw, I just noticed that in reality this code should be the other way around actually:
cut -c 1-25 source.list | grep -vxFf complete.list
that is I have to find the missing...
3,711
Posted By aimy
$ echo $0 -sh ---------- Post updated at...
$ echo $0
-sh

---------- Post updated at 01:26 PM ---------- Previous update was at 01:22 PM ----------

I've read somewhere that I can use `! <command> ` for Bourne instead.

But the output...
3,711
Posted By aimy
$ cd /dev/fd/ sh: /dev/fd/: not found. $...
$ cd /dev/fd/
sh: /dev/fd/: not found.
$ uname -a
HP-UX system1 B.11.31 U ia64 0189138652 unlimited-user license
$ echo $SHELL
/sbin/sh
$
:(
Showing results 1 to 25 of 73

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