We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Linux Shell
- Text Processing
- Cut #1
- Discussions
Cut #1
Cut #1
Sort by
recency
|
138 Discussions
|
Please Login in order to post a comment
Using Loop
Shortcut
for i in {1..100}; do read line echo "$line" | cut -c 3 done
Does anyone know why the test case 2 if failing for below code:?
while read -r line; do
done
cut -c3
echo "hello" |cut -c3
output = l
cut is a command-line tool used to extract sections from each line of input — by bytes, characters, or fields.