Skip to primary content
Skip to secondary content

Aspirant Coder

Nothing to see here, move along, this is just a coding playground…

Main menu

  • Home
  • About

Monthly Archives: November 2012

Shell : How to perform a text substring?

Posted on November 30, 2012 by admin
1

Choose your weapon of choice:

localhost>expr substr "123456" 1 3
123

localhost>echo "123456" | cut -c1-3
123

localhost>echo "123456" | awk '{print substr($0, 1, 3)}'
123
Posted in shell | Tagged shell, substring, text | 1 Reply

Hello world!

Posted on November 29, 2012 by admin
Reply

Nothing to see here, move along…

Posted in Uncategorized | Leave a reply

Recent Posts

  • Sybase : How to check programmatically if index contains particular column?
  • Sybase : How to disable return status when executing stored procedure?
  • Sybase : How to select random number within a specific range?
  • Sybase : How to count number of rows in a table – demystified
  • How to trace user activity to a file in SAP Sybase ASE

Categories

  • APT (1)
  • shell (1)
  • Sybase (6)
  • Uncategorized (1)

Archives

  • May 2013 (1)
  • January 2013 (1)
  • December 2012 (5)
  • November 2012 (2)

Blogroll

  • Sybase Performance & Relational Database
  • Sybase ASE Performance and Tuning

Recommended

  • Sybase Infocenter
  • SybaseTeam
  • Sypron

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress