I have a XML file with the following contents:
<Misc>
<FetchSizeHint>32000</FetchSizeHint>
<Partitions>100</Partitions>
<ThreadCount>1</ThreadCount>
<NullConv...
I am trying to tar up over 1900 files based on a list of them in a flat file using tar on AIX. Here's the code:
tar -cf /usr/HTTPServer/cleanup_backup_files.tar `cat $myFile | tr "\n" " "...
On a Unix server, I have a flat file that has multiple lines. Many of the lines have spaces in them. I'd like to be able to insert a double-quote before and after each line in the file. How...
I need to execute a command which returns an integer and compare that result to the result of another integer-returning command and get back 0 or 1 if the integers match or not. Here's what I ...
Hi,
I have a C-Shell script, How do I add a command to run exe file in windows server.
The exe file is c:\r.exe in server SERV1.
Thanx
How can i delete the path content in Unix, programming in C ??
I'm trying to set up my shell in emacs to execute an initialization file when it is first invoked.
The documentation (emacs 2.1.3.1) says:
If a file `~/.emacs_SHELLNAME' exists, it is gi...
I would lke to read the contents of a file in a bourne shell script containing a user IDs and run them against an ldapsearch command. Here's the following section which doesn't seem to work:
...
I have a BASH script that works but I need to skip over the .log files.
Here is the script - how do I get the "for movie ..." line to exclude all .log files in that directory?
#!/bin/b...
I just want a simple shell script that when run will ask for a version # then run the following command:
curl http://example.net/MYfile-<Version # Here>.tar.gz -O
Max
hi guys,
below script is working without ssh but won't work if i use ssh.
do any body know what's reason.
ssh -v build2@server20
hostname
pwd
cd /home/build2/projectl
for pvtfile in ...
i can use " ps" and "grep" .
when i invoke from shell prompt i can see a lot of program running . I wrote a program called "rat" . This will spawn and create multiple instances .So i ...
What are the file name extension for ksh, csh, bash and sh?. Which command do I use to compile and execute ksh, csh, bash and sh script?.
Dear Experts,
1.I need a script which will search a directory for files which contains " in file name and remove this character(")from that filename.
2. IT will also log everything to a lo...
Hello,
I have a script that does the following, copies multiple files from ServerA and puts them on ServerB.
What I need help with is:
the syntax that will connect me back to ServerA ...
I have a csv files which is produced dynamically
based on first record I need to sort the data and make different csvfiles
for example, in the file below,I need three different files with ...
I have a table in a file (piped). I wanted to count the occurrence of a particular word XXX. How do I do that in shell?
Hello,
I have a script that I need some sed to run on to remove some text. An example will best illustrate.
FI "HI:CONSOLE EXE.A-DUMMY;sur#1"/USER_FILE="DB Console/abc/123/console.exe"
...
hi guys,
when i use ssh username@servername
remoteserver has security problem asking for password change but i don't want change.
i want to just skip that step..
can you guide me how t...
I have a mysql dump file (dump.sql) which contains multiple references to a forum URL.
www.url1.com/forums
I want to replace that with the new URL:
www.url2.com/forums
Please advis...
I would like to get a certification or similar covering UNIX scripting, including AWK. It must be possible with a testcenter exam in the end (not just one of those online exams more for comp...
I have the following awk script that parses a files and outputs this data to another file. I'm using the pipe symbol as a delimiter. What I need is to apply a prefix and suffix to this data. ...
Hello,
I want to copy one file to multiple directories with CP in bash.
I have a file name prospects.html.php
and I want to copy this file to every web site on the server. The direct...
I want to find the relative path of a sub-directory to one of its parent-directories.
For example, a sub-directory
$path1 = "/home/doe/dir1/dir2/dir3/dir4/dir5/dir6";
$path2 = "/home/do...
I am converting ksh scripts from Solaris 8 to RHEL 4.0. The scripts are not 100% compatible. When a script comes to a statement such as -
NOW=`date '+%H:%M:%S'`
I get an error - /home/jj/...