Search Results

Search: Posts Made By: znesotomayor
1,510
Posted By znesotomayor
Thanks Ms. Aia. i now get it. BR, -nik
Thanks Ms. Aia. i now get it.

BR,
-nik
1,510
Posted By znesotomayor
thanks Sir RudiC. what's the meaning of...
thanks Sir RudiC.

what's the meaning of this? specially on the substring part?

awk 'NR == FNR {T[substr($1, 5, 7)] = $1; next} !($1$2 in T)
1,510
Posted By znesotomayor
by the way i'm using shell. my output is...
by the way i'm using shell. my output is different.

---------- Post updated at 07:22 PM ---------- Previous update was at 07:12 PM ----------

Hi Sir R. Singh,

Please see output below:

...
1,510
Posted By znesotomayor
Hi Sir RudiC, Would you mind explaining it...
Hi Sir RudiC,

Would you mind explaining it to me?

Thanks,
1,510
Posted By znesotomayor
Bash of records into file
Hi All,

Seeking for your assistance to check if there a file PROS containing on the file1.txt and display the missing PROS file.


cat file1.txt
049|0276
230|0457
094|0134
094|1268...
3,000
Posted By znesotomayor
oks will try ---------- Post updated at...
oks will try

---------- Post updated at 04:10 PM ---------- Previous update was at 03:59 PM ----------

thanks sir pravin27. how come it's working. why do i need to convert it to sec?

Thanks,
3,000
Posted By znesotomayor
[: 2016-02-29: integer expression expected
Hi All,

Seeking for your assistance on my error encountered below. I think there's no problem on my script but i'm encountering integer expression expected. i already put double quote on my...
2,209
Posted By znesotomayor
hi kshji, how about the 3 condition? 55,76...
hi kshji,

how about the 3 condition? 55,76 and 15?
2,209
Posted By znesotomayor
Hi Sir RudiC, the output should be 1 only...
Hi Sir RudiC,

the output should be 1 only per file. On every file, if there's a record contains class it will automatically change the filename into file1.txt_area_by_class. if there's no class on...
2,209
Posted By znesotomayor
if there's a CLASS found on output how to change...
if there's a CLASS found on output how to change the filename from file1.txt to file1.txt_AREA_BY_CLASS?

TIA

---------- Post updated at 09:57 PM ---------- Previous update was at 09:50 PM...
2,209
Posted By znesotomayor
here's my initial input sample file1.txt ...
here's my initial input sample
file1.txt
290,1663,43,888,0,0.00,86.91,0.00,26.98,0.00
290,1663,52,0,0,0.00,0.00,0.00,0.00,0.00
290,1663,52,888,0,0.00,34.60,0.00,9.00,0.00...
2,209
Posted By znesotomayor
Apologies Sir Rudic. How do i run it on if...
Apologies Sir Rudic. How do i run it on if statement? i'm encountering command not found.



#!/bin/sh

for i in `ls *.txt`; do
while read line
do
DEPT=`echo $line | awk -F "," '{print $3}'`...
2,209
Posted By znesotomayor
Done on rephrasing Sir RudiC. please let me know...
Done on rephrasing Sir RudiC. please let me know if you have question. my head hurt because of this. i don't know what to do T_T

---------- Post updated at 12:26 PM ---------- Previous update was...
2,209
Posted By znesotomayor
I'm stuck on how to put all that condition. all...
I'm stuck on how to put all that condition. all my testing is wrong. my output is always file1.class although the 4th column is only 888 and 0. it's contradictory
2,209
Posted By znesotomayor
Condition problem
Hi All,

Seeking for your assistance on how to condition it correctly.


cat file1.txt
290,1663,43,888,0,0.00,86.91,0.00,26.98,0.00
290,1663,52,0,0,0.00,0.00,0.00,0.00,0.00...
891
Posted By znesotomayor
I'm using shell Sir Rudic.
I'm using shell Sir Rudic.
891
Posted By znesotomayor
Fileformat checking
Hi All,

Seeking for your assistance to output the file if there's a wrong format in the file name.


ex.
i have a file name
Correct Format: ar1010001a16.zip
Invalid Format: ar1a1001416.zip
...
2,062
Posted By znesotomayor
No Sir Don. because i want to put it in the loop...
No Sir Don. because i want to put it in the loop statement. i don't know how to list it. all i can list is all the h15.

ls *h15*.zip

i tried also
ls *h>15*.zip ---ambigous redirect

but my...
2,062
Posted By znesotomayor
How to list files with specific condition?
Hi All,

Seeking for your assistance on how to list all files with letter h15 above on files.


ex.
ab0320443h14.zip
ab0320443b13.zip
ar0330016b15.zip
ar0330016h15.zip
ar0330267a16.zip...
766
Posted By znesotomayor
Thank you very much Sir Don. It's now working :)
Thank you very much Sir Don. It's now working :)
766
Posted By znesotomayor
How to list 2 files?
Hi All,

Seeking for your assistance on how to list all the ab with 15 and 16 on the last 2 characters before period.


ex:
abcdef14.zip
ab432116.zip
ab2353215.zip
adcfef13.zip

output:...
1,856
Posted By znesotomayor
Thanks Sir Rudic. what i did was i put it in the...
Thanks Sir Rudic. what i did was i put it in the for loop statement.

BR,
1,856
Posted By znesotomayor
Get all last 4 characters of files
Hi All.

Seeking for your assistance to get all the last 4 characters of each file before "." and put it in the variable


ex.
abcdZWU1501.csv
abcdXYZ1501.csv
abcdEFG1502.csv
abcdHIJ1501.csv...
1,498
Posted By znesotomayor
Hi Sir, How can i call the variable inside...
Hi Sir,

How can i call the variable inside my config file?

Thanks,
1,498
Posted By znesotomayor
How to put variables commands in config files?
Hi All,

Seeking for your assistance on how to put in variables all the commands in /bin

config files: /home/test/config_file/config.cfg
cat /home/test/config_file/config.cfg
ECHO=/bin/echo...
Showing results 1 to 25 of 72

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