- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- using cut command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2003 12:58 AM
05-10-2003 12:58 AM
using cut command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2003 07:15 AM
05-10-2003 07:15 AM
Re: using cut command
ls -l | cut -f7,8
Cut is used to show only requested fields, then we use -f option along with fields separator (if none, like here, then separator must be tab).ON ls, you get 8 fields, type(1), rights(2), links(3), prop(4), group(5), size(6), last modif(7) and name(8).
You can also use cut specifying columns, with -c, which is less clever here, but would work too with
ls-l | cut -c38- (from clumn 38 to last).
RGDS
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2003 08:18 PM
05-11-2003 08:18 PM
Re: using cut command
info cut.
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2003 05:17 AM
05-12-2003 05:17 AM
Re: using cut command
ll | awk '{print $6,$7,$9}'
this will show the month, day, and filename of a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2003 07:34 AM
05-12-2003 07:34 AM
Re: using cut command
ls -laut | awk '{print $6 $7 $8}'
Sachin