10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a large number of files which are written as csv (comma-separated values).
Does anyone know of simple sed/awk command do achieve this?
Thanks!
---------- Post updated at 10:59 AM ---------- Previous update was at 10:54 AM ----------
Guess I asked this too soon. Found the... (0 Replies)
Discussion started by: lost.identity
0 Replies
2. Shell Programming and Scripting
Hi Experts,
How to sepearate the list digit with letters : with a space from where the letters begins, or other words from where the digits ended.
file
52087mo(enbatl)
52049mo(enbatl)
52085mo(enbatl)
25051mo(enbatl)
The output should be looks like:
52087 mo(enbatl)
52049... (10 Replies)
Discussion started by: rveri
10 Replies
3. Shell Programming and Scripting
I would like to separate number by space so that
121231212
222111212
would be
1 2 1 2 3 1 2 1 2
2 2 2 1 1 1 2 1 2
Thanks! (2 Replies)
Discussion started by: johnkim0806
2 Replies
4. Shell Programming and Scripting
I have this command in a shl (UNIX) to find the lates file that start with EMT in a directory
file=$(ls -tr $EMT*.dat | tail -1) # Select the latest file
It finds:
EMT345.dat
then I have to be able to separate EMT AND the numbers 345 and stored 345 in a variable and incremented, so my new... (7 Replies)
Discussion started by: rechever
7 Replies
5. Shell Programming and Scripting
Hello friends,
Im trying to separate a number from a log, but it seems i need help here
awk '/stimated/ {print $5}' mylog.txt
gives (1515.45MB).
i need pure number part to use in a comparision loop so i want to separate the number part (but only 1515 not 1515.45 )
awk '/stimated/... (6 Replies)
Discussion started by: EAGL€
6 Replies
6. Shell Programming and Scripting
I want to reverse a the following:
00:11:22:33:44:55
I currently use something like below to pass it as is.
But now I want the same script to reverse the above and pass it to ethtool.
// psuedo code
i=0
skip=0
for m in $@
do
if
then
skip=1
... (1 Reply)
Discussion started by: bhanu.nani
1 Replies
7. Shell Programming and Scripting
Howdy experts,
We have some ranges of number which belongs to particual group as below.
GroupNo StartRange EndRange
Group0125 935300 935399
Group2006 935400 935476
937430 937459
Group0324 935477 935549
... (6 Replies)
Discussion started by: thepurple
6 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have a requirement wherein, I need to validate a user input of the numbers that are comma separated.
E.g . The input should be in the format 1,2,3...n (count of numbers is not known) . The user has to mention the input in this format, else it should exit from the program.
... (5 Replies)
Discussion started by: 12345
5 Replies
9. UNIX for Dummies Questions & Answers
Hi,
How to separate numbers and words(with full alphabets) in a particular file and store it in two different files.
Please help me out for this.Using shell scripting.
:confused::confused: (1 Reply)
Discussion started by: kamakshi s
1 Replies
10. Shell Programming and Scripting
Hi
I have a file with contents like
china
india
france
japan
italy
germany
.
.
.
.
etc....
I want the output as
china|india|france|japan|italy|germany|.|.|. (3 Replies)
Discussion started by: hidnana
3 Replies