10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hey guys,
ive been working on this for about 2hrs now - without any solution.
At first I need to say I dont have skills in linux bash scripting, but I tried to use some codesnippets and manuals from google.
What I want to do:
I have different folders including 2 different filestypes with... (15 Replies)
Discussion started by: peter1337
15 Replies
2. Shell Programming and Scripting
Guys, I have a variable in a script that I want to transform to into something else Im hoping you guys can help. It doesn't have to use sed/awk but I figured these would be the simplest.
DATE=20160120
I'd like to transform $DATE into "01-20-16" and move it into a new variable called... (8 Replies)
Discussion started by: dendenyc
8 Replies
3. Shell Programming and Scripting
:wall:I've this simple code:
STF=/opt/aaa
cat $STF | nice sort -u > $STF.new && mv $STF.new $STF
Which works until today. What happened is that this script has been corrupted the FS, so I've to use fschk to repair the filesystem.
I presume the move command executed just a little too early... (1 Reply)
Discussion started by: accolito
1 Replies
4. Shell Programming and Scripting
I don't know if this is a big issue or not, but I'm having difficulties. I apoligize for the upcoming essay :o.
I'm writing a script, similar to a paint program that edits images, but in the form of ANSI block characters. The program so far is working. I managed to save the image into a file,... (14 Replies)
Discussion started by: tinman47
14 Replies
5. Shell Programming and Scripting
Hello every one :D
I am very new in Linux ... that why I do not have any idea to write the script :confused:
I am trying to read some tutorial , but I do not have enough time to do it !
because I have to submit my project results in next Wednesday
I need your help to write script !
I will... (2 Replies)
Discussion started by: seereen
2 Replies
6. Shell Programming and Scripting
Hello,
I have mysql binary file which logs all the database queries and i to insert all queries log in to database. First i coverted binary file to text file. and start playing with it. Text file contains following queries, some samples are,
SET INSERT_ID=1;
INSERT INTO test... (0 Replies)
Discussion started by: mirfan
0 Replies
7. Shell Programming and Scripting
Hello,
I have 1000 of sql queries and i need to push column value in query. e.g.
SET INSERT_ID=1
INSERT INTO test (id,name) VALUES ('a');
SET INSERT_ID=2
INSERT INTO test (id,name) VALUES ('b');
SET INSERT_ID=3
INSERT INTO test (id,name) VALUES ('c');
SET INSERT_ID=4
INSERT INTO test... (12 Replies)
Discussion started by: mirfan
12 Replies
8. Shell Programming and Scripting
Hi all,
I have a script that requires time comparisons and sending out an email alert only if the specified interval has been completed. The script runs in Cron tab every 5 mins.
For ex: If the interval is set to 2 hrs (Dynamic & varies )
My script should execute and if it finds any error... (1 Reply)
Discussion started by: praseecg
1 Replies
9. Shell Programming and Scripting
I'd like a bash script to simply check to see if any file/files are present in a source directory, and if so move it/them to a target directory.
I have this but it doesn't work:
#!/bin/bash
if
then
mv /source/* /target
fi
What is the right syntax? Thanks! (4 Replies)
Discussion started by: graysky
4 Replies
10. UNIX for Dummies Questions & Answers
Hi again. Sorry if it seems like I'm spamming the boards a bit, but I figured I might as well ask all the questions I need answers to at once, and hopefully at least get some.
I have installed Solaris 10 on a server. The default text editors are there (vi, ex, ed, maybe others, I know emacs is... (4 Replies)
Discussion started by: EugeneG
4 Replies