Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: risshanth
4,091
Posted By risshanth
/usr/xpg4/bin/tr command works. Thank you...
/usr/xpg4/bin/tr command works.

Thank you all.
4,091
Posted By risshanth
Red Hat: od -bc file1 0000000 141 040 142...
Red Hat:

od -bc file1
0000000 141 040 142 040 000 040 144 040 032 012
a b \0 d 032 \n

cat file1 | tr '\32' ' ' > file2

od -bc file2
0000000...
4,091
Posted By risshanth
Hmm .. I was not sure so wanted to check with...
Hmm .. I was not sure so wanted to check with you. Can you please tell me how to insert a NULL in vi editor ?

I don't want to touch the production file.
4,091
Posted By risshanth
did you try it in Solaris or Red hat ?
did you try it in Solaris or Red hat ?
4,091
Posted By risshanth
Still, the NULL is also getting deleted (\0). ...
Still, the NULL is also getting deleted (\0). How can i delete only 032 (^Z) ?
4,091
Posted By risshanth
Replace ^Z Character
Hello,

I am trying to replace all ^Z chars in my file to a space using the following command:


cat <file> | tr '\32' ' '


But the above command is deleting all NULL in the file. Hence the...
1,281
Posted By risshanth
I did the testing after removing the escape char...
I did the testing after removing the escape char from del.txt
And, the echo was from my testing only

Thank you guys
1,281
Posted By risshanth
Thank you so much !!!!!!
Thank you so much !!!!!!
1,281
Posted By risshanth
Folder name with spaces
Hello,
When I give:
rm -f /usr/local/tomcat/temp_img/\Images\ for\ UAT/0918-721-163-001-4C-P_04.jpg
, the file is being deleted.

I am trying to do the same in a script as follows:

Step 1:...
8,920
Posted By risshanth
XARGS and FIND together
I am trying to delete files older than 60 days from a folder:

find /myfolder/*.dat -mtime +60 -exec rm {} \;

ERROR - argument list too long: find

I can't just give the folder name, as there...
2,336
Posted By risshanth
How to create a file more than 2GB
Hi,
I am executing a SQL query and the output is more than 2GB. Hence the process is failing. How can I have a file created more than 2GB ?

Thanks,
Risshanth
2,859
Posted By risshanth
Encoding Type
Hi,
Where can I find the encoding type in a unix server ?

Thanks in advance !!!
2,576
Posted By risshanth
Date -7
Hi,
I want to know the date previous to 7 days from current date. I need
date -7.

Thanks in advance .....

Risshi
2,902
Posted By risshanth
unable to do "ls" with more than 90000 files
Hi,

My code is as follwos:

for trg_file in `ls -tr *.trg`
do
<process>

done


The process to be done for each and every file with extension as .trg

When i execute the script I...
3,125
Posted By risshanth
unable to list the files
Hi,

$ ls -ltr *.log

Error :
argument list too long: ls

How to rectify this ?
3,244
Posted By risshanth
Hi
The time calculating stuff i clear. What does the following does:

trap "sleep 1; exit" USR1 in the main code.

Please explain this in detail.

Thanks....
3,244
Posted By risshanth
Date and time difference
Hi,

I am starting a process at 9 pm today and want to exit the process by 5am, the next day. Every day at 9pm the shell script will be invoked by autosys.
But how can i monitor in my script...
2,281
Posted By risshanth
hi funibone, I am getting this error :...
hi funibone,
I am getting this error : test1.ksh[12]: fg: job control not enabled , when i added fg in test1.ksh
Also the test2.ksh did not start. Wat to do ??
hemant, can you please expalin...
2,281
Posted By risshanth
hi hemnath
thanks .. thats working ..

is there any other solution .. coz i may have a requirement like output should be displayed on the screen .. In that case your solution will not work ..
2,281
Posted By risshanth
Even without eixt its not working..
Even without eixt its not working..
2,281
Posted By risshanth
Tired that too... Its not working .. It is...
Tired that too... Its not working .. It is expecting the user to press the enter key to exit back to the shell prompt.....
2,281
Posted By risshanth
Executing scripts in back ground
Hi,

Test1.ksh
#! /bin/ksh
for i in $*
do
#echo "$i"
ksh test2.ksh $i &
done


test2.ksh
#! /bin/ksh
sleep 5s
echo "From Test 1 ==> $1"
exit 0;


I am executing as follows:...
4,163
Posted By risshanth
I tired that too.. That is giving correctly.. ...
I tired that too..
That is giving correctly..

wat else can be done ...
4,163
Posted By risshanth
usage of ps -ef
Hi,
I can have only one instance of my script running at any point of time. So I have :
SCRIPT_NAME=$0
if [ `ps -ef | grep " ${SCRIPT_NAME}" | grep -v "grep" | wc -l` -gt 1 ]; then
echo "The...
1,999
Posted By risshanth
usage of same variable in multiple scripts
Hi,

I have a .test file which has:
#!/bin/ksh
export TEST_FLAG=1

In the test1.ksh i have:
#!/bin/ksh
. .test
echo $TEST_FLAG

When i execute the test1.ksh its showing the value as 1....
Showing results 1 to 25 of 76

 

Featured Tech Videos

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