Sponsored Content
Full Discussion: Browse directory
Top Forums Shell Programming and Scripting Browse directory Post 302961322 by Don Cragun on Thursday 26th of November 2015 02:19:03 PM
Old 11-26-2015
Please look at the ls man page on your system (using man ls) to determine if you need any of those options. You definitely do not want the l option (which produces long format listings).

The simplest solution to what you said you are trying to do would just be:
Code:
ls prueba*.txt > tmp.txt

With most shells on most systems, the following would be faster since printf is usually a shell built-in and ls usually is not a shell built-in:
Code:
printf '%s\n' prueba*.txt > tmp.txt

Note that in both of these examples I changed the name of your output file from tmp.tmp to tmp.txt, but you can use whatever name you want.
These 2 Users Gave Thanks to Don Cragun For This Post:
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to best browse man pages?

guys...usually we simply browse the man pages with "man commandName" are there better ways to browse the man pages? i also see many underlined words in man pages...does they have some special signifigance like the one in html.. i.e can they be directly refered for complete reference? is... (5 Replies)
Discussion started by: RishiPahuja
5 Replies

2. AIX

how to browse a web site using script

hi guys, ok this script, i am trying to browse a http site and store the output in a text file ... when i run the script , i get a http compatibility error. does any1 have a good solution to contact a http server and save the html in a text file.. i know the result comes with html tags. ... (4 Replies)
Discussion started by: kirantalla
4 Replies

3. UNIX for Dummies Questions & Answers

Browse Web pages through command line

Is there any way to browse web pages while on the command line? I know wget can download pages, but I was wondering if there was an option other than that. (2 Replies)
Discussion started by: vroomlicious
2 Replies

4. UNIX for Dummies Questions & Answers

unable to browse internet in linux (railwire dialup connection)

Hi Gurus, Good morning . I have a railwire internet connection(dial up).I am able to access internet in windows xp .but in windows xp every time i restart my pc i have to manually right click the "railwire"icon and then click "connect, after this i am just getting connected to the internet. But... (4 Replies)
Discussion started by: sanjay.login
4 Replies

5. UNIX for Dummies Questions & Answers

Browse for files through oracle forms placed in unix server

I use a forms application where I develop the forms(Oracle 6i) in windows server and compile(Oracle 9i) the same in Unix server. The whole forms application executables are placed in Unix. My requirement is to upload data from excel sheet to oracle tables using Oracle forms. I have developed the... (0 Replies)
Discussion started by: malinideepa
0 Replies

6. Ubuntu

how to browse the website which uses windows media player?

Hi all, you know some websites use the windows media player to play video,how can i browse these websites in Ubuntu?Any plugin?:) (4 Replies)
Discussion started by: homeboy
4 Replies

7. UNIX for Beginners Questions & Answers

Browse in commands

Hi, On Linux Linux 3.10.0-693.21.1.el7.x86_64 How to enable : history-search I did the following without success: in my .inputrc, like so: "\e And .profile: export INPUTRC=~/.inputrc Thanks. (1 Reply)
Discussion started by: big123456
1 Replies
PTS_SOURCE(1)						       AFS Command Reference						     PTS_SOURCE(1)

NAME
pts_source - Read pts commands from a file SYNOPSIS
pts source [-file] <file name> [-cell] <cell name> [-noauth] [-localauth] [-force] pts so [-f] <file name> [-c] <cell name> [-n] [-l] [-f] DESCRIPTION
The pts source runs commands from a file as if they were typed in pts interactive mode. The command can be run from the command line or interactively. CAUTIONS
Prior to OpenAFS 1.4.5 and OpenAFS 1.5.23, the pts source command was only available on Unix or Linux and when OpenAFS was compiled with the supergroups option (disabled by default). As of OpenAFS 1.4.5 and 1.5.23, it is always available. OPTIONS
pts source takes the following options: -cell <cell name> Names the cell in which to run the command. For more details, see pts(1). -force Enables the command to continue executing as far as possible when errors or other problems occur, rather than halting execution at the first error. -help Prints the online help for this command. All other valid options are ignored. -localauth Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. Do not combine this flag with the -cell or -noauth options. For more details, see pts(1). -noauth Assigns the unprivileged identity anonymous to the issuer. For more details, see pts(1). OUTPUT
This command shows the output of each command in the file as if it were run normally. EXAMPLES
Here is an example of using pts source in a pts interactive session: % echo examine admin > /tmp/commands.txt % pts interactive pts> source /tmp/commands.txt Name: admin, id: 1, owner: system:administrators, creator: anonymous, membership: 2, flags: S----, group quota: 20. pts> quit % SEE ALSO
pts(1), pts_interactive(1), pts_quit(1), pts_sleep(1) COPYRIGHT
Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com> This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Jason Edgecombe for OpenAFS. OpenAFS 2014-04-08 PTS_SOURCE(1)
All times are GMT -4. The time now is 09:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy