Sponsored Content
Contact Us Post Here to Contact Site Administrators and Moderators Please Help remove some data from previous post Post 302913237 by Palak Sharma on Thursday 14th of August 2014 05:16:08 PM
Old 08-14-2014
Please Help remove some data from previous post

I have posted some data on the forum which needs to be deletd ASAP.

The post here in question are

How to do in this in shell script?

How to modify this script?
How to resolve this error?

Error in code in linux?

Please remove all the parts from post :

i-d4411185 Rishi_Win_Okta Unknown Unknown
i-7ca28d52 FTP_Test01 Unknown Unknown

Its just a snippet of the long data.
please remove all that

---------- Post updated at 04:16 PM ---------- Previous update was at 04:02 PM ----------

We can use dummy data

Code:
PROMPT> ec2-describe-instances

RESERVATION	r-1a2b3c4d	111122223333	my-security-group
INSTANCE	i-1a2b3c4d	ami-1a2b3c4d	ec2-203-0-113-25.compute-1.amazonaws.com	ip-10-251-50-12.ec2.internal	running	my-key-pair	0		t1.micro	YYYY-MM-DDTHH:MM:SS+0000	us-west-2a	aki-1a2b3c4d			monitoring-disabled	184.73.10.99	10.254.170.223			ebs					paravirtual	xen	ABCDE1234567890123	sg-1a2b3c4d	default	false	
BLOCKDEVICE     /dev/sda1       vol-1a2b3c4d    YYYY-MM-DDTHH:MM:SS.SSSZ	true	
RESERVATION     r-2a2b3c4d      111122223333    another-security-group
INSTANCE	i-2a2b3c4d	ami-2a2b3c4d	ec2-203-0-113-25.compute-1.amazonaws.com	ip-10-251-50-12.ec2.internal	running	my-key-pair	0		t1.micro	YYYY-MM-DDTHH:MM:SS+0000	us-west-2c			windows	monitoring-disabled	50.112.203.9	10.244.168.218			ebs					hvm	xen	ABCDE1234567890123	sg-2a2b3c4d	default	false
BLOCKDEVICE     /dev/sda1        vol-2a2b3c4d    YYYY-MM-DDTHH:MM:SS.SSSZ	true


Last edited by Scrutinizer; 08-14-2014 at 06:12 PM.. Reason: Added links
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

appending previous data.

I have on file abc.txt abc.txt: 20090807 Now I want to delete empty lines which has tap/whit spaces from abc.txt .and store the date value in the file into variable.some processs will update the this file with some date . if the process updtes thiis file with empty string , write the... (3 Replies)
Discussion started by: Gopal_Engg
3 Replies

2. HP-UX

finding these, whether previous data stored ?

Hi All, On HP Unix, 11.23 can following be checked , Processes which were consuming more 1)CPU 2)Memory 3)page faults For particular Time Frame say Yesterday 7 Am to 7.30 Am and , Yesterday Evening 19.00 Pm to 19.30 Pm Please specify how. whether we need to enable, some... (6 Replies)
Discussion started by: sidharthmellam
6 Replies

3. Shell Programming and Scripting

Remove previous line if next & previous lines have same 4th character.

I want to remove commands having no output. In below text file. bash-3.2$ cat abc_do_it.txt grpg10so>show trunk group all status grpg11so>show trunk group all status grpg12so>show trunk group all status GCPKNYAIGT73IMO 1440 1345 0 0 94 0 0 INSERVICE 93% 0%... (4 Replies)
Discussion started by: Raza Ali
4 Replies

4. Shell Programming and Scripting

Fill data in column with previous value

Gents, Kindly help me. I have a file with empty values in selected column, I will like to fill the empty values with the previous value. Example Input file X 4959 30010 66727.00 20457.001 1 1441 66512.00 20234.00 20520.001 X 4959 30010 66727.00 20457.001 145 ... (7 Replies)
Discussion started by: jiam912
7 Replies

5. Post Here to Contact Site Administrators and Moderators

Remove post with sensitive data

Hello, Can you please delete or modify a post that contains sensitive data. I can't post full links, here's the end of the link: shell-programming-and-scripting/94965-help-shell-scripting-modify-user-creation-script-oracle-database.html It's got a lot of data that should never be posted on... (2 Replies)
Discussion started by: JonHeller
2 Replies

6. Post Here to Contact Site Administrators and Moderators

Please remove sensitive data from post

HI Sir , please remove the sensitive data from the post https://www.unix.com/unix-for-advanced-and-expert-users/200219-ssh-issue.html please blank the following terms /home/infafi/Informatica/PowerCenter8.1.1/server/bin iminfu01uat ... (4 Replies)
Discussion started by: ptappeta
4 Replies

7. Post Here to Contact Site Administrators and Moderators

Please remove the sensitive data from post

Hi Sir , Please remove the following code from the post https://www.unix.com/unix-for-advanced-and-expert-users/210081-ftp-issue.html thanks Prabhu (7 Replies)
Discussion started by: ptappeta
7 Replies

8. Post Here to Contact Site Administrators and Moderators

Please remove my previous post

please remove my previous post on "Query on scp" The approach which iam thinking will not work Inconvenience caused regretted (0 Replies)
Discussion started by: nextStep
0 Replies

9. UNIX for Beginners Questions & Answers

Previous and Post lines in a pattern

Dear Community; I am posting this after looking at several solutions that were not fully relevant to the issue that I am facing. I have a large xml file, 100k+ lines which have patterns like below: <OfferDefinition Id="11"> <Type>Account</Type> ... (3 Replies)
Discussion started by: mystition
3 Replies

10. Shell Programming and Scripting

How to send data to previous program (pipe)?

Hi, Suppose I have a command:$ cmd1 | cmd2I need to send a message from cmd2 to cmd1 when I receive some a certain message from cmd1. How to do this? I think that I have to know cmd1's PID and then in cmd2 send a message to this PID. How? (24 Replies)
Discussion started by: JackK
24 Replies
NPM-RUN-SCRIPT(1)														 NPM-RUN-SCRIPT(1)

NAME
npm-run-script - Run arbitrary package scripts SYNOPSIS
npm run-script <command> [--silent] [-- <args>...] alias: npm run DESCRIPTION
This runs an arbitrary command from a package's "scripts" object. If no "command" is provided, it will list the available scripts. run[-script] is used by the test, start, restart, and stop commands, but can be called directly, as well. When the scripts in the package are printed out, they're separated into lifecycle (test, start, restart) and directly-run scripts. As of ` https://blog.npmjs.org/post/98131109725/npm-2-0-0, you can use custom arguments when executing scripts. The special option -- is used by getopt https://goo.gl/KxMmtG to delimit the end of the options. npm will pass all the arguments after the -- directly to your script: npm run test -- --grep="pattern" The arguments will only be passed to the script specified after npm run and not to any pre or post script. The env script is a special built-in command that can be used to list environment variables that will be available to the script at run- time. If an "env" command is defined in your package, it will take precedence over the built-in. In addition to the shell's pre-existing PATH, npm run adds node_modules/.bin to the PATH provided to scripts. Any binaries provided by locally-installed dependencies can be used without the node_modules/.bin prefix. For example, if there is a devDependency on tap in your package, you should write: "scripts": {"test": "tap test/*.js"} instead of "scripts": {"test": "node_modules/.bin/tap test/*.js"} to run your tests. The actual shell your script is run within is platform dependent. By default, on Unix-like systems it is the /bin/sh command, on Windows it is the cmd.exe. The actual shell referred to by /bin/sh also depends on the system. As of ` https://github.com/npm/npm/releases/tag/v5.1.0 you can customize the shell with the script-shell configuration. Scripts are run from the root of the module, regardless of what your current working directory is when you call npm run. If you want your script to use different behavior based on what subdirectory you're in, you can use the INIT_CWD environment variable, which holds the full path you were in when you ran npm run. npm run sets the NODE environment variable to the node executable with which npm is executed. Also, if the --scripts-prepend-node-path is passed, the directory within which node resides is added to the PATH. If --scripts-prepend-node-path=auto is passed (which has been the default in npm v3), this is only performed when that node executable is not found in the PATH. If you try to run a script without having a node_modules directory and it fails, you will be given a warning to run npm install, just in case you've forgotten. You can use the --silent flag to prevent showing npm ERR! output on error. You can use the --if-present flag to avoid exiting with a non-zero exit code when the script is undefined. This lets you run potentially undefined scripts without breaking the execution chain. SEE ALSO
o npm help 7 scripts o npm help test o npm help start o npm help restart o npm help stop o npm help 7 config January 2019 NPM-RUN-SCRIPT(1)
All times are GMT -4. The time now is 03:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy