Search Results

Search: Posts Made By: theshashi
1,042
Posted By theshashi
I tried some option before putting question here....
I tried some option before putting question here.
It's file if you don't know like me.
1,042
Posted By theshashi
Sort on first fields only
Please advice in this.

Input file

100,vvvt
201,unb
100,sos
301,abc
99,gang

desired output

99,gang
100,vvvt
100,sos
201,unb
301,abc

Means if first fields are same ( here 100)...
1,359
Posted By theshashi
^ joda. I want to hardcode those number in...
^ joda.
I want to hardcode those number in neewly added lines.

even just coping same line (with sane number) is ok.
1,359
Posted By theshashi
Multiply tags in xml
Please advice best way to do this.
prefered awk or sed

input file :
<?xml version='1.0' encoding='ISO-8859-1'?>
<myxml>
<UID></UID>
<Dealer>0002</Dealer>
<Range>
...
1,261
Posted By theshashi
Combine 2 files
How to cilnd desided output from file1 and file2 with awk.

file1

1 2
7 8 9
14 15 16
21 22 23
28 29 30

file2

aa bb cc

dd ee ff

gg hh ii jj

kk ll
1,567
Posted By theshashi
Counting a Char
how to count how many R in the below file.

Rttt
1Rxxx
GG
2R
3R
4R
5R
6R
7R
R0
R1
R2
R3
R4
R5
R6
R7
RR
1,440
Posted By theshashi
awk: replace with script parameter
Hi


var=0001

I want to replace 2nd field of file with variable var in file sample.txt

Please suggest with awk. dont want to use awk -v option.

pseudo code : something like this.
...
4,600
Posted By theshashi
try mv -R
try mv -R
2,955
Posted By theshashi
sed -n '/common/!p' <file name>
sed -n '/common/!p' <file name>
1,196
Posted By theshashi
find in for loop
What's wrong with this script

for i in Users.csv anc.csv
> do
> find . -name $i
> doneDouble post. Continue here (https://www.unix.com/shell-programming-scripting/156017-find-loop.html).
1,598
Posted By theshashi
find in for loop
whats wrong with this script

for i in Users.csv abd.csv
> do
> find . -name $i
> done
1,953
Posted By theshashi
Thanks all of you. but other script or not...
Thanks all of you.
but other script or not giving right output.

I am using this

cat urfile |xargs -n7 | tr " " ","
18,491
Posted By theshashi
sed -e '/Yr, Month, Prod/d' -e '/2009, 09, XYX/d'...
sed -e '/Yr, Month, Prod/d' -e '/2009, 09, XYX/d' -e '/2008, 04, YYY/d'
1,953
Posted By theshashi
records in a line
Hi
I have a file "sample.txt"
--------------------
1
2
3
4
5
6
7

---------------------------

i want out like this
---------------------------
1,2,3,4,5,6,7...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 09:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy