Search Results

Search: Posts Made By: sudhamacs
Forum: Linux 04-29-2010
7,491
Posted By sudhamacs
No change as per the content and behavior.
No change as per the content and behavior.
Forum: Linux 04-28-2010
7,491
Posted By sudhamacs
When you hit space bar it goes to the next...
When you hit space bar it goes to the next character in VI editor. At the end of line, in Solaris it stops and doesn't go to the next line. But in Linux it goes to the first character of the next...
Forum: Linux 04-28-2010
7,491
Posted By sudhamacs
Space bar issue in Vi editor on Linux - Solaris
Hi I have a process generating a file in Solaris. Now we have migrated the process to Linux. When we open the file in vi on solaris and hit space bar, it stops after reaching the end of line. But in...
2,301
Posted By sudhamacs
Thanks.
Thanks.
2,301
Posted By sudhamacs
Its erroring out saying
Its erroring out saying
2,301
Posted By sudhamacs
Rearranging columns
Hi,
I have an input file as follows :

input.txt

abcdTXXqwe
axdfSYYrew
dasgTXXqwt
gtfsTYYwer
gadfSXXerw
gwerSYYTXX

Now I have to get four output files.

output1.txt should have the...
Forum: Linux 10-02-2008
22,831
Posted By sudhamacs
I felt this is the appropriate forum for this...
I felt this is the appropriate forum for this post. I don't see a way to delete the earlier post. Anyway the thread has been closed.

Any clue on killing a process without kill command?

Any help...
Forum: Linux 10-01-2008
22,831
Posted By sudhamacs
Kill a process without using kill command
I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS.
10,770
Posted By sudhamacs
Kill a process without using kill command
Sorry, posted the question in other forum.
1,440
Posted By sudhamacs
what did u try?
what did u try?
1,280
Posted By sudhamacs
find "$j" -type d -perm +o=w -print for me...
find "$j" -type d -perm +o=w -print

for me this works fine.
Can you paste the contents of the path.txt?
6,612
Posted By sudhamacs
What is the error that u r getting? PS:U can...
What is the error that u r getting?

PS:U can place 2>error.log in ur cron script to get the error messages logged to a file.
2,585
Posted By sudhamacs
awk -F, '{if(substr($4,1,3)=="923" ||...
awk -F, '{if(substr($4,1,3)=="923" || substr($4,1,3)=="922") print $0; else print $1","$2","$3","$4","$5","$6","$7",Invalid subscriber."}' file
4,745
Posted By sudhamacs
What is your operating system? What does the...
What is your operating system?
What does the following give?
ls -lrt /dev/null

Check if this works?
ls -ld /usr /foo 2>/directory_where_u_have_permissions_to_write/err.txt
1,540
Posted By sudhamacs
using || for piping? it should be |
using || for piping? it should be |
5,172
Posted By sudhamacs
1.) awk '{ gsub(/-/,"",$0); for ( i = NF; i > 0;...
1.) awk '{ gsub(/-/,"",$0); for ( i = NF; i > 0; i-- ) printf("%s ",$i); printf("\n");}' <file>
5,815
Posted By sudhamacs
That looks good to me. Are you trying to...
That looks good to me.
Are you trying to replace WORD 8 8 8 with WORD 10 10 10 ??? Then it check the values of the variables, as in the above u r trying to replace all 10 with 12 after WORD on all...
5,815
Posted By sudhamacs
Run ur script using sh -x and check what is the...
Run ur script using sh -x and check what is the sed command that is getting executed.
5,815
Posted By sudhamacs
This doesn't work for me : If using...
This doesn't work for me :


If using variables in sed then use double quotes. Try this :
1,838
Posted By sudhamacs
sed 's/[ ]*([^)]*)[ ]*/ /g'
sed 's/[ ]*([^)]*)[ ]*/ /g'
16,696
Posted By sudhamacs
Duplicate Post :...
Duplicate Post : https://www.unix.com/unix-advanced-expert-users/78538-urgent-help-required-awk-sed-help-find-pattern-delete-till-end-line.html
2,426
Posted By sudhamacs
awk '{if($3<"22:30" && $2 <"26") print $0 >...
awk '{if($3<"22:30" && $2 <"26") print $0 > "processed.txt"; else print $0 > "nottoprocess.txt";}' inputfile
Just a temporary solution. Actually u need to work on date comparison.
1,563
Posted By sudhamacs
split -l 23 logfile; paste -d' ' xa* | awk...
split -l 23 logfile; paste -d' ' xa* | awk '{printf("\n%s ",$3); for(i=1;i<NF;i=i+3) printf("%s ",$i);}' > outfile.

Probably u can work on the header line...
2,195
Posted By sudhamacs
echo $variable | tr ' ' '\n'
echo $variable | tr ' ' '\n'
14,589
Posted By sudhamacs
Try this, I am not sure whether it works or not...
Try this, I am not sure whether it works or not as i don't have oracle database.

#! /usr/bin/ksh
sqlplus user/pwd@database<<EOF
! for usr in `cat usernames.txt`
! do
drop user $usr;
!done...
Showing results 1 to 25 of 101

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