03-12-2012
Please paste your command/script which you are using.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Give shell script....which takes two file names as input and compares the contents, is both are same delete second file's contents.....
I try with "diff"...... but confusion how to use "diff" with if ---else
Thanking you (5 Replies)
Discussion started by: krishnampkkm
5 Replies
2. Shell Programming and Scripting
Hi Friends,
I am new to this forum. Just struck up with a logic.
I have a csv file seperated by ":" (colons).
This csv file contains hostname and groups as follows:
HOSTNAME:VT Group
SGSGCT2AVPX001:Team1
SGSGCT2AVPX003:Team2
SGSGCT2AVPX005:Team2
PHMNCTTAVPX001:Team3
I want to... (2 Replies)
Discussion started by: dbashyam
2 Replies
3. Shell Programming and Scripting
Hi All,
Need help on this
I have 2 files
one file file1 which has several entries as :
define service{
hostgroup_name !host1,!host5,!host6,.*
service_description check_nrpe
}
define service{
hostgroup_name !host2,!host4,!host6,.*
service_description check_opt
}
another... (2 Replies)
Discussion started by: namitai
2 Replies
4. Shell Programming and Scripting
I have made a script something like this. I want it to read the contents of either file or directory but 'cat' and 'ls' is not working. Can anyone help me? I am a newbie in scripting so dont know much about it. I also dont know how can i put my code separatly on this forum
#!/bin/bash
echo... (9 Replies)
Discussion started by: nishrestha
9 Replies
5. Programming
Hi, I'm trying to implement a C program on ubuntu which reads the contents of a file that is passed in as an argument and then displays it to the screen. So far I've cobbled together this from bits online but most of it is probably wrong as its all copied and pasted...
#include <stdio.h>... (2 Replies)
Discussion started by: cylus99
2 Replies
6. Shell Programming and Scripting
Hi Friends,
I have a file1 with 5 columns
a b c d e
f g h i j
I have file2 with 3 columns
1 2 3
4 5 6
I want to replace 3rd 4th and 5th columns in file1 with file2 contents, so the output would be
a b 1 2 3
f g 4 5 6
Thanks (6 Replies)
Discussion started by: jacobs.smith
6 Replies
7. Shell Programming and Scripting
Hi one of the output of the command is as below
# sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/'
Resource List : <br>
*************************** 1. row ***************************<br>
... (2 Replies)
Discussion started by: vivek d r
2 Replies
8. Shell Programming and Scripting
Hi Friends,
I have two input files
cat input1
chr1 100 200
chr1 200 300
chr2 300 400
cat input2
chr1 hello monday 10 20 . - . sometext
chr1 hello monday 20 30 . - . sometext
chr2 hello monday 30 40 . - . sometext
Now, I want to replace $1, $4 and $5 of input2 with $1, $2 and... (1 Reply)
Discussion started by: jacobs.smith
1 Replies
9. UNIX for Dummies Questions & Answers
How can i replace the contents in a particular line of a file.
<FOLDERMAP SOURCEFOLDERNAME="FFCB-2012" SOURCEREPOSITORYNAME="Repo_DEV" TARGETFOLDERNAME="TEST" TARGETREPOSITORYNAME="Dev_Repo"/>
For Example I want to replace the SOURCEREPOSITORYNAME="Repo_DEV" to... (3 Replies)
Discussion started by: Ariean
3 Replies
10. UNIX for Beginners Questions & Answers
Like to have shell script to Read the given file contents into a merged one file with header of path+file name followed by file contents into a single output file.
While reading and merging the file contents into a single file, Like to keep the format of the source file.
... (4 Replies)
Discussion started by: Siva SQL
4 Replies
LEARN ABOUT DEBIAN
app::nopaste::command
App::Nopaste::Command(3pm) User Contributed Perl Documentation App::Nopaste::Command(3pm)
NAME
App::Nopaste::Command - command-line utility for App::Nopaste
nopaste - command-line utility to nopaste
DESCRIPTION
This application will take some text on STDIN and give you a URL on STDOUT.
You may also specify files as arguments, they will be concatenated together into one large nopaste.
OPTIONS
-d, --desc
The one line description of your paste. The default is usually the first few characters of your text.
-n, --name
Your nickname, usually displayed with the paste. Default: $NOPASTE_NICK then $USER.
-l, --lang
The language of the nopaste. The values accepted depend on the nopaste service. There is no mapping done yet. Default: perl.
-c, --chan
The channel for the nopaste, not always relevant. Usually tied to a pastebot in that channel which will announce your paste.
-s, --services
The nopaste services to try, in order. You may also specify this in $NOPASTE_SERVICES (space-separated list of service names, e.g.
"Shadowcat Gist").
-L, --list
List available nopaste services.
-x, --copy
If specified, automatically copy the URL to your clipboard, using the Clipboard module.
-p, --paste
If specified, use only the clipboard as input, using the Clipboard module.
-o, --open
If specified, automatically open the URL using Browser::Open. Browser::Open tries a number of different browser commands depending on your
OS.
--private
If specified, the paste access will be restricted to those that know the URL.
-q, --quiet
If specified, do not warn or complain about broken services.
perl v5.14.2 2011-08-26 App::Nopaste::Command(3pm)