Search Results

Search: Posts Made By: Sriranga
38,855
Posted By Sriranga
wow!! :-o
wow!! :-o
38,855
Posted By Sriranga
If I convert the same file to UTF-8 in windows ,...
If I convert the same file to UTF-8 in windows , FTP to the UNIX and use the file command it shows as 'UTF-8 Unicode text'. But why its not happening when I use the iconv command ?
38,855
Posted By Sriranga
ASCII to UTF-8 conversion
I Am trying to change the file encoding from ASCII to UTF-8 using below command

iconv -f ASCII -t UTF-8 <input_file> > <output_file>

But the output_file is not actually in UTF-8 format. If I...
2,322
Posted By Sriranga
on your main box job add below condition - ...
on your main box job add below condition -


days_of_week : mo

on other first job lmn add belwo condition


condition: s(abc)

and make your for other job below condition is there

...
9,907
Posted By Sriranga
simple way if u r new to unix is - 1. find out...
simple way if u r new to unix is -
1. find out total number of lines in the file


$wc -l filename

2. if 'n' is the total number of lines you got, move n-1 lines to another file/same file ...
886
Posted By Sriranga
thanx jayan_jay! it's the exact command i was...
thanx jayan_jay! it's the exact command i was looking out for....!!!
keep up ur good suggestions.
886
Posted By Sriranga
search for a set of characters and move
I want to search/grep for a set of characters in a file(all occurences) and move them to another file.
Any command line?

regards,
Sri
7,824
Posted By Sriranga
Thanks Guru.... It works. What if I have to...
Thanks Guru.... It works.
What if I have to take the count to a variable and use it in some calculation?
7,824
Posted By Sriranga
count of null in pipe delimited txt file
Hi,

I have a pipe delimited txt file which contains 17 fields per line/row.
16th field contains email id. I want to count the number of lines/rows that contains null in the 16th field.

Plz...
2,045
Posted By Sriranga
"NO space" is the key to the success. ;) thanx...
"NO space" is the key to the success. ;) thanx Anurag and all for the help. i got my script working perfectly now.
2,045
Posted By Sriranga
thanx Anurag... 1 more quick doubt/ req ;) what...
thanx Anurag... 1 more quick doubt/ req ;)
what if the name of the dir 'qwe' is read a command line argument. that is $1 contains the name of the dir. and I need to assign the path1 =...
2,045
Posted By Sriranga
thanks Anchal...it works ! Still 1 more doubt...
thanks Anchal...it works !
Still 1 more doubt :) is there any way we can assign the path
'/xyz/abc/123/qwe' to a variable and then use it in for loop's condition? like

path1 = /xyz/abc/123/qwe...
2,045
Posted By Sriranga
Thanks Rohan. I am using mkdir -p option. my req...
Thanks Rohan. I am using mkdir -p option. my req is not to create dir1 to dir5 one below the other but to create all 5 under 'qwe'
/xyz/abc/123/qwe/dir1
/xyz/abc/123/qwe/dir2
.
....
2,045
Posted By Sriranga
looping some statements
Hi,
assume there are some dir structure like -

I need to write a script to create 5 new directories under 'qwe' dir of all the above 3 dir structures. these 5 dir will have same name.
I don't...
14,751
Posted By Sriranga
Thanks all for the feedback. I will try the...
Thanks all for the feedback. I will try the options and will reply.
14,751
Posted By Sriranga
find command to list the old...
find command to list the old processes...interesting! can u plz brief what exactly this command line is doing ?

for i in `find /proc/"^[0-9]\{1,\}" -maxdepth 1 -mindepth 1 -type d -mtime +3...
14,751
Posted By Sriranga
Thanks for your replies guys.... but actually TZ...
Thanks for your replies guys.... but actually TZ trick is not working on HP-UX ! am thinking...is my requirement that much dificult in HP-UX ?
14,751
Posted By Sriranga
Guys... all these command lines uses perl. I...
Guys... all these command lines uses perl. I don't have updated perl in my machine. any alternatives.... ?
14,751
Posted By Sriranga
Dude.... its a client production server. I don't...
Dude.... its a client production server. I don't have access to install perl. is it not possible to do it without the help of Perl ?
14,751
Posted By Sriranga
Thanks @Ygemici. I tried the command line you...
Thanks @Ygemici. I tried the command line you provided but returned an error -

ps: command is not a valid field name
Can't locate POSIX.pm in @INC (@INC contains:...
14,751
Posted By Sriranga
Need to list 3 days old processes
ps -xfu <user name> this command line will list all the process currently running for <user name>.
I need to filter this output. I need all the process which are running for more than 3...
3,624
Posted By Sriranga
BINGO ! its working after export. Thanks all...
BINGO ! its working after export.

Thanks all for the help.
3,624
Posted By Sriranga
I set the required environment varibales like...
I set the required environment varibales like ORACLE_HOME and ORACLE_SID. Still not able to get in... i can see a new error now after setting the env var !

Error 6 initializing SQL*Plus
Message...
3,624
Posted By Sriranga
I just checked the mails and found this messge - ...
I just checked the mails and found this messge -
/home/supp1/om/abc/script2.ksh[23]: sqlplus: not found

This is how I am trying to connect to sqlplus -
sqlplus support/support@supp1 << EOF
...
3,624
Posted By Sriranga
Yes. $ORACLE_HOME and $ORACLE_SID are set...
Yes. $ORACLE_HOME and $ORACLE_SID are set correctly. and the script uses full path name when calling other scripts. I can see the successful execution when I run the script directly from shell.
Showing results 1 to 25 of 44

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