Shell Scripting

9K

Solutions

10

Articles & Videos

6K

Contributors

The term 'shell' refers to a general class of text-based command interpreters most often associated with the UNIX and Linux operating systems. Popular shells include Bourne, Debian Almquist (dash), Korn (ksh), Bourne Again (bash) and the C shell family (csh). Some view the DOS 'cmd' prompt as a minimal shell of sorts. It is also possible to install Cygwin on Windows and emulate a full Unix environment with complete shell capabilities. Terminal emulators, such as xterm, GNOME Terminal and OS X Terminal, can be used to access shell.

Related Topics

  1. Linux
  2. Unix OS
  3. Scripting Languages
  4. Perl
  5. Powershell
  6. VB Script
  7. Linux OS Dev
  8. Windows Batch
  9. System Programming
  10. Programming
Refine results

I am trying to write a script to activate Windows and Office for my workplace.

Currently it works when we use the file path assuming C: is the directory. However with some folks running multiple …

218 views
Free Tool: Subnet Calculator
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

I took this code that someone posted and I'm trying to adapt it to my needs, which is stress testing a Simplex algorithm.    I've never used the subprocess function before, and the docs are not …

322 views

Hi Team,

I am little bit confused with log rotate, Could anyone help me in doing log rotate as below.

1. I would like to write a condition inside linux log rotate that first it need to check the…

1733 views

I am looking for a script to reset the password age for a specific useraccount in our AD. I found the script that makes this happen:

(CODE)

Wat i need is a way for our helpdesk to use this …

427 views

how can i move the file name along with extension, present inside a directory, to a table, using shell script and give their default processed indicator as 'N' in the second column of the table.

436 views

hello experts,

how can i move a file or a list of files from one folder in a particular server to another folder in another server using shell script??

237 views

In the attached shell-script, when no file is found in the MVP/IN path or there is a .CSV file with file name having white spaces then the batch is getting aborted. Please help me fix this issue.

115 views

I have a batch file it renames files

rename *.rar *.cbr
rename *.zip *.cbz
rename *.7z *.cb7
rename *.tar *.cbt
rename *.ace *.cba

but some times I have a file that has the same name as what…

846 views

I have amazing results from running the unconstrained code.

Can I put an IF statement in this?

AND $WHEN > $BEFORE , $WHEN < AFTER type of thing.

Not got anywhere trying with SQL and …

2232 views

We have a de-supported baseline shell script that runs jobs for Appworx.  After migrating from UNIX to LINUX, it no longer works to accept multiple values for a job parameter.  Attached is the code.  …

735 views
Announcing the Most Valuable Experts of 2016
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Such as what?

END { statements }
The statements are executed once after all input has been read.

What might you do after? AND does this operate on what has been read or is it for use when all …

218 views

edit to add: the attached files are not extracts, they are the actual files I used to produce the output file "out.txt"
That said, the acc.csv is a very small sample of the main file.
 

This is …

317 views

Wondering if I broke the script as all the results are bestx 999999999:

(CODE)

run time was 1 hour 48 minutes.

1827 views

I have an existing linux shell script that is running every so many hours.  

Basically the script itself takes about 1.5 hours to complete. But there can be certain situations where it can take …

746 views

continued from here (https://www.experts-exchange.com/questions/29006698/Awk-Pythagoras-or-SQL-applying-csv-file-data-to-the-problem-Part-2-continuation.html#a42034305)

Runtime error:
(CODE)

621 views

Continued from here  (https://www.experts-exchange.com/questions/29004649/Awk-Pythagoras-applying-csv-file-data-to-the-problem.html?anchor=a42033886&notificationFollowed=185186068#a42033886) because …

1433 views
How to add custom Run command to Notepad++ for AutoHotkey and other programming/scripting languages

In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script …

236 views

I am using the following code  for renaming file name with white spaces to '_': -

find . -type f -name "* *.csv" -exec bash -c 'mv "$0" "${0// /_}"' {} \;

I am getting the following error: -

223 views

((field1 x 12) + 1 ) add result as new field.

awk '{print ($1*$2)}' in.txt > out.txt

I know that's not right, but I have to attempt my first line somewhere, so here it is.

536 views
Free Tool: ZipGrep
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

I have a script that is very simple. A series of commands each ending with && to make sure they finish before the next one is ran. The script works fine but I need to error handling to send an email …

832 views

I have this snippet:

(CODE)

And this csv header:
(CODE)

and the order I require is shown in the AWK snippet numbers.

When I run it (on macos 10.12) I get this:

MacPro:awk ADM$ …

745 views

Greeting Experts,

I need some help combining two different scripts into one, The first script is used to query DNS by using the IP address to get a hostname of the device. the 2nd is used to get …

233 views

When i log into certain machine with my user name (username1) i don't have access to certain folders etc... however if use a sesu command and i log as another user (lets call it username2) i do have …

756 views

I have a very large syslog file with lots of duplications of source and destination IP addresses and port number in the records. What I want is to have this abbreviated such that I get just one line …

651 views

Hi folks.

I am in need of some help to parse a file named input.log  It basically looks like this:

Server:            200.200.200.200
Address:      200.200.200.200#53

** server can't find …

1176 views
Show more content
201506-LO-Top-001

Shell Scripting

9K

Solutions

10

Articles & Videos

6K

Contributors

The term 'shell' refers to a general class of text-based command interpreters most often associated with the UNIX and Linux operating systems. Popular shells include Bourne, Debian Almquist (dash), Korn (ksh), Bourne Again (bash) and the C shell family (csh). Some view the DOS 'cmd' prompt as a minimal shell of sorts. It is also possible to install Cygwin on Windows and emulate a full Unix environment with complete shell capabilities. Terminal emulators, such as xterm, GNOME Terminal and OS X Terminal, can be used to access shell.

Related Topics

  1. Linux
  2. Unix OS
  3. Scripting Languages
  4. Perl
  5. Powershell
  6. VB Script