Search Results

Search: Posts Made By: snowfrost
2,212
Posted By snowfrost
Hi Scrutinizer, Is it possible for me to...
Hi Scrutinizer,
Is it possible for me to assign the value to a variable instead of just printing out on screen ?


var=awk 'sub(/^TRL0*/,x)' file
echo $var


Sorry. I am not that familar...
2,212
Posted By snowfrost
Hi Scrutinizer , Thanks . Is it possible...
Hi Scrutinizer ,
Thanks .
Is it possible for me to eliminate leading non valid chars for numbers?

Example :
0000000002

To get 2 as the variable instead.

Thanks
2,212
Posted By snowfrost
Hi Fundix, Input File : AAAAAAAAAAAAAAAA ...
Hi Fundix,

Input File :
AAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCC
TRL0000000258

When I try to code using awk ' /^TRL/ {sub(/TRL/, "") ; print } ' $src_file, it will prompt me for...
2,212
Posted By snowfrost
Retrieving values from a line in text file
Hi,
I am new to Unix/ksh script and will like to check how do I retrieve just the count of '258' in the last line in a text file ?
There will be this "TRL" appended with number of count at the...
11,732
Posted By snowfrost
When i sent with an attachment(text file), the...
When i sent with an attachment(text file), the format for my text file is incorrect. Some of the fields went to the next line. I have already changed unix2dos.If i use EditPlus or UltraEdit to open...
2,503
Posted By snowfrost
Hi radoulov, Thanks so much for your help !
Hi radoulov,
Thanks so much for your help !
2,503
Posted By snowfrost
Hi, How do i code to remove for example this...
Hi,
How do i code to remove for example this sentence "PL/SQL procedure successfully completed." in a text file?I need to find this sentence and remove it.

Thanks.
2,503
Posted By snowfrost
Hi radoulov , What does #* means? will the...
Hi radoulov ,
What does #* means? will the word "TOTAL" and "RECORDS" be capture into the variable if i do not do a find using "TOTAL" and "RECORDS"?
What if in my textfile contains the below:...
2,503
Posted By snowfrost
plugging out value from a textfile
Hi,
need some help from all of you as i'm a beginner in shellscript. Currently i have a textfile(filename.txt) with the below content:

TOTAL: 30
RECORDS: 300
anyone one know how do i plug...
Showing results 1 to 9 of 9

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