![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| current CPU usage, memory usage, disk I/O oid(snmp) | S_venkatesh | SUN Solaris | 2 | 12-13-2008 06:19 AM |
| cpu%/mem% usage, scripting, dzen2: howto learn bash the hard way | broli | Gentoo | 14 | 08-17-2008 06:40 PM |
| passing variable from bash to perl from bash script | arsidh | Shell Programming and Scripting | 10 | 06-04-2008 12:25 PM |
| Basic bash 'for loop' usage | Orange Stripes | Shell Programming and Scripting | 2 | 12-18-2007 08:58 PM |
| Monitor CPU usage and Memory Usage | Gajanad Bihani | High Level Programming | 2 | 03-09-2005 07:35 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
cut usage in bash
Hello,
Could you put some light on this: Code:
> echo "ref_categorie=test" | cut -c1-15- test > echo "ref_categorie=test" | cut -c1-14- =test echo "ref_categorie=test" | cut -c15- test echo "ref_categorie=test" | cut -c15 t > ). I've found a few examples via Google. So after -c is the chars position I suppose. Also it looks like that without the trailing dash cut just prints the char at this position.Here is what I don't understand: 1) "ref_categorie=" is 14 chars, why -c14- leaves also the '='? 2) What's the difference between -c15- and -c1-15- ? They do the same in my case, but maybe there is something that I'm missing. Thank you very much for your help! |
![]() |
| Bookmarks |
| Tags |
| bash cut |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|