Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Shell Scripting Solutions: 126 - 150 of 263
 
Hi Experts,  I am trying to extract a pattern from a log file using awk command, i am beginner with awk and i am not able to get it working, here is the log snippet *************************...
Hi, I have downloaded a 20MB text file from a server, and I need to read it into an array using PHP, however, the PHP script times out because the file is too large. A previous question (ht...
i am getting this error...instead of AIX is reading SunOS. $>ssh build1@wls22 <<EOT^Jif [[ `uname` = SunOS ]]^Jthen ^Jprint "hello"^Jelse^Jprint "bye"^Jfi^> Pseudo-terminal will not be a...
I need some sort of shell script that can open a file with example data: datafile.txt: ./htdocs/html/index.html ./htdocs/html/index.php ./other_dir/other_file.htm . . . The scr...
Hi I'm trying to create 2 scripts 1) one that adds a prefix to one file in the directory in which it will be executed : 2) and one that adds a prefix to all the files in the directory...
Can someone help me with a simple bash script to create a file 'test.txt' and write variables to it. Variable1=10.2.4.1 Variable2=10.2.4.2 Variable3=10.2.4.3 Variable4=10.2.4.4 and then w...
I am trying to read in a simple colon delimited datafile (i.e. mysql.accts), parse through it with awk to extract out the variables for the MySQL account username, password and database name. ...
I would like to know how to ssh to a remote machine and then change shell and call scripts. My problem is in my QA env .I tried the following- this run inside of a perl script.    `ssh -v mq...
hello i have a document, and i want to extract some web adresses the document is named bla.html and he has text like this:         <td align="left"><a name="neogenro"></a><a href="http:/...
Hello, I have a shell script written in UNIX. the first script that is executed on the Command Line reads an input string. Then the first script calls a second script. How can I pass the st...
I have used this tutorial (http://www.faqs.org/docs/securing/chap29sec295.html) to create 2 ftp users on a server that only allows me to use Plesk to manage my domain. Now I need to setup spec...
Hi, I am using rsync to synchronise the content between two folders. I want to update this two folders using rsync in shortest time so that only modified and new files are updated on the remo...
How can I do scripting commands like "Send Key(s)" or "Activate Window" using PowerShell? Does this require the use of the Net Framework? What is the best way to implement this type of scrip...
Create a script called countnumboffiles that counts the number of files in the current directory and displays a message with the answer. The script should work by first doing a long listing ...
I want a script to  remove all the special characters from a .CSV file.  Thanks in advance Contents of the file is like follows: WF_CRIT_INCL_CD,Übereinst. erf. (Schreibw. e.),EQ_THIS_NC,G...
I am using Linux and I need a way to batch the download of several thousand files I have in a text file. The text file is laid out such as the number is actually a directory and name1.wma i...
I have a file (.dat) with fields that are not seperated by any deliminators, but by position and need to convert it to a csv file.  I need a bash script to read the .dat file, find the fields ...
I made a bash script, but I am not very good in it, how can I simplify this bash script? Any other tips?
Using unix. I am using this command to change word1 to word2 for all subdirectories and files find . -name "*.*" | xargs perl -pi -e 's/word1/word2/g' I got this command from one of ...
hi guys!!! how can i check remote location(if is existing or not)...this script runs on local machine and only allow ssh or scp ...not telnet. $PVT_TGTLOC= remote machine location   #...
I have a variable that will store the name of a table from an accounting system (i.e. PS_VENDOR, PO_HDR, etc). The format of this in the folder is tablename_number.csv (example PS_VENDOR_13...
Can anyone show me how different are the scripting language for Shell: sh, csh, zsh, tcsh and where can I find a free tutorial to lean this shell scripts?. Your help is kindly appreciated. ...
I have a script that takes a file, encodes it to a new name with .flv extension then moves the file. It works great with most files, but I have a few hundred that are named with extra peri...
Using the following bash script I am parsing through a list of files using find and regex to find a particular pattern and then using awk (thanks to ozo) to extract a portion of the file which...
hello i have 2 files .. file1 and file2, with text how can i make a third file (file3) that contains on the first line, the first from file1, on the second, the first from file2, on the thir...