Search Results

Search: Posts Made By: Pablo_beezo
Forum: Red Hat 02-09-2012
1,695
Posted By Pablo_beezo
grep problem
Hi,

I am running a command line from a solaris command line onto a red hat linux:

Solaris line works:

TODAY2="Feb"
TODAY3="08"
TODAY4="2012"

search4=">>> file process at ... ${TODAY2}...
3,749
Posted By Pablo_beezo
thanks fro your help
thanks fro your help
3,749
Posted By Pablo_beezo
Hex value search in a csv
I have looked at other posts on this and cannot get what I need,

I have a csv file (UTF -8) that has corrupt data in:

"p.fażżżż","ażżża","","","",""

The hex value for the upside down ? is...
2,990
Posted By Pablo_beezo
hi thanks for all the replies Thanks to...
hi thanks for all the replies

Thanks to Devaraj, your code worked great
2,990
Posted By Pablo_beezo
apologies I don't use perl, so i don't understand...
apologies I don't use perl, so i don't understand the code
2,990
Posted By Pablo_beezo
Add additional numbers to file
I need to change the following field from:


"7/3/2009 7:07:12 PM","12345676","ok","8674"
"6/3/2009 8:07:12 PM","12345676","ok","8674"
"5/1/2009 7:07:12 PM","12345676","ok","8674"
"4/9/2009...
3,017
Posted By Pablo_beezo
thanks for all the replies, vivekraj, i get...
thanks for all the replies,

vivekraj, i get a syntax error in your code

syntax error at line 12 : `((' unexpected

I'm using KSH (solaris)
3,017
Posted By Pablo_beezo
Thanks for the reply, I have over 1000...
Thanks for the reply,

I have over 1000 different date and time formats, what you have said above if i did that in my script it would work of system date, how can i get it to read the actual date...
3,017
Posted By Pablo_beezo
Date Manipulation
I have a file with a field containing the following:


"7/3/2009 7:07:12 PM","xxxx"

I need to be able to split this field up into two into a different format with the time being converted into...
1,213
Posted By Pablo_beezo
sorted it did the following: VAR=`TZ=BST+HH...
sorted it did the following:

VAR=`TZ=BST+HH date +%d/%m/%Y`
1,213
Posted By Pablo_beezo
Issue searching for Date
I have an issue regarding searching for old dates.

At the moment I search a field within a file for the last 3 days from the system date:

using today as 25/02/2010

DD=$(expr `date +%d` - 1)...
7,126
Posted By Pablo_beezo
echo "test" | mailx -r whofrom -s "hello"...
echo "test" | mailx -r whofrom -s "hello" whoto
9,033
Posted By Pablo_beezo
Password protect a zip file
Hi,

I'm working on Solaris 9 and i need to unzip a password protected zip, which i can do using

zip -Ppassword filename

however when i have done what i need to do with the file is to zip the...
1,444
Posted By Pablo_beezo
grep / nawk issue
I have a report which contains the following:

Count Value %

47 [ ] 69.12
18 [0 ] 26.47
3 [ 0] 4.41

I want to grep the total on the bottom...
1,949
Posted By Pablo_beezo
Thanks for all replies, finally worked it out: ...
Thanks for all replies, finally worked it out:

grep "\[ *\] *100.0" file
1,949
Posted By Pablo_beezo
thanks for the reply, however i get no results...
thanks for the reply, however i get no results from any of the solutions
1,949
Posted By Pablo_beezo
Issue with grep
I have a file that has the following:

591066 [ ] 100.0
591066 [ ] 100.0
591066 [ ] 100.0
591066 [N] 100.0
591066 [ ] ...
5,521
Posted By Pablo_beezo
It worked...... thanks so much Jean Pierre...
It worked......

thanks so much Jean Pierre and everyone else that has posted, I will use code tags in the future

thanks
5,521
Posted By Pablo_beezo
please see below Jean Pierre: out put from...
please see below Jean Pierre:

out put from grep '^-' x.log | od -cx:

0000000 - r w x r w x - - - 1 n
2d72 7778 7277 782d 2d2d 2020 ...
5,521
Posted By Pablo_beezo
copied everything you have done in your thread...
copied everything you have done in your thread Jean Pierre and i get:

with quotes:

abc.csvdef.csv

I am struggling to understand why it is not doing this. I am usin g KSH
5,521
Posted By Pablo_beezo
the space does this to filelist.dat: abc.csv...
the space does this to filelist.dat:

abc.csv
(space)def.csv

when i set this file to a variable i get:

echo $files_found:

(space)def.csvbc.csv
5,521
Posted By Pablo_beezo
Hi Jean-Pierre, replaced with nawk but got...
Hi Jean-Pierre,

replaced with nawk but got this output:

abc.csvdef.csv

I need them seperating, like below?

abc.csv
def.csv
5,521
Posted By Pablo_beezo
this code produced a syntax error bailing...
this code produced a syntax error

bailing out at line 1
5,521
Posted By Pablo_beezo
thanks for the reply but even with double quotes...
thanks for the reply but even with double quotes i get:

abc.csvf.csv

????
5,521
Posted By Pablo_beezo
Issue with a file that contains CRLF
I have a nawk that reads in a log file and outputs a file that matches my search.

IFS=" "
while read record
do
`echo $record | nawk 'BEGIN {
FS=" "
}...
Showing results 1 to 25 of 101

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