Step 1: Install DOS. (You don't get that anymore, just Windows CMD.)
If CMD will do:
You can't do it in one statement because %a is not a 'real' variable, windows for is a strange beast.
Remove the echo once you've tested and are sure it does what you want.
Windows CMD is inconsistent here in that more %'s are required when you put this in a batch file than when you run it in a shell window; cmd's 'for' is a very strange beast. Some experimentation may be required.
Last edited by Corona688; 03-06-2013 at 11:41 AM..
Hi.
I have many files in a folder, and even more in the subfolders. I need a script that finds and removes certain characters (them being /n in this one) in the files in the folder and it's subfolders.
So, could someone write me a script that works in Linux, does this:
Searchs for "/n" in... (5 Replies)
I need to repeat this command on a configurable interval:
igal -a -r -U -w 6
I tried this:
#!/bin/bash
igal -a -r -U -w 6
sleep 30
Just a guess that it MIGHT work.
Can anyone point me in the right direction?
-R (6 Replies)
Here is my code.
for file in *1.3.html ; do mv "$file" `echo $file | tr '.1.3' ''` ; done
For some reason I am getting an error.
mv: file.idlesince.1.3.html and file.idlesince.1.3.html are identical
Could this be done a different way? (5 Replies)
Hi guys,
Hope you are all well.
This is a line of data from a csv file. I have used vi and set the 'set list' option to display the trailing $ character.
"01","Grocery","01006","eat Fish & Spreads"$
I have tried the following commands, but neither of them appear to be working?
1) tr... (13 Replies)
There are 10 files present which have Ctlr-M characters appended to each line of all files.
I have a unix script which processes the files in a loop.
And there is an inner loop which processes each line in the file concerned.
#inputFile is a variable which has the file name of the input... (2 Replies)
Hi,
I have one file in the following format.
exa_resu_adj.4ge v.47645 PERSONAL INFORMAIONS PVT LTD 31 Dec 2009 04:36 Page 1
SALARY REPORT
Account Account Name CCode Bill No Balance T Amt
----------- ------------ ------- ---------- ------------- -------------
17490001 Mr Ram PM 10... (6 Replies)
Hi guys
I'm relativley new to Perl, and have not touched html before, im trying to write a cgi script that prints all images on a single html page from a given directory. Im using perl to gather stats, rrdtool to update and create graphs now i just need to print these graphs all onto 1 index.cgi... (3 Replies)
Hi,
I've a csv file seperated by '|' from which I'm trying to remove the excess '|' characters more than the existing fields. My CSV looks like as below.
HRLOAD|Service|AddChange|EN
PERSONID|STATUS|LASTNAME|FIRSTNAME|ITDCLIENTUSERID|ADDRESSLINE1
10000001|ACTIVE|Testazar1|Testore1|20041|||... (24 Replies)
I tried using below command
tr -cd "" < InputFile.xml > output.txt ============= This removes all the tabs/newline/extra spaces from a file
it successfully removed all the extra spaces,tabs and new line characters but then the complete file become one record. I want to retain one new line... (1 Reply)
i know , the below question has been repeated.
can you guys guide me .
I have the below input
999999 xxxxxxxxxxxxxx 123.45 2013-05-02 08:14 1 1 1 xxxx
999999 xxxxxxxxxxxxxx 123.45 2013-06-02 02:14 1 4 1 dddd
i need to remove from the column 54 to 70 , as like the below output.... (9 Replies)
Discussion started by: expert
9 Replies
LEARN ABOUT CENTOS
trace-cmd-hist
TRACE-CMD-HIST(1)TRACE-CMD-HIST(1)NAME
trace-cmd-hist - show histogram of events in trace.dat file
SYNOPSIS
trace-cmd hist [OPTIONS][input-file]
DESCRIPTION
The trace-cmd(1) hist displays a histogram form from the trace.dat file. Instead of showing the events as they were ordered, it creates a
histogram that can be displayed per task or for all tasks where the most common events appear first. It uses the function tracer and call
stacks that it finds to try to put together a call graph of the events.
OPTIONS -i input-file
By default, trace-cmd hist will read the file trace.dat. But the -i option open up the given input-file instead. Note, the input file
may also be specified as the last item on the command line.
-P
To compact all events and show the call graphs by ignoring tasks and different PIDs, add the -P to do so. Instead of showing the task
name, it will group all chains together and show "<all pids>".
SEE ALSO trace-cmd(1), trace-cmd-record(1), trace-cmd-report(1), trace-cmd-start(1), trace-cmd-stop(1), trace-cmd-extract(1), trace-cmd-reset(1),
trace-cmd-split(1), trace-cmd-listen(1)AUTHOR
Written by Steven Rostedt, <rostedt@goodmis.org[1]>
RESOURCES
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git
COPYING
Copyright (C) 2010 Red Hat, Inc. Free use of this software is granted under the terms of the GNU Public License (GPL).
NOTES
1. rostedt@goodmis.org
mailto:rostedt@goodmis.org
06/11/2014 TRACE-CMD-HIST(1)