|
More site info...
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.
|
|
|
|
|
Posting activity on Shell Scripting:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
23
|
35
|
120
|
|
Post:
|
32
|
76
|
262
|
|
|
Shell Scripting Posting activity graph:
|
Top authors during last week:
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...
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?
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. ;-)
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
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
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...
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 ...
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 ?
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
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::
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 \' \)...
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 ...
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
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...
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?
Started 1 week ago (2009-11-05 00:00:00)
by john_prince
Yes, we need to do this using shell script.
Thank you.
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
|
|
Hot threads for last week on 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 \' \)...
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
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...
Started 1 week ago (2009-11-04 10:00:27)
by whizkidash
hi
Junk character like ^M,#,$
Started 1 week ago (2009-11-05 00:00:00)
by john_prince
Yes, we need to do this using shell script.
Thank you.
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 ...
Started 1 week, 1 day ago (2009-11-04 04:00:40)
by ithelp
What is ur script supposed to do but not doing ?
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
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?
|
|