Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Shell Scripting | Forum profile

Forum profile page for Shell Scripting on http://www.daniweb.com. This report page is the aggregated overview from a single forum: Shell Scripting, located on the Message Board at http://www.daniweb.com. This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period. Additional forum profile information for "Shell Scripting" on the Message Board at http://www.daniweb.com is also shown in the following ways:

1) Latest Active Threads
2) Hot Threads for Last Week

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.

Site: www.daniweb.com - IT Tech Talk - Shell Scripting (site profile, domain info daniweb.com)
Title: Shell Scripting
Url: http://www.daniweb.com/forums/forum113.html
Users activity: 22 posts per thread
Forum activity: 23 active threads during last week
 

Posting activity on Shell Scripting:

  Week Month 3 Months
Threads: 23 35 120
Post: 32 76 262
 

Shell Scripting Posting activity graph:

Posts by:  day  week  month 

Top authors during last week:

Name
Posts
sknake
12
user's latest post:
if the files are not...
Published (2009-11-10 05:13:39)
This should do the trick: Help with Code Tags Shell Scripting Syntax ( Toggle Plain Text ) #!/bin/bash   find /tmp/ - type f -mtime +1 - exec echo { } \; > outfile cnt= ` wc -l outfile | awk '{ print $1 }' `   if [ $ { cnt } -ge "1" ] ; then cat outfile | /bin/mail -s "subject" user@host.com fi   rm outfile...
Hilliard
4
user's latest post:
OMG... simple question driving...
Published (2009-11-09 18:13:53)
I'm using bash... No errors... but the moment I put a $var in place of the two e's, my output gets all jumbled up... and only the last line of the file prints correctly... it is almost like it is reading a new line that is not there... or at least that I am not seeing. What shell did you use? Did you try it with more than one line in the test file?
masijade
4
user's latest post:
file replacement not working!
Published (2009-11-09 00:00:00)
$file_name, not file_name ditto for the other variables use "sed -e" not just "sed" and change $file.new to ${file}.new just to be safe Edit: So many problems, so little text. ;-)
versatileint
3
user's latest post:
OMG... simple question driving...
Published (2009-11-06 06:23:26)
what you are looking for is not clear. can you please post a sample output of what you require
whizkidash
3
user's latest post:
How could I grep a line of text,...
Published (2009-11-07 00:00:00)
Hi , Example as below Suppose u have file called file1 and it contains: vi file1 Hi this line one this is line two this is line three this is line four this is line five Now you want to delete the 1st and 5th line and transfer the remaining lines to newbee file then use sed '1,5d' file1 > newbee Cheers!, Whizkidash
cfajohnson
1
user's latest post:
Counter
Published (2009-11-01 22:52:44)
• • • • Originally Posted by danialit Hi there, I have a unsolved problem here...my scripting do not go as I want, actually I want it to be solving the password in 10 seconds, but my scripting is run the timer and then only run the password solving.... anyone got any idea how to combine it?? Put the function call into the background: Help with Code Tags Shell Scripting Syntax ( Toggle Plain Text ) timer...
deven1974
1
user's latest post:
Uix Script Help Need
Published (2009-11-03 00:00:00)
Can someone can help with this Unix Script? I'm kind of beginner with Unix Script. If someone can help with this? THanks Deven Help with Code Tags Shell Scripting Syntax ( Toggle Plain Text ) f_print_msg { echo "Please choose a file or directory. If you choose a directory you will move into that folder. Enter nothing to exit." read -p "$(pwd) => " choice    ...
ithelp
1
user's latest post:
Uix Script Help Need
Published (2009-11-04 04:00:40)
What is ur script supposed to do but not doing ?
scripter.online
1
user's latest post:
connect to oracle retrieve data...
Published (2009-11-04 14:00:14)
step by step procedure to Connect to oracle database from unix shell script http://www.scripterworld.com/2009/08...from-unix.html
Scriptaholic
1
user's latest post:
Need SFTP script
Published (2009-11-06 15:23:01)
Jackmandu... applaud you sir! Its crazy how people get off on being pretentious on message boards.... if he knew how to get the answer, the problem wouldn't have been posted. Now to answer prabha24107 Place the private key in your $home/.ssh/ directory and call it $whatever.key go into your .profile and create an alias something like alias -x $alias_name="sftp -oIdentityFile=$HOME/.ssh/$whatever.key...
 

Latest active threads on Shell Scripting::

www.daniweb.com - IT Tech Talk
Started 5 days, 7 hours ago (2009-11-07 00:00:00)  by sknake
What shell are you using, and what error are you receiving? It seems to work for me: Help with Code Tags Shell Scripting Syntax ( Toggle Plain Text ) sk@svn:/tmp$ for e in ` cat file .txt`; do echo INSERT INTO \`omstest_omstest\`.\`GEN2_FIELD\` VALUES \ ( NULL, \ '$e \' , \' $e \' , \' 4 \' , \' 2009-10-05 00:00:00 \' , \' 0 \' \' 0 \' \)...
Thread:  Show this thread (5 posts)   Thread info: OMG... simple question driving me nuts Size: 2,873 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: OMG... simple question driving me nuts :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
www.daniweb.com - IT Tech Talk
Started 3 days, 7 hours ago (2009-11-09 00:00:00)  by sknake
Masijade answered your question but i'd like to throw something else in there. You should add checks for your arguments on the command line and verify the file exists: Help with Code Tags Shell Scripting Syntax ( Toggle Plain Text ) #!/bin/bash file_name= $ 1 old_templet= $ 2 new_templet= $ 3 if [ "$3" = "" ] ; then ...
Thread:  Show this thread (2 posts)   Thread info: file replacement not working! Size: 4,188 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: file replacement not working! :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
www.daniweb.com - IT Tech Talk
Started 6 days, 6 hours ago (2009-11-06 00:24:04)  by whizkidash
Hi you can use sed ('4,5d') file.txt(your file) > newfile here it will delete the 4 and 5 file and transfer the remaing file in newfile regards whizkidash
Thread:  Show this thread (4 posts)   Thread info: How could I grep a line of text, and delete certian fields? Size: 369 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: How could I grep a line of text, and delete certian fields? :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
www.daniweb.com - IT Tech Talk
Started 1 week ago (2009-11-05 00:00:00)  by Hilliard
• • • • Originally Posted by Mattpd Hello all. New here. Another student looking for a little help. Technically I wouldn't consider this a homework question, as it is part of a much larger project for my class. My professor is little help so I'm here now. I hope you can help. I have a text file, and I need to print today's date at the end of the...
Thread:  Show this thread (4 posts)   Thread info: Shell script to append text file with today's date. Size: 1,367 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Shell script to append text file with today's date. :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
www.daniweb.com - IT Tech Talk
Started 2 months, 2 weeks ago (2009-08-26 14:04:48)  by Salem
• • • • I am new in SFTP. ... 2) now i need to the SFTP script inside the .com file and send(submit) SFTP script. And how much time have you spent reading manuals, trying things etc?
Thread:  Show this thread (4 posts)   Thread info: Need SFTP script Size: 630 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Need SFTP script :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
www.daniweb.com - IT Tech Talk
Started 1 week ago (2009-11-05 00:00:00)  by john_prince
Yes, we need to do this using shell script. Thank you.
Thread:  Show this thread (3 posts)   Thread info: how to move files and check the completion. Size: 198 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: how to move files and check the completion. :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
www.daniweb.com - IT Tech Talk
Started 1 week, 2 days ago (2009-11-03 00:00:00)  by sknake
Here are a few articles on keying ssh: http://www.linuxjournal.com/article/8600 http://www.hostingrails.com/wiki/27/...out-a-passw ord
Thread:  Show this thread (3 posts)   Thread info: how to enter for the prompt? Size: 499 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: how to enter for the prompt? :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
 

Hot threads for last week on Shell Scripting::

Shell Scripting
Started 5 days, 7 hours ago (2009-11-07 00:00:00)  by sknake
What shell are you using, and what error are you receiving? It seems to work for me: Help with Code Tags Shell Scripting Syntax ( Toggle Plain Text ) sk@svn:/tmp$ for e in ` cat file .txt`; do echo INSERT INTO \`omstest_omstest\`.\`GEN2_FIELD\` VALUES \ ( NULL, \ '$e \' , \' $e \' , \' 4 \' , \' 2009-10-05 00:00:00 \' , \' 0 \' \' 0 \' \)...
Thread:  Show this thread (5 posts)   Thread info: OMG... simple question driving me nuts Size: 2,873 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: OMG... simple question driving me nuts :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
Shell Scripting
Started 6 days, 6 hours ago (2009-11-06 00:24:04)  by whizkidash
Hi you can use sed ('4,5d') file.txt(your file) > newfile here it will delete the 4 and 5 file and transfer the remaing file in newfile regards whizkidash
Thread:  Show this thread (4 posts)   Thread info: How could I grep a line of text, and delete certian fields? Size: 369 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: How could I grep a line of text, and delete certian fields? :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
Shell Scripting
Started 1 week ago (2009-11-05 00:00:00)  by Hilliard
• • • • Originally Posted by Mattpd Hello all. New here. Another student looking for a little help. Technically I wouldn't consider this a homework question, as it is part of a much larger project for my class. My professor is little help so I'm here now. I hope you can help. I have a text file, and I need to print today's date at the end of the...
Thread:  Show this thread (4 posts)   Thread info: Shell script to append text file with today's date. Size: 1,367 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Shell script to append text file with today's date. :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
Shell Scripting
Started 1 week ago (2009-11-04 10:00:27)  by whizkidash
hi Junk character like ^M,#,$
Thread:  Show this thread (3 posts)   Thread info: how to remove junk character Size: 174 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: how to remove junk character :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
Shell Scripting
Started 1 week ago (2009-11-05 00:00:00)  by john_prince
Yes, we need to do this using shell script. Thank you.
Thread:  Show this thread (3 posts)   Thread info: how to move files and check the completion. Size: 198 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: how to move files and check the completion. :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
Shell Scripting
Started 3 days, 7 hours ago (2009-11-09 00:00:00)  by sknake
Masijade answered your question but i'd like to throw something else in there. You should add checks for your arguments on the command line and verify the file exists: Help with Code Tags Shell Scripting Syntax ( Toggle Plain Text ) #!/bin/bash file_name= $ 1 old_templet= $ 2 new_templet= $ 3 if [ "$3" = "" ] ; then ...
Thread:  Show this thread (2 posts)   Thread info: file replacement not working! Size: 4,188 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: file replacement not working! :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
Shell Scripting
Started 1 week, 1 day ago (2009-11-04 04:00:40)  by ithelp
What is ur script supposed to do but not doing ?
Thread:  Show this thread (2 posts)   Thread info: Uix Script Help Need Size: 175 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Uix Script Help Need :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
Shell Scripting
Started 10 months, 2 weeks ago (2008-12-30 00:00:00)  by Gromit
Sure! I don't have any examples in front of me, but the Oracle command line client is sqlplus. There are others, but I think sqlplus is the one that ships with Oracle. You should be able to script something that uses sqlplus to get what you need from the database and then manipulate it with bash. Can you add 500 to my salary while you're at it? Thx! -G
Thread:  Show this thread (4 posts)   Thread info: connect to oracle retrieve data and work around the data through shell
script Size: 518 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: connect to oracle retrieve data and work around the data through shell
script :: Shell Scripting :: www.daniweb.com - IT Tech Talk"
Shell Scripting
Started 2 months, 2 weeks ago (2009-08-26 14:04:48)  by Salem
• • • • I am new in SFTP. ... 2) now i need to the SFTP script inside the .com file and send(submit) SFTP script. And how much time have you spent reading manuals, trying things etc?
Thread:  Show this thread (4 posts)   Thread info: Need SFTP script Size: 630 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Need SFTP script :: Shell Scripting :: www.daniweb.com - IT Tech Talk"