Search Results

Search: Posts Made By: LinuxNubBrah
4,003
Posted By LinuxNubBrah
counting the number of characters in the filename of all files in a directory?
I am trying to display the output of ls and also print the number of characters in EVERY file name. This is what I have so far:

#!/bin/sh

for x in `ls`; do
echo The number of characters in x...
46,408
Posted By LinuxNubBrah
I'm trying to pipe the output of ls because I...
I'm trying to pipe the output of ls because I want it to be on screen in terminal and also in DirectoryListing.txt.

What is cat?

Thanks

---------- Post updated at 02:29 PM ----------...
46,408
Posted By LinuxNubBrah
is it not possible to do it with the | ?
is it not possible to do it with the | ?
46,408
Posted By LinuxNubBrah
Piping output of ls to a text file
Basically I was wondering if any of you know how to pipe the output of ls to a text file? so in my shell script one of the lines is ls but i want to pipe it into a file called directory listing. ...
1,744
Posted By LinuxNubBrah
Simple Shell Script? Someone help?
Write a shell script which adds up 10 numbers entered by the user and displays the
result to the screen. You must use the read command to obtain the numbers from
the user.

Im a nooby noob
1,922
Posted By LinuxNubBrah
Simple Question I'm Just A Retard
Write a shell script which adds up 10 numbers entered by the user and displays the
result to the screen. You must use the read command to obtain the numbers from
the user.

Can anyone do this?...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 03:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy