Advertisement
CGarces

ejemplobash

Sep 20th, 2016
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. sed '2q;d' test.txt | cut -c7-9
  2.  
  3. existing_file='20160909121212_BE2100C_201603_C09.00.txt'
  4. new_file=$(echo $existing_file| cut -c16-)
  5. echo $new_file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement