10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have two questions:
the first is I have a line of code:
printf "What is the id of the patient getting GJB2 analysis : "; read id that stores a user input in a variable $id in the python directory c:/Users/cmccabe/Desktop/Python27/$id.txt
Using rm I get the error cannot remove ... (21 Replies)
Discussion started by: cmccabe
21 Replies
2. UNIX for Dummies Questions & Answers
hi,
I want to remove first word in all files where first and second word is seperated by comma.
example: a file contains Apple,mango.
i need only mango shoule be there in the file???
Apple, should be removed!!!!!
can anyone help me out???
thanks in advance,
Arun Manas:b: (2 Replies)
Discussion started by: arunmanas
2 Replies
3. Shell Programming and Scripting
KSH
A simple remove command is not workin for me. The user has all the access and the return code after remove command is 0. But I am still able to find the file. I have the code as below.
tmplog=/tmp/$fl_nm.$$
main () {
--set of statments
rm -fr $tmplog
RC=$?
} (2 Replies)
Discussion started by: tostay2003
2 Replies
4. AIX
I need to delete some files which are not getting removed not even from root user
-rw-r----- 1 ptml tellin 0 Jul 26 19:23 temp.out1
-rw-r----- 1 ptml tellin 0 Jul 26 19:23 temp.out
-rw-r----- 1 ptml tellin 2 Jul 26 19:23 prev
-rw-r----- 1... (4 Replies)
Discussion started by: m_usmanayub
4 Replies
5. UNIX for Dummies Questions & Answers
I have a file from which the Header and the Trailer lines need to be removed. They are confirmed to be the first and the last lines in the file.
I have tried a few commands, but not successful yet. It needs to be implemented urgently, hence any help is greatly appreciated.
Raghu
----------... (1 Reply)
Discussion started by: ragz_82
1 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
Is there an option for 'rm' to "remove everything but these files"?
For instance if I have:
a.txt <-- I just want to remove this one
a_1.txt
a_2.txt
Is there an option ? for this:
rm -? *_*.txt
Thanks,
ScKaSx (4 Replies)
Discussion started by: ScKaSx
4 Replies
7. UNIX for Dummies Questions & Answers
find /app01/tomcat_local -name *jsp* -type f -exec rm -r {} \;
I would assume the above is just deleting any *jsp* below the /app01/tomcat_local directory - is this correct as its seems to delete more than I expect.... (1 Reply)
Discussion started by: frustrated1
1 Replies
8. Shell Programming and Scripting
I have directory IXNPG7 under which i have seen file ads.c , ads.gif ,
ads.js and lots more with extension .html
I tried to remove the Entire Directory with rm -Rf IXNPG7
but it is saying -- Directory Not empty can't remove
Secondly i tried removing all the files first
using rm *.*... (7 Replies)
Discussion started by: jambesh
7 Replies
9. UNIX for Dummies Questions & Answers
Hi,
First time on the forum. I have converted some files using the Unix to DOS command but need to strip off the last record that is generated from this conversion that contains just a ^Z. Is there any command that would accomplish this without having to do stream editing? (4 Replies)
Discussion started by: mheinen
4 Replies
10. UNIX for Dummies Questions & Answers
I want to run the 'locate' command and then remove what the command finds.
My guess was, locate blahblah |rm -f
but this does not work.
Thanks! (3 Replies)
Discussion started by: jasonr
3 Replies