Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: tostay2003
2,879
Posted By tostay2003
Please find my response below I just get...
Please find my response below


I just get "Killed" message


Size is approx 60 GB


It is getting killed approx at 50GB


There is around 500 GB on the filesystem


Linux...
2,879
Posted By tostay2003
Iconv on large files
Hi All,

I am using iconv to convert huge files. the process is getting killed. I tried the option in below link

https://www.unix.com/shell-programming-and-scripting/258825-iconv-large-files.html...
1,000
Posted By tostay2003
Hi, Please find the below responses. ...
Hi,

Please find the below responses.



Linux 2.6.32-573.7.1.e16.x86_64
GNU sed version 4.2.1



I am unaware of how the source file was processed



en_US.UTF-8


I wanted the...
1,000
Posted By tostay2003
Positional insertion for multibyte characters
Hi

I have a requirement to insert a dot "." after a position in each line, say 110th position.

For which, I have written the below command.

cat filename | sed 's/./&\./110' > new_filename
...
5,499
Posted By tostay2003
Hi, I need the byte count in a line...
Hi,

I need the byte count in a line (ignoring the newline character). Currently wc -c is giving me the byte count and length function within awk is giving me the character count.

Thanks &...
532
Posted By tostay2003
SORRY REPOST - unable to remove
Hi,

I have a requirement to fetch the length of a line within awk. I see that wc -c returns the number of bytes consumed, which is my requirement. However, the "length" function does not return...
5,499
Posted By tostay2003
UTF-8,16,32 character lengths using awk
Hi All,

I am trying to obtain count of characters using awk, but "length" function returns a value of 1 for 2-byte or 3-byte characters as well unlike wc -c command.

I have tried to use the...
884
Posted By tostay2003
Regular expression match
echo 20110101 | awk '{ print match($0,/^((17||18||19||20)[0-9][0-9]|[0-9][0-9])-*([1-9]|0[1-9]|1[012])-*([1-9]|0[1-9]|[12][0-9]|3[01])$/))
I am getting a match for the above, where as it shouldn't,...
6,909
Posted By tostay2003
In all the below cases (for eg.) the result...
In all the below cases (for eg.) the result should be "1234"
abc.1234.xyz.456.999
abc.1234testing456
abc1234testing456
1234abctesting456

Result :1234

I do not have system in front of me....
6,909
Posted By tostay2003
Hi, Thanks for the detailed description. ...
Hi,


Thanks for the detailed description.

I tried changing the below sed to fetch the first available numeric, but was unable to get the results.

echo "testing.123.xyz.456.txt" | sed -n...
6,909
Posted By tostay2003
Great.. This works... is ^ in square brackets...
Great.. This works... is ^ in square brackets used as a negation?
6,909
Posted By tostay2003
sed -n 's/.*\.\([0-9]\{1,\}\)\..*/\1/p' I...
sed -n 's/.*\.\([0-9]\{1,\}\)\..*/\1/p'

I had it slightly wrong, but I got the idea of \{1,\}

However when I have the value such as

echo "testing.123.xyz.456.txt" | sed -n...
6,909
Posted By tostay2003
Curly braces in sed
Hi,

I have below command in one of the script. Can you please let me know what does the curly braces do over here \{1,\}. The remaining part of the code atleast I am able to understand.

sed -n...
3,346
Posted By tostay2003
Semaphore - lockfile/flock
Hi,

I have a process which can run one instance at a time. Currently we have multiple scripts trying to kickoff this process. I wanted to implement the semaphore mechanism to achieve this.

I...
6,960
Posted By tostay2003
Hi, Sorry for digging the old thread....
Hi,

Sorry for digging the old thread. Please let me know if I have to open another thread.

Can you please let me know how you have the number 200 instead of dec 128.

I want to remove...
6,960
Posted By tostay2003
echo $LANG produces the below result echo...
echo $LANG produces the below result

echo $LANG
en_US.UTF-8

Shell and OS
korn shell (Version AJM 93t+ 2010-06) on Linux OS (2.6.18)


Apologies, I am unable to copy and paste results to...
6,960
Posted By tostay2003
Hi Don, I am making these changes using korn...
Hi Don,

I am making these changes using korn shell (Version AJM 93t+ 2010-06) on Linux OS (2.6.18)

I will check and provide you the results on monday when I have the system in front of me
...
6,960
Posted By tostay2003
Hi Don, I want to remove any character...
Hi Don,

I want to remove any character specified as argument (decimal ascii value).

eg. For values 128-140, 145, 147


I am trying to implement below code
tr -d '\145\147\128-\140' <...
6,960
Posted By tostay2003
This is not a homework assignment. It is part of...
This is not a homework assignment. It is part of script which I am currently modifying. I am not well aware of awk. I can do the same using tr or sed. I want to know if there is any function in awk...
6,960
Posted By tostay2003
Hi Don This is a part of script enhancement....
Hi Don

This is a part of script enhancement. The script would take ascii values as input arguments, generally Extended ASCII (i.e. ASCII values >=128 ) and remove them from input file.

Since...
6,960
Posted By tostay2003
Removal Extended ASCII using awk
Hi All,

I am trying to remove (SELECTIVE - passed as argument) Extended ASCII using Awk based on adhoc basis. Can you please let me know how to do it. I have to implement this using awk only.
...
8,570
Posted By tostay2003
Substring AIX ksh
I am trying to obtain a substring in AIX, but unable to obtain result

${var:1:3}
ksh: ${var:1:3}: bad substitution
1,159
Posted By tostay2003
Print range of numbers
Hi

I am getting an argument which specifies the range of numbers. eg: 7-15

Is there a way that i can easily (avoiding loop) print the range of number between and including the specified above. ...
3,263
Posted By tostay2003
Subtract months/days from date
Hi,

Can you please let me know code for the below (in korn shell)

a) Subtract month(s) from given date
b) Subtract day(s) from give date
c) Subtract month(s) from given timestamp
d) Subtract...
542
Posted By tostay2003
Date Conversion
Hi

I want to convert date from one format to the other i.e.

From
Thu Mar 6 15:57:39 2014

To
2014-03-06 15:57:39

Is there any direct command to implement this ?
Showing results 1 to 25 of 73

 

Featured Tech Videos

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