Sponsored Content
Full Discussion: cut or remove command
Top Forums UNIX for Dummies Questions & Answers cut or remove command Post 302498363 by arunmanas on Monday 21st of February 2011 06:47:00 AM
Old 02-21-2011
cut or remove command

hi,

I want to remove first word in all files where first and second word is seperated by comma.

example: a file contains Apple,mango.

i need only mango shoule be there in the file???

Apple, should be removed!!!!!


can anyone help me out???

thanks in advance,
Arun ManasSmilie
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

using cut command

I am new to unix ... I have a file with name unixile.123761 I need to cut the extension from this file name? can u help me for this i have tried like follows copied the file lo one variable v and then `echo $v | grep cut -d = -f 1` (8 Replies)
Discussion started by: shika123
8 Replies

2. Shell Programming and Scripting

command to cut

hello , i am grepping for a variable which looks like this... washome=/home/etc/config/was how can i cut the the above like which removes washome= so that i will get /home/etc/config/was Thanks (3 Replies)
Discussion started by: nagendramv
3 Replies

3. Shell Programming and Scripting

Cut Command error cut: Bad range

Hi Can anyone what I am doing wrong while using cut command. for f in *.log do logfilename=$f Log "Log file Name: $logfilename" logfile1=`basename $logfilename .log` flength=${#logfile1} Log "file length $flength" from_length=$(($flength - 15)) Log "from... (2 Replies)
Discussion started by: dgmm
2 Replies

4. Shell Programming and Scripting

CSV with commas in field values, remove duplicates, cut columns

Hi Description of input file I have: ------------------------- 1) CSV with double quotes for string fields. 2) Some string fields have Comma as part of field value. 3) Have Duplicate lines 4) Have 200 columns/fields 5) File size is more than 10GB Description of output file I need:... (4 Replies)
Discussion started by: krishnix
4 Replies

5. UNIX for Dummies Questions & Answers

Cut pid from ps using cut command

hay i am trying to get JUST the PID from the ps command. my command line is: ps -ef | grep "mintty" | cut -d' ' -f2 but i get an empty line. i assume that the delimiter is not just one space character, but can't figure out what should i do in order to do that. i know i can use awk or cut... (8 Replies)
Discussion started by: ran ber
8 Replies

6. Shell Programming and Scripting

Cut text from a file and remove

Hello Friends, I am stuck with the below problem.Any help will be appreciated. I have a file which has say 100 lines. On the second last line I have a line from which i want to remove certain characters.. e.g CAST(CAST( A as varchar(50)) || ',' || CAST(CAST( B as varchar(50)) || ',' ||... (8 Replies)
Discussion started by: vital_parsley
8 Replies

7. UNIX for Dummies Questions & Answers

Cut command doesn't remove (^C) character from only first line

I have a file which has first 2 junk characters(X^C) at beginning of each line in file. When i run cut -c 2- filename it removes junk characters from all lines except on first line it keeps one junk character control C(^C). Not sure why it is not removing only from first line. (2 Replies)
Discussion started by: later_troy
2 Replies

8. UNIX for Beginners Questions & Answers

Cut command: can't make it cut fields

I'm a complete beginner in UNIX (and not a computer science student either), just undergoing a tutoring course. Trying to replicate the instructions on my own I directed output of the ls listing command (lists all files of my home directory ) to My_dir.tsv file (see the screenshot) to make use of... (9 Replies)
Discussion started by: scrutinizerix
9 Replies
MOUNT_HFS(8)						    BSD System Manager's Manual 					      MOUNT_HFS(8)

NAME
mount_hfs -- mount an Apple HFS+ File System SYNOPSIS
mount_hfs [-o options] special node DESCRIPTION
The mount_hfs command attaches the Apple HFS+ File System on the special device on to the file system tree at point node. Both special and node are converted to absolute paths before use. This command is normally executed by mount(8) at boot time. The options are as follows: -o Options are specified with a -o flag followed by a comma separated string of options. See the mount(8) man page for possible options and their meanings. NOTES
Apple disk images (.dmg files) and hybrid CD-ROMs contain multiple partitions with an HFS+ file system on one of them. Use apmlabel(8) to enter it into the disklabel and mount the resulting partition. SEE ALSO
mount(2), unmount(2), fstab(5), apmlabel(8), mount(8) HISTORY
The mount_hfs utility first appeared in NetBSD 5.0. AUTHORS
mount_hfs was developed by Yevgeny Binder <yevbee@comcast.net> during the 2005 Google Summer of Code. It was improved and imported into NetBSD by Dieter Baron <dillo@NetBSD.org>. BUGS
HFS+ support is still experimental. Currently, no write support is present. Also, Unicode decomposition is not performed on file names prior to lookup. BSD
May 19, 2007 BSD
All times are GMT -4. The time now is 11:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy