10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need help to modify a comma-sep. file.
I tried to cut the secons of a timestamp.
it should be:
13,05/15/12,13:40,Raw... (5 Replies)
Discussion started by: IMPe
2. Shell Programming and Scripting
I wonder if there's a way to cut characters out of a string and keep only
the last 2 by using sed.
For example if there's the todays' date:
and we only want to keep the last 2 characters which are the day.
Is there a quick way to do it with sed? (2 Replies)
Discussion started by: vlm
3. Shell Programming and Scripting
hello everyone !
i face the following problem as i use sed to ignore some columns of an output.
the command i use is
sed 's/^\(*\) \(*\).*/\1 \2/'
as i only want the 2 first columns the command finger returns
the problem is that for some lines the results are fine but for other lines... (8 Replies)
Discussion started by: vlm
4. UNIX for Dummies Questions & Answers
I have a little script that has to compare some files (exe files)... so i find all the files in the given paths (2 paths) and it generates 2 txt files (named 1.txt and 2.txt, they have to be identical) i need to have a little IF function to compare the 2 files and see if they are... (2 Replies)
Discussion started by: valiadi
5. Shell Programming and Scripting
Let's say I have a line like that:
I want to cut out numbers between two $ including $s. The result should be like that:
I am so-newbei. I am non-stop reading about SED since yesterday and not a programmer. I know that it is a short period, thus maybe I had overlooked something. I... (4 Replies)
Discussion started by: l_p
6. Shell Programming and Scripting
i got text file and contain....
SKYPE Dec 11 09:26:05 IN=eth0 OUT=eth1 SRC=22.214.171.124 DST=192.168.1.56 PROTO=UDP SPT=30645 DPT=12630 LEN=66
SKYPE Dec 11 09:26:05 IN=eth1 OUT=eth0 SRC=192.168.1.56 DST=126.96.36.199 PROTO=UDP SPT=12630 DPT=15889 LEN=75
SKYPE Dec 11 09:26:05 IN=eth1 OUT=eth0... (2 Replies)
Discussion started by: slackman
7. Shell Programming and Scripting
Can i have an example where i should be able to cut columns
(like for eg cut -c 1-3) in sed or awk.
Dhana (12 Replies)
Discussion started by: dhanamurthy
8. Shell Programming and Scripting
Is there a way to cut the last two characters off a word or number given that this word or number can be of varying length?
I have tried something like
TEST=`echo $OLD | cut -c 1-5`
where $OLD is a variable containing a number like 1234567 which gives a result of 12345. This is fine... (4 Replies)
Discussion started by: rleebife
9. Shell Programming and Scripting
I am trying to cut and delete using sed and redirect back into the file. This is not working write. When testing the script, it hangs. Any idea what I am doing wrong here.
################ Reads the input file to cut volumes for returns and CUT_ERVTAPE_FILE()
echo "working on cut... (2 Replies)
Discussion started by: gzs553
10. UNIX for Dummies Questions & Answers
hi again...need new help guys:p
the file contains following infos...
how to get the file content into...
you can erase the... (5 Replies)
Discussion started by: svennie