10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi All,
I need to write a script to find all "*.sh" files in /home file system and if any string find "*.sh" files with the name vijay@gmail.com need to replace with vijay.bhaskar@gmail.com. I just understood about the find the command to search .sh files. Please help me on this.
find / -name... (3 Replies)
Discussion started by: bhas85
3 Replies
2. Ubuntu
I have tried just about every find and grep command possible and I cannot find these damn files!!
This is the problem:
On the node you just swapped in, there are 5 JPEG files whose names contain the word "intro" in some form. Find all five files from on the entire disk (i.e. from root /).
... (2 Replies)
Discussion started by: dukeu69
2 Replies
3. Shell Programming and Scripting
I have more than 100 files like this:
SVEAVLTGPYGYT 2
SVEGNFEETQY 10
SVELGQGYEQY 28
SVERTGTGYT 6
SVGLADYNEQF 21
SVGQGYEQY 32
SVKTVLGYEQF 2
SVNNEQF 12
SVRDGLTNSPLH 3
SVRRDREGLEQF 11
SVRTSGSYEQY 17
SVSVSGSPLQETQY 78
SVVHSTSPEAF 59
SVVPGNGYT 75 (4 Replies)
Discussion started by: xshang
4 Replies
4. Shell Programming and Scripting
I came across and unexpected behavior with redirections in tcsh. I know, csh is not best for redirections, but I'd like to understand what is happening here.
I have following script (called out_to_streams.csh):
#!/bin/tcsh -f
echo Redirected to STDOUT > /dev/stdout
echo Redirected to... (2 Replies)
Discussion started by: marcink
2 Replies
5. Shell Programming and Scripting
Hi,
I have a directory nsk,
files a.sql, b.sql, c.sql, d.sql,
assuming that I have line 'INSERT ALL INTO abc' in a.sql and c.sql
I need to list a filename, line number and complete line which contains ''INSERT ALL INTO abc' irrespective of case.
also in my files mentioned 'INSERT ALL... (4 Replies)
Discussion started by: sunnix
4 Replies
6. Shell Programming and Scripting
If a file is empty then it must print the message "no data found"
eg:
if then
echo "no data found"
your help is really appreciated. (3 Replies)
Discussion started by: javeedkaleem
3 Replies
7. Shell Programming and Scripting
Hello friends,
I have find a paticular string from the files present in my user
for example:
a username and password is hardcoded in multiple files which present in the my user.so I have to search about username in which files it is available.there are several dirctories are there,so... (5 Replies)
Discussion started by: sivaranga001
5 Replies
8. Shell Programming and Scripting
Hi,
I have a directory has DIR1 and the D1 directory has 200+ files.
I want change the string from "Bangalore" to "Bangaluru" in all files in the D1 directory.
Thanks (2 Replies)
Discussion started by: koti_rama
2 Replies
9. Shell Programming and Scripting
Hi,
I would like to know how to get a list of files that contain a specific string inside them.
Thanks (12 Replies)
Discussion started by: yoavbe
12 Replies
10. Shell Programming and Scripting
Im trying to execute application and its return code is below
IF Status code=o
echo "........"
else Staus Code =-2 DJRE
then echo "......"
Can any one help me how to handle the status code and echo some message. (12 Replies)
Discussion started by: laknar
12 Replies