Search Results

Search: Posts Made By: tsurendra
2,411
Posted By tsurendra
No joy, I have tried it and it is not producing...
No joy, I have tried it and it is not producing any output
2,411
Posted By tsurendra
thanks for that. But its throwing the error...
thanks for that.

But its throwing the error

awk: syntax error near line 1
awk: bailing out near line 1
2,411
Posted By tsurendra
Input Newyork -10 London 20 Mumbai...
Input


Newyork -10
London 20
Mumbai #N/A
Dubai
Paris 10.45



Output


Newyork Negative value
London 20
Mumbai Invalid value
Dubai No value
Paris 10.45
2,411
Posted By tsurendra
I am giving more details about my requirement I...
I am giving more details about my requirement
I got a file which has two columns, first column is of city and the second is of temperature
I search for the city and get the temperature value and...
2,411
Posted By tsurendra
Thanks for that I am using ksh on sun...
Thanks for that

I am using ksh on sun solaris

Thats throwing an error

"${A//-}": bad substitution

I need the help to validate the value either using if or case, please provide for...
2,411
Posted By tsurendra
I am getting the below error when I tried that ...
I am getting the below error when I tried that

syntax error at line 4 : `=~' unexpected

Please advice
2,411
Posted By tsurendra
Value validation
Hi All


I am trying to validate a value using if condition

requirement is need to check whether its a valid numeric value

the input contains ( space, #N/A and negative and positive...
Forum: AIX 02-20-2013
4,132
Posted By tsurendra
0000000 55 4e 42 2b 55 4e 4f 41 3a 33 2b 35 39...
0000000 55 4e 42 2b 55 4e 4f 41 3a 33 2b 35 39 30 39 30
0000020 30 30 37 38 39 30 36 37 3a 31 34 2b 35 30 30 30
0000040 31 31 39 30 30 30 30 30 36 3a 31 34 2b 31 33 30
0000060 32 31 39 3a 30...
Forum: AIX 02-20-2013
4,132
Posted By tsurendra
LANG=en_GB LC_COLLATE="en_GB" ...
LANG=en_GB
LC_COLLATE="en_GB"
LC_CTYPE="en_GB"
LC_MONETARY="en_GB"
LC_NUMERIC="en_GB"
LC_TIME=C
LC_MESSAGES="en_GB"
LC_ALL=

I could also see another locale which is specific to the...
Forum: AIX 02-20-2013
4,132
Posted By tsurendra
I couldn't find any special character except...
I couldn't find any special character except space ( showing as sp) using the<code>od -c</code> command.
Forum: AIX 02-20-2013
4,132
Posted By tsurendra
Can't able to view the data in a file using the VI editor
I am unable to view the data in a file using the vi editor.....it is showing as all @ ( at the rate symbols).

When I use the cat command, it showing the data.

Please help me to how to view the...
2,952
Posted By tsurendra
grep -A1 -B1 'Billy' file
grep -A1 -B1 'Billy' file
1,869
Posted By tsurendra
can we acheive using sed or awk because I...
can we acheive using sed or awk

because I dont perl


thanks
1,869
Posted By tsurendra
suppose I dont have any / in my 3 field or...
suppose I dont have any / in my 3 field

or

I want first 4 fields from file


thanks
1,869
Posted By tsurendra
unconstant delimiter
I have file with unconstatnt delimiter for each field which are non-printable characters like tab and space


file

6271 manchester (tab) 11/09/09 200 accepted ...
907
Posted By tsurendra
script1.sh . script2.sh echo $var1 ...
script1.sh

. script2.sh
echo $var1

script2.sh

var1=10
export var1




if you run script1 then you will get the output as 10
907
Posted By tsurendra
by exporting the variable in script2, we can use...
by exporting the variable in script2, we can use that in script1
9,462
Posted By tsurendra
awk -F# '{if(NR!=1)print $0$2FS}' file
awk -F# '{if(NR!=1)print $0$2FS}' file
21,777
Posted By tsurendra
printing fields in reverse order
command/script(apart from awk) to print the fields in reverse order
that is last field has to come first and so on and first field has to go last


Input
...
1,582
Posted By tsurendra
deletion of duplicate characters and count
to delete the duplicate characters in a file I used this code

cat file.txt|tr -s "[a-z]"

tell the other ways using sed

command to count of duplicate characters

thanks:)
1,977
Posted By tsurendra
time command is not working in my system I...
time command is not working in my system

I want to know the otherway

thanks
1,452
Posted By tsurendra
provide some clear explanation thanks ...
provide some clear explanation


thanks

need some more information about 3> , &1
Forum: AIX 08-19-2011
1,190
Posted By tsurendra
various problems in aix
I have some doubts


1. Count the number for fields in a file, being separated by "space"

2. Reverse the order of fields in a file

3. Show the date after 10 days from the current date....
1,452
Posted By tsurendra
about different redirection
explain the redirections 1>, 2>, 3>, .....

and 1< ,2<,3<.....

where we use these things


thanks

Thread moved from AIX forum
1,977
Posted By tsurendra
apart from time command , there is any other way ...
apart from time command , there is any other way


thanks
Showing results 1 to 25 of 28

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