1,891 Topics
| |
Hello. I have a file, with some HTML in it. I would like to make a shell/bash script that moves ALL of the content of that file into ANOTHER HTML file at a CERTAIN line number... Does anyone have any suggestions? Thanks a lot in advance ~ Nikhil | |
when i do a stderr redirect to stdout, does the shell open the stdout file? if so is there any way i can capture the opening of this file? basically what i want to do is at the firstinstance of an error i want my perl script to die and … | |
I have an input file having 7 fields delimited by , eg : 1,ABC,hg,1,2,34,3 2,hj,YU,2,3,4, 3,JU,kl,4,5,7, 4,JK,KJ,3,56,4,5 The seventh field here in some lines is empty, whereas the other lines there is a value. How do I insert string NULL at this location (7th loc) for these lines where output … | |
what is this "Werid charaters" its screwing my downloads... but echo seems to be find can any one know the solution pls!!! THis is what i did.. .only 1st seq goes fine... something goes stupidly wrong with this stuff.... [CODE] rhohit@64box:~/383 Anxious Friends$ for i in $(seq -w 1 18 … | |
Hi , I actually have a script to bundle up two files but i don't know how it works .Can someone please explain. Here's the script:- [code] for i do echo "echo $i 1>&2" echo "cat >$i <<'End of $i'" cat $i echo "End of $i" done [/code] now suppose … | |
hello friends.... i need some command for my project which can close active window by invoking alt-f4 without pressing alt-f4 key or by other mine..plz help.... | |
Big prize shell script competition on Topcoder Given below is the link for the same [url]http://software.topcoder.com/review/actions/ViewProjectDetails.do?method=viewProjectDetails&pid=30011725[/url] | |
can anyone pls tell me how can i read the contents of a file in reverse order....ie i'm storing the num from 1 to 100 in a file but i wen i read thre content it shouls start from 100 99 to 1..i tried to sort /r but it does … | |
Hello, I would like to know if you know any framework/classes for systems administration in windows/linux environment. Thanks for you replies! Bye, Marco. | |
Not sure this is the right place to put this. I have a batch file for a program that I'm writing, which takes a C source file, compiles it and runs it, and then tries to save the output of it to a .txt file. The program lets a user … | |
I logged into a computer which is not mine. I know there is apache installed because when I type whereis apache it shows /etc/apache it has only a few files. I need to know where the htdocs directory is and also where http.conf file is. How do I accomplish this? … | |
I have a hp mini linux, ubuntu 08.04. Of course I couldn't resist temptation for the 10.04, that I upgraded following ubuntu geek forums. I got lost in limbo somewhere when I couldn't figure what i was to follow! It is a netbook and I have 10.04 but, have an … | |
Hi, Im trying to make a batch script which can go through a directory and pick all the .txt files and copy the name in a file. Ive been able to make a script which can do this in a particular folder but if there is a folder in the … | |
Hi Team, Problem Description: Well i have a script with me(attached) which monitors the response time of each file and sends mail according to its severity As i am very new to this script it involves mix of korn shell plus html. Request your guidance on the same. Requirement: Presently … | |
Hello everyone, I'm trying to write a script, i would like to say the child process will kill the parent process how would i do that? Thanx, | |
i am writing a small script and part of it requires comparing two version strings in the form V[1-9].[0-9].[0-9].[0-9] The script will perform some action if the two strings have different subversions (STRING1=V1.1.0.2 and STRING2=V2.1.0.4 for example). So far the script is [CODE]for i in {1..4} do if [ $STRING1[(ws:.:)$i] … | |
Please help me to write a shell script to find the GCD (Greatest common Divisor) of [B]3[/B] numbers. Thanks in advance. | |
Hi everyone, I'm a relative beginner to writing UNIX scripts. In the past, I've been able to hack together simple scripts. Now I need a script which a little more complex than I'm used to, and I really need help. I'm up against a tight deadline and am growing desperate, … | |
Hey, I have a c# code that connects remotely to a winServer2008 machine (with a local user of that machine). How do I configure via automated code the logon script that will be executed as soon as the connection is established ? Cheers, | |
Can someone look at this and tell me why I'm getting an empty tar? [code] #!/bin/sh #### mysqldump --opt --user=[my username] --password=[my password] | tar cvz > backup.tar.gz #### echo | mutt -a backup.tar.gz -s \"Database Backup\" [my email] #### rm backup.tar.gz #### [/code] Thanks! | |
Hi.. I am trying to popup 53 uri's in single firefox window in tabs..But using the given code am getting it in different windows..Can anyone check dis out..n help me to correct it.. #!/bin/bash processLine(){ line="$@" # F1=$(firefox $line?wsdl | awk '{ print $1 }') #firefox -new-tab "$line?wsdl" firefox $line?wsdl … | |
trying to remove a user account from local pc's.. if account not there want to go and remove a different account is there a way to capture the 2221 error i.e. NET HELPMSG 2221 or just a flat out if %errorlevel%..and I've seen many different ways to handle errors..what is … | |
I am looking for a script which will check web folder [url]http://www.site.com/folder[/url] and compare is with root>folder. If new files are found download them in root>folder>temp. I need bash scriipt .. Can anybody help? | |
Hi I have been working on an assignment and have run into some problems. The assignment is an awk script that splits the shell script into BEGIN and END. In particular, the problem is in the END section with the sorting of a numeric array. I have tried the following … | |
Hi well I am facing some problem while trying to concatenate contents of several files, present inside a folder. My code gives an error: ./test.sh: line 17: [: =: unary operator expected and in similar lines Attached is the code: [CODE] #!/bin/bash str1="test_concatenated_RAxML_outputs.txt" str2="r_test_concatenated_RAxML_outputs.txt" str3="m_test_concatenated_RAxML_outputs.txt" str4="n_test_concatenated_RAxML_outputs.txt" str5="h_test_concatenated_RAxML_outputs.txt" for line in … | |
Hi i am trying to write a script to match a '' at the END of the line. For eg. i have a file Temp1 which contains :- [code] a = b + c \ +d; printf("\n"); [/code] Objective: To match the '' in the 1st line and NOT the … | |
Hi, as a bit of background, My Uni have lately implemented a CGI script so you have to log in to be able to use the wireless. This would be OK but they are terrible programmers and instead of timing out after a period of inactivity it will time out … | |
Hey, im new to scripts(stumbled on them a few hours ago) and was wondering if and how i am able to modify functions from a website's page source. i have greasemonkey etc, so would i copy/paste the function into a new script and make my modifications or something, it didn't … | |
previously I apologize for my bad english. I am still new to linux. I just wanted to ask about shell programming, how influential shell programming on linux? Is there someone who has an article or an e-book about pemrogrman shell for beginners? May share here? thanks :D | |
I have a shell script that currently pulls data from a mysql database and writes it to a .csv file. The problem is I would like to do a whois lookup against each public IP to see where they are coming from. I basically have two firewalls writing syslog data … |
The End.