Quantcast
Channel: elizaibeth » Operating Systems
Viewing all articles
Browse latest Browse all 7

Removing characters from a file name in linux

$
0
0

Below is a little snippet to rename files in a linux directory. This code will loop through all the text files in a directory and remove the first 10 characters [bash] #!/bin/bash for i in *.txt do mv $i ${i:(10)} done [bash] To remove everything before the last 10 characters [bash] #!/bin/bash for i in

The post Removing characters from a file name in linux appeared first on elizaibeth.


Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images