03-28-2006
Oh I am a newbie so what make it work then I do it . I tried your code but some how I keep geting all of the file move to DATA2 instead of the files have 5 counts. Sorry for my English..
From this forum I have learned alot from you and the other.
Good site and thanks for sharing vgersh99
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can somebody give me the explanation for this command line:
ps>newfile<infile wc -l
?
I am totally confused with the order of its execution.. :confused:
Thanx,
Saneesh Joseph. (3 Replies)
Discussion started by: saneeshjose
3 Replies
2. UNIX for Dummies Questions & Answers
Hi Group ,
I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages.
- i m writing
>write user-id
! ls
o
ctrl-d
inspite of executing the command ls,other terminal shows ! ls.
Thnx in advance. (2 Replies)
Discussion started by: Aashish
2 Replies
3. Shell Programming and Scripting
I'm trying to populate a command line into a variable. It appears to be executing, instead. Here's an example:
mycmd=''
if ...; then
$mycmd='sudo '
fi
$mycmd=$mycmd 'sed -i prev s/aaa/bbb/' $myfile
res=`$mycmd`
(I'm also not sure of the best way to execute the command from the... (1 Reply)
Discussion started by: littlejon
1 Replies
4. UNIX for Dummies Questions & Answers
How to make it works this way?
echo dir1\/*.txt ; echo dir1\/*.html | xargs wc -l
dir1/*.txt
wc: dir1/*.html: No such file or directory
what i'm trying to do it to "wc dir1/*.txt" and "wc dir1/*.html" (2 Replies)
Discussion started by: Bornay6ah
2 Replies
5. Shell Programming and Scripting
Hi All,
I need this to execute and not just print on Red Hat ent 4 bash shell.
cat /etc/passwd|grep db2 | awk -F":" '{print "cat /etc/group | grep ",$4}'
Output:
cat /etc/group | grep 1000 (I don't want this to print but execute)
Thanks for any comment you may add. (2 Replies)
Discussion started by: itik
2 Replies
6. Shell Programming and Scripting
HI,
I have a directory called input directory called "input", The "input" directory contains file names (file1,file2,file3,file4), I want to write a command so that it will display all the file names with comma separated.
Desired output: file1,file2,file3 so on....
Regards
Akshay... (2 Replies)
Discussion started by: akshu.agni
2 Replies
7. Shell Programming and Scripting
This seemed straight forward until I tried to code it.
I'm running ioscan -fuNC disk to get list of disk including hardware path. What I'm trying to do is use awk to take this output, extract hardware path, and pass that as a variable to ioscan -P wwid -N -H 64000/0xfa00/0x1a | grep ^disk and... (11 Replies)
Discussion started by: steve72
11 Replies
8. Shell Programming and Scripting
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies
9. Shell Programming and Scripting
Hello :)
new to bash not to programming.
I have an on-going need to change the owning group on sets of files and directories from the one they were created with or changed to on update to the one they need to have going forward.
find {target_root} -group wrong_group
gets me a newline... (4 Replies)
Discussion started by: naftali
4 Replies
10. Shell Programming and Scripting
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
LEARN ABOUT DEBIAN
cfenvgraph
cfengine(8) System Manager's Manual cfengine(8)
NAME
cfengine - network configuration engine
SYNOPSIS
/usr/sbin/cfenvgraph [options]
COMMAND LINE OPTIONS
--help
--file Override default input database
--erasehistory
Erase machine-learned history of named traces. Comma separated list (no spaces)
--outputdir
override name of output directory
--titles
Generate titles in output data files for traces
--timestamps
Add time stamps to output directory
--resolution
Maximum output resolution (default is smoothed over each hour).
--separate
Plot separate output files for each trace.
--no-error-bars
Do not add uncertainty margins to output.
--no-scaling
Do not renormalize graphs for convenient representation
--now Show data for last four hours only in high resolution.
--verbose
DESCRIPTION
cfengine is a language based system specifically designed for testing and configuring unix-like systems attached to a TCP/IP network.
Cfenvd is part of the anomaly detection subsystem for cfagent.
cfenvgraph is a research tool for extracting graphs of the learned history of system performance from the learned database. Users are
referred to the web page
http://www.cfengine.org/confdir/cfenvgraph.html
for an explanation of this graphical tool.
AUTHOR
Mark Burgess, Oslo University College
INFORMATION
http://www.cfengine.org
Maintenance Commands cfengine(8)