Use cut
. Eg. to strip the first 4 characters of each line (i.e. start on the 5th char):
tail -f logfile | grep org.springframework | cut -c 5-
More Related Contents:
- How do I check if a directory exists or not in a Bash shell script?
- Some troubles with using sed and awk [closed]
- What does 2>&1 mean here?
- An efficient way to transpose a file in Bash
- Can I export a variable to the environment from a Bash script without sourcing it?
- Bash command line and input limit
- Delete all but the most recent X files in bash
- How do I check if a directory exists in a Bash shell script?
- Checking from shell script if a directory contains files
- How to determine the current interactive shell that I’m in (command-line)
- How to use ‘find’ to search for files created on a specific date? [closed]
- Command substitution: backticks or dollar sign / paren enclosed? [duplicate]
- Removing colors from output
- How to represent multiple conditions in a shell if statement?
- How to search filenames by regex with “find”
- How does this bash fork bomb work? [duplicate]
- How to do a logical OR operation for integer comparison in shell scripting?
- Piping tail output though grep twice
- How to go to each directory and execute a command?
- What’s a concise way to check that environment variables are set in a Unix shell script?
- executing shell command in background from script [duplicate]
- Waiting for background processes to finish before exiting script
- Variables as commands in Bash scripts
- How to split a file into equal parts, without breaking individual lines? [duplicate]
- Copy all files with a certain extension from all subdirectories
- How can I convert tabs to spaces in every file of a directory?
- File content into unix variable with newlines
- How to properly nest Bash backticks
- How to include nohup inside a bash script?
- Subtract two variables in Bash