scripting
Welcome to the 'scripting' tag page at Technorati. This page features content from the farthest reaches of the Blogosphere that authors have "tagged" with 'scripting'.
Are you an expert about 'scripting'? Do you want to be the Technorati authority on 'scripting'? You can write a description that will appear right here:
Join Blogcritics!
Original Technorati articles tagged “scripting”
-
in ITAutomate A Secure WordPress Update

Use this Bash script to automate your command-line updates of WordPress.by markdecheser / on Dec 27, 2010
Latest blogosphere posts tagged “scripting”
-
Help with Shell script code
—
Authority:
Hello all, I am in a middle of an assignment and i would appreciate any help. How can i write a bash shell script code that checks if all elements in an array are the same numbers. I mean -->array = ( 0,0,0,0,0 ) ( e.g., if [ #all array elements equal zero ] then return "OK fi ) Thank you in advance,1 week ago -
To read timestamp and count from a line
—
Authority:
I have file like: Code: Date and Time: 2013-05-11 12:23:12 MST abc,1234,hi-all,45354-88888,IN,US XYZ,1234,hi-all,45354-88888,OUT,GB abc,1234,hi-all,45354-88888,IN,AS abc,1234,hi-all,45354-88888,OUT,US abc,1234,hi-all,45354-88888,IN,US Number of Records: 000005 And i want to read the Timestamp from first line ...1 week ago -
Bash, remove numbers after colon
—
Authority:
Hello All, I was wondering if someone might know how to do this. I have a word list that is format like the example below. I need to take away the :number after that... is there some kind of command I could use to remove them? Code: 123456:5562 password:1507 123456789:989 qwerty:877 12345678:621 111111:570 ...1 week ago -
Problem using gcc in Cygwin
—
Authority:
Hello everyone. I am trying to compile this simple code using gcc under Cygwin terminal. //A function that just returns a value//int my_function(){ return 0xbaba;} I saved the code as basic.c I issue the command $gcc basic.c in the Cygwin terminal And I get the error: gcc: error: spawn: No such file or ...1 week ago -
Search IP address and replace with strings
—
Authority:
Hi All, How can I find (pattern search with grep/awk/ sed ) all files containing any IP address pattern in one directory hierarchy and in its sub-directories. The files can contains more than 4 octets in addition to the IP address as shown below. IP address can contain any octet combinations like- 10.132.8.234.12345 ...1 week ago -
Security Series: Using PowerShell to Protect Your Private Cloud Infrastructure – Part 3
—
Authority:
Summary : Microsoft senior technical writer, Yuri Diogenes, and knowledge engineer, Tom Shinder, talk about using Windows PowerShell to protect a Windows Server 2012-based cloud infrastructure. Microsoft Scripting Guy, Ed Wilson, is here. Guest bloggers Yuri Diogenes and Tom Shinder are back with the exciting ...1 week ago -
Deleting values in a colom based on conditions
—
Authority:
Hi I have a difficulty in writing shell script for performing the tasks. A B C D 12 230 16 259 18 260 23 283 21 291 36 298 41 309 49 420 52 425 57 450 61 456 70 473 72 475 79 486 If the A(row no.2) For eg..A3 12 230 16 259 18 260 23 283 41 309 36 298 52 425 49 420 61 456 57 450 72 475 ...1 week ago -
using loops in unix for comparing ...
nixCraft Linux Forum —
Authority: 144
hi, can someone help me with a loop condition to compare two files (f1 & f2), f1 against f2.. display only the contents from f1 that do not match that of f2. thanks in advance1 week ago -
While loop for comparison
—
Authority:
hi all, i have two files: test1 contains : one two three four five (on separate lines) test2 contains: one ten nine (on separate lines) I want to compare two files, test1 against test2. if any word from test1 does not match test2 display it. can someone help me with a while loop on this. thanks1 week ago -
Loop over array in batches
—
Authority:
given an array of filenames files=(*) how can i loop over these in batches of four, or even better, work always with four files simultaneously. i want do something with these files, always four of them simultaneously, and if one is ready the next should start. one idea, but definitely not the best (not tested): ...1 week ago -
Scripting News: We need a curator for the Apple river.
—
Authority:
I did a house-cleaning on my river server on May 9. At that time some of the rivers stopped updating. Mostly the ones that no longer have tabs in the user interface because either I personally didnt have enough interest in the subject and not many other people were reading them. I didnt feel like paying for machine ...1 week ago -
Scripting with executables
—
Authority:
Hi everyone, I am working with an executable (lets say work) in bash shell. When I run this work executable it asks the following information; 1- choose task a or b 2- input file 3- output file 4- some operational choices after it reads the given input file, does some algebraic operations with the input files data ...1 week ago -
Regex within IF statement in awk
—
Authority:
Hello to all, I have: Code: X=" string 1- " Y=" -string 2 " Z=" string 1- 20 -string 2 " In the position of the number 20 could be different numbers, but Im interest only when the number is 15, 20,45 or 70. I want to include an IF within an awk code with a regex in the following way. Code: ...1 week ago -
awk equivalent code in C for printing NF
—
Authority:
Hi all ! whether anyone in forum knows what awk will use while printing number of fields in file(NF) ? for example Code: awk END{print NF} file prints number of columns in file if anyone knows equivalent code in C kindly share or explain logic behind it1 week ago -
To read timestamp from a line
—
Authority:
I have a situation like, I have to read only the timestamp value from a line. ex: Date and Time : 2013-05-11 12:12:34 MST I cut the Date and Time but unable to remove MST part. I need a script to use in Datastage job. can you guys help me with that Thanks in advance1 week ago -
Multiple variables options
—
Authority:
Hi Im looking to take a user input and use it to effect just two characters in a command rather than having multiple functions for each one. function baseencode() { echo "This function handles the following: $YELLOW base64 base32 base16 $NORMAL" echo "$GREEN Select 64 32 or 16 $NORMAL" read B echo "Enter text to ...1 week ago -
PowerTip: Use PowerShell to Find Changed Directories
—
Authority:
Summary : Use Windows PowerShell to identify directories that changed since a specific date. How can I use Windows PowerShell to find directories that have changed since a specific date? Use the Get-ChildItem cmdlet and specify only directories. Pipe the results to Where-Object and evaluate the ...1 week ago -
Find only files/directories with different permissions/owners
—
Authority:
My git post-update has the following lines in it to make sure the permissions are set right: Code: find /usr/local/apache/htdocs -type d -print0 | xargs -0 chmod 755 find /usr/local/apache/htdocs -type f -print0 | xargs -0 chmod 644 chown -R apache:apache /usr/local/apache/htdocs The only problem is that each ...1 week ago -
Using Autokey Scripts to Automate Your Linux Desktop
—
Authority:
Autokey, covered previously on Make Tech Easier , is a great place to store commonly-used text. But one of Autokey’s more advanced features is the ability to script it to do other things. We’ll take a look at two ways to tap Autokey for advanced desktop scripting. Note : While the below script worked on both ...1 week ago -
Verifying Record Length
—
Authority:
Hi all, We are going through a total migration from AIX-based server framework to Linux-based servers. When I am testing *.sh and *.awk in a lower environments, it abends at the same step everytime in verifying the record length of the first row of the source file. I know this source file is good because I pulled ...1 week ago


Follow Technorati