10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
The bash below executes and does find all the .bam files in each R_2019 folder. However set -x shows that the .bam extension only gets removed from one .bam file in each folder (appears to be the last in each). Why is it not removing the extension from each (this is $SAMPLE)? Thank you :).
set... (4 Replies)
Discussion started by: cmccabe
4 Replies
2. Shell Programming and Scripting
Hi All,
When i do find command i am getting result which append ./ before the file name. For example if i am trying to search aaa.txt in current directory i am using find like this:
$ find . -name aaa.txt
result:
./aaa.txt
Now i want to remove "./" from the file name. Can some body... (5 Replies)
Discussion started by: VasuKukkapalli
5 Replies
3. Shell Programming and Scripting
hello im working on shell script to search conf file.
if it find special pattern change it. like:
#send_value=0
change it to
send_value=1
(remove # and replace 0 with 1)
how can i find and replace character on file? (1 Reply)
Discussion started by: nimafire
1 Replies
4. Shell Programming and Scripting
I am trying to get multiple strings removed or replaced with space in a file, for individual strings I have been using the following and it works
sed -e 's/#*#*//g' test_1.dat > test_2.dat
what needs to be done if multiple strings are to be removed?
For example I will need to remove the... (3 Replies)
Discussion started by: btt3165
3 Replies
5. Shell Programming and Scripting
hi ,
how do i remove # from a line where i found regex..
don't need to remove all the line.. only remove comment.. (3 Replies)
Discussion started by: Poki
3 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I have wrote a command to find a and remove all *.apr files ina directory .
Now i got the request as reversed , They want to remove all files except *.apr in the direcory .
Is it possible to do that in a find comand else i have give an explicit find command to all *. files to... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I am aware of that Find command finds certain files and remove command removes certain files.
However, is there a way to Find certain DIRECTORY and remove that DIRECTORY?
thank you (3 Replies)
Discussion started by: scooter17
3 Replies
8. UNIX for Dummies Questions & Answers
thank you for the help. (1 Reply)
Discussion started by: scooter17
1 Replies
9. Shell Programming and Scripting
Hello,
I create a file touch 1201093003 fichcomp
and inside a repertory (which hava a lot of files) I want to list all files created before this file :
find *.* \! -maxdepth 1 - newer fichcomp but this command returned bash: /usr/bin/find: Argument list too long
but i make a filter all... (1 Reply)
Discussion started by: yacsil
1 Replies
10. UNIX for Dummies Questions & Answers
I have a script that is run each night by cron. This script generates an extract then places it into an 'extracts' folder and also ftp's a copy to another server.
I have set up the script to remove any files in the extracts folder greater than 28 days old (this occurs each time the script is... (1 Reply)
Discussion started by: peter.herlihy
1 Replies