Search Results

Search: Posts Made By: cobroraj
18,489
Posted By cobroraj
This sed command actually do a display of the...
This sed command actually do a display of the file contents till that line. But it does not physically remove those lines from the file. Is it that i have to redirect output from this sed command to...
18,489
Posted By cobroraj
deleting lines after a specific line
Basically my requirement is to delete all the lines that follows the below mentioned line. ( delete should include the below line also)

Please help

"Yr, Month, Prod"
18,489
Posted By cobroraj
Deleting rows from csv file
Hello,

I am supposed to process about 100 csv files. But these files have some extra lines at the bottom of the file. these extra lines start with a header for each column and then some values...
5,510
Posted By cobroraj
Got most of it. Thanks a lot. Only one which i...
Got most of it. Thanks a lot. Only one which i did not get is the meaning of 1,$ after the printf. s/see/saw/g is same as we use for stream ed.

Thanks and regards
5,510
Posted By cobroraj
Thank you so much.. This is working fine. ...
Thank you so much.. This is working fine.

One more request please could you explain the command line
printf '1,$s/see/saw/g\nwq!\n' | ex -s "${i}" as i am not much familiar with this. Is it...
5,510
Posted By cobroraj
Even this was not successful onetest.sh ...
Even this was not successful


onetest.sh
r1.txt r2.txt

Substitute pattern match failed
r1.txt
Substitute pattern match failed
r2.txt
Substitute pattern match failed

Is there anything...
5,510
Posted By cobroraj
whats wrong with this code..please #!/bin/sh...
whats wrong with this code..please

#!/bin/sh
allone=`ls *.txt`
echo $allone
for i in ${allone}
do
echo $i
sed -s /${i} <<EOF
g/see/s/see/saw/g
w
q
EOF
done

i have two text files in...
5,510
Posted By cobroraj
when i give sed -i. It throws an error $sed...
when i give sed -i. It throws an error

$sed -i -e s/see/saw/g *.txt

sed: illegal option -- i


Thanks
2,429
Posted By cobroraj
Excellent. Thanks a lot.
Excellent.

Thanks a lot.
2,429
Posted By cobroraj
directing output to multiple files
I have a script in which some outputs are directed to one file

echo "Load Started" >>${LOGFILE1}

If I have another file LOGFILE2 and i want to redirect the output of the above echo command to...
5,510
Posted By cobroraj
Thanks for the reply. But this command will just...
Thanks for the reply. But this command will just display the term replaced by the new term, not that the changes actually takes place in the file. Even if we redirect the output to a different file ...
1,925
Posted By cobroraj
Find and Replace from files
Is there any command which I can apply from the command line to find and replace a particular text say "00:00:00:00" with "00" from all the files( where ever this text exists) of the current...
5,510
Posted By cobroraj
editing files
Is there any command which I can apply from the command line to find and replace a particular text say "00:00:00:00" with "00" from all the files( where ever this text exists) of the current...
3,450
Posted By cobroraj
i am sorry for that..thanks
i am sorry for that..thanks
3,450
Posted By cobroraj
/path/to/file.log IS A FILE THAT HOLDS THE...
/path/to/file.log IS A FILE THAT HOLDS THE MATTER.THERE IS NOTHING OTHER THAN THAT.
3,450
Posted By cobroraj
Sendmail
HI CAN ANYBODY HELP ME? I HAVE COME ACROSS A PROBLEM. I AM USING SENDMAIL IN HP-UX IN THE FOLLOWING MANNER

/usr/sbin/sendmail -t someone@someplace.com < /path/to/file.log

BUT THE RECEIPIENT...
2,152
Posted By cobroraj
Sendmail
HI CAN ANYBODY HELP ME? I HAVE COME ACROSS A PROBLEM. I AM USING SENDMAIL IN HP-UX IN THE FOLLOWING MANNER

/usr/sbin/sendmail -t someone@someplace.com < /path/to/file.log

BUT THE RECEIPIENT...
6,174
Posted By cobroraj
Passing a unix variable value to a Plsql function
Suppose I have a unix variable called RGNM which is holding a value. Now I want to call a plsql function in my script. THis plsql function takes one IN parameter. I want to pass my UNIX VARIABLE...
5,240
Posted By cobroraj
Thanks for the reply. I shall try the first one....
Thanks for the reply. I shall try the first one. But the second one is just executing the function, not catching the values.

Thank you so much
5,240
Posted By cobroraj
calling plsql function in a unix script
Could anyone please help me. I have a function in plsql that returns a number. But i am listing some records through that function using DBMS_OUTPUT.PUT_LINE. I want to catch those records by...
Showing results 1 to 20 of 20

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